Class Utils
java.lang.Object
org.openjump.core.ui.plugin.task.Utils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckModifiedLayers(PlugInContext context) Check modified layersstatic booleancheckTempAndModLayerables(PlugInContext context) static booleancheckTemporaryLayerables(PlugInContext context) Check temporary Layer or RasterImageLayerstatic StringgetLayerableName(Layerable layer) Return layerable name. (*) if vector is modified, (**) if raster or vector are temporarystatic StringgetLayerablePath(Layerable layer) static StringgetLayerableSRS(Layerable layer) Get Layerable Spatial reference systemstatic StringgetLayerableType(Layerable layer) Get layerable type (Shapefile, RasterImageLayer, WMSLayer, etc)getNamesOfLayerableList(PlugInContext context) Get a list of all layerables namesgetSavedProperties(PlugInContext context, File file) static booleanstatic String[]mapSRIDS()static StringrasterProjection(RasterImageLayer layer) static voidremoveButton(Container container) static voidrestorePropertiesFromFile(Task task, File file, PlugInContext context) Restore Task properties from file
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
getNamesOfLayerableList
Get a list of all layerables names- Parameters:
context- the PlugInContext- Returns:
- a list of Layerable names
-
getLayerableType
-
getLayerableSRS
-
rasterProjection
- Throws:
Exception
-
isTable
-
checkTemporaryLayerables
Check temporary Layer or RasterImageLayer- Parameters:
context- the PlugInContext- Returns:
- true if a Layerable has a temporary Layer associated
-
checkModifiedLayers
Check modified layers- Parameters:
context- the PlugInContext- Returns:
- true if a Modified Layer exists
-
checkTempAndModLayerables
-
getLayerableName
-
getLayerablePath
-
mapSRIDS
- Throws:
IOException
-
mapSRIDasString
- Throws:
IOException
-
removeButton
-
restorePropertiesFromFile
public static void restorePropertiesFromFile(Task task, File file, PlugInContext context) throws Exception Restore Task properties from file- Parameters:
task- current taskfile- file taskcontext- current workbench context- Throws:
Exception- if an Exception occurs
-
getSavedProperties
-