Sunburned Surveyor wrote:
Hi,
> Do you mind telling me very briefly how you made this modification?
> I'm interested in seeing how you did it.
I just modified the JUMPWorkbench as attached, IIRC.
Best regards, Andreas
--
l a t / l o n GmbH
Aennchenstrasse 19 53177 Bonn, Germany
phone ++49 +228 18496-11 fax ++49 +228 1849629
http://www.lat-lon.de http://www.deegree.org
Index: JUMPWorkbench.java
===================================================================
--- JUMPWorkbench.java (Revision 1022)
+++ JUMPWorkbench.java (Arbeitskopie)
@@ -45,6 +45,7 @@
import com.vividsolutions.jump.workbench.ui.SplashWindow;
import com.vividsolutions.jump.workbench.ui.WorkbenchFrame;
import com.vividsolutions.jump.workbench.ui.images.IconLoader;
+import com.vividsolutions.jump.workbench.ui.plugin.PersistentBlackboardPlugIn;
import java.awt.*;
import java.awt.event.WindowAdapter;
@@ -56,10 +57,6 @@
import java.util.List;
import javax.swing.*;
-import javax.swing.ImageIcon;
-import javax.swing.JLabel;
-import javax.swing.JPanel;
-import javax.swing.UIManager;
/**
* This class is responsible for setting up and displaying the main JUMP
@@ -85,6 +82,7 @@
public final static String PLUG_IN_DIRECTORY_OPTION =
"plug-in-directory";
public final static String I18N_FILE = "i18n";
public static final String INITIAL_PROJECT_FILE = "project";
+ public static final String STATE_OPTION = "state";
// Added by STanner to allow I18N to have access to this
public static String I18N_SETLOCALE = "";
@@ -182,6 +180,17 @@
this.getBlackboard().put( INITIAL_PROJECT_FILE, task );
}
+ if(commandLine.hasOption(STATE_OPTION)) {
+ File option = new
File(commandLine.getOption(STATE_OPTION).getArg(0));
+ if(option.isDirectory()) {
+
PersistentBlackboardPlugIn.setPersistenceDirectory(option.getPath());
+ }
+ if(option.isFile()) {
+ PersistentBlackboardPlugIn.setFileName(option.getName());
+
PersistentBlackboardPlugIn.setPersistenceDirectory(option.getAbsoluteFile().getParent());
+ }
+ }
+
plugInManager = new PlugInManager(context, extensionsDirectory,
monitor);
//Load drivers before initializing the frame because part of
the frame
@@ -302,6 +311,7 @@
commandLine.addOptionSpec(new OptionSpec(I18N_FILE, 1));
//[UT] 17.08.2005
commandLine.addOptionSpec(new OptionSpec( INITIAL_PROJECT_FILE,
1));
+ commandLine.addOptionSpec(new OptionSpec(STATE_OPTION, 1));
try {
commandLine.parse(args);
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel