]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics/src/org/simantics/BaselineCreatorApplication.java
Fixed various bugs in TG readers
[simantics/platform.git] / bundles / org.simantics / src / org / simantics / BaselineCreatorApplication.java
index d0b8e69492ff44c274077fffcc7940f646029dc5..a3b409027a0c314354a3e172eac62163094b8be0 100644 (file)
@@ -61,12 +61,7 @@ public class BaselineCreatorApplication implements IApplication {
 
        private static Path getInstanceLocation() throws CoreException, IOException {
                Location l = Platform.getInstanceLocation();
-               if (l == null)
-                       throw new CoreException(new Status(IStatus.ERROR, Activator.PLUGIN_ID,
-                                       "Workspace not defined. Use -data <path> argument to define where to place the baselining workspace."));
-
-               Location instanceLoc = Platform.getInstanceLocation();
-               if (instanceLoc == null || instanceLoc.isReadOnly())
+               if (l == null || l.isReadOnly())
                        throw new CoreException(new Status(IStatus.ERROR, Activator.PLUGIN_ID,
                                        "Workspace not defined. Use -data <path> argument to define where to place the baselining workspace."));