Browse Source
Working on selection in the ImageTilePane.
Working on selection in the ImageTilePane.
Added a deselect while holding control Added some logic for opening files on different OS's Added some OS specific variables and loggingmaster
Drew Short
10 years ago
7 changed files with 83 additions and 21 deletions
-
1engine/src/main/java/com/sothr/imagetools/engine/AppConfig.java
-
5engine/src/main/scala/com/sothr/imagetools/engine/util/PropertiesService.scala
-
5gui/src/main/resources/fxml/mainapp/MainApp.fxml
-
10gui/src/main/scala/com/sothr/imagetools/ui/component/ImageTile.scala
-
25gui/src/main/scala/com/sothr/imagetools/ui/component/ImageTilePane.scala
-
31gui/src/main/scala/com/sothr/imagetools/ui/controller/AppController.scala
-
21gui/src/main/scala/com/sothr/imagetools/ui/util/FileUtil.scala
@ -0,0 +1,21 @@ |
|||
package com.sothr.imagetools.ui.util |
|||
|
|||
import java.awt.Desktop |
|||
import java.io.File |
|||
|
|||
import com.sothr.imagetools.engine.util.PropertiesService |
|||
import grizzled.slf4j.Logging |
|||
|
|||
/** |
|||
* Created by Drew Short on 8/31/2014. |
|||
*/ |
|||
object FileUtil extends Logging { |
|||
|
|||
def openInEditor(file: File) = { |
|||
PropertiesService.OS.toLowerCase match { |
|||
// Open file on windows |
|||
case os if os.startsWith("windows") => Desktop.getDesktop.open(file) |
|||
case default => error(s"Do not know how to open editor for OS: ${PropertiesService.OS}, ${PropertiesService.OS_VERSION}, ${PropertiesService.OS_ARCH}") |
|||
} |
|||
} |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue