Revision: 5325
          http://sourceforge.net/p/jump-pilot/code/5325
Author:   edso
Date:     2017-01-15 16:33:20 +0000 (Sun, 15 Jan 2017)
Log Message:
-----------
prepare SaveWizard for next release

Modified Paths:
--------------
    core/trunk/scripts/default-plugins.xml
    core/trunk/src/org/openjump/core/ui/plugin/file/SaveWizardPlugIn.java

Modified: core/trunk/scripts/default-plugins.xml
===================================================================
--- core/trunk/scripts/default-plugins.xml      2017-01-15 16:30:29 UTC (rev 
5324)
+++ core/trunk/scripts/default-plugins.xml      2017-01-15 16:33:20 UTC (rev 
5325)
@@ -156,8 +156,11 @@
                        <main-menu menupath="MenuNames.FILE" install="true" />
                </menus>
        </plug-in>
-       <plug-in>
+       <plug-in>
                org.openjump.core.ui.plugin.file.SaveWizardPlugIn
+               <menus>
+                       <main-menu menupath="MenuNames.FILE" install="true" />
+               </menus>
        </plug-in>
 
        <plug-in>
@@ -1215,6 +1218,12 @@
                </menus>
        </plug-in>
        <plug-in>
+               org.openjump.core.ui.plugin.file.SaveWizardPlugIn
+               <menus>
+                       <layername-popup install="true" />
+               </menus>
+       </plug-in>
+       <plug-in>
                org.openjump.core.ui.plugin.mousemenu.SaveDatasetsPlugIn
                <menus>
                        <layername-popup

Modified: core/trunk/src/org/openjump/core/ui/plugin/file/SaveWizardPlugIn.java
===================================================================
--- core/trunk/src/org/openjump/core/ui/plugin/file/SaveWizardPlugIn.java       
2017-01-15 16:30:29 UTC (rev 5324)
+++ core/trunk/src/org/openjump/core/ui/plugin/file/SaveWizardPlugIn.java       
2017-01-15 16:33:20 UTC (rev 5325)
@@ -3,6 +3,8 @@
 import java.util.Collection;
 import java.util.List;
 
+import javax.swing.Icon;
+
 import org.openjump.core.ui.plugin.AbstractThreadedUiPlugIn;
 import org.openjump.core.ui.plugin.datastore.SaveToDataStoreWizard;
 import org.openjump.core.ui.plugin.file.save.SaveToFileWizard;
@@ -22,9 +24,8 @@
 import com.vividsolutions.jump.workbench.plugin.PlugInContext;
 import com.vividsolutions.jump.workbench.registry.Registry;
 import com.vividsolutions.jump.workbench.ui.GUIUtil;
-import com.vividsolutions.jump.workbench.ui.MenuNames;
 import com.vividsolutions.jump.workbench.ui.WorkbenchFrame;
-import com.vividsolutions.jump.workbench.ui.plugin.FeatureInstaller;
+import com.vividsolutions.jump.workbench.ui.images.IconLoader;
 import com.vividsolutions.jump.workbench.ui.plugin.PersistentBlackboardPlugIn;
 
 public class SaveWizardPlugIn extends AbstractThreadedUiPlugIn {
@@ -56,14 +57,16 @@
     WorkbenchFrame frame = workbench.getFrame();
     blackboard = PersistentBlackboardPlugIn.get(context.getWorkbenchContext());
 
-    String name = getName();
-    if (!JUMPVersion.getRelease().equalsIgnoreCase("release"))
-      FeatureInstaller.getInstance().addMainMenuPlugin(this,
-          new String[] { MenuNames.FILE });
+//    String name = getName();
+//    if (!JUMPVersion.getRelease().equalsIgnoreCase("release"))
+//      FeatureInstaller.getInstance().addMainMenuPlugin(this,
+//          new String[] { MenuNames.FILE });
 
     // add each wiz one by one
     addWizard(context.getWorkbenchContext(), new SaveToFileWizard(context));
-    addWizard(context.getWorkbenchContext(), new 
SaveToDataStoreWizard(context));
+    // datastores are experimental for now
+    if (!JUMPVersion.getRelease().equalsIgnoreCase("release"))
+      addWizard(context.getWorkbenchContext(), new 
SaveToDataStoreWizard(context));
   }
 
   public boolean execute(PlugInContext pluginContext) throws Exception {
@@ -71,7 +74,7 @@
 
     List<WizardGroup> wizards = registry.getEntries(KEY);
     WizardGroup lastwizard = null;
-    // dialog = null;
+    //dialog = null;
     if (dialog == null) {
       WorkbenchFrame workbenchFrame = pluginContext.getWorkbenchFrame();
       String name = getName();
@@ -127,4 +130,14 @@
         checkFactory.createWindowWithLayerNamePanelMustBeActiveCheck()).add(
         checkFactory.createExactlyNLayersMustBeSelectedCheck(1));
   }
+
+  @Override
+  public Icon getIcon() {
+    return IconLoader.icon("disk_dots.png");
+  }
+
+  @Override
+  public String getName() {
+    return 
I18N.get("com.vividsolutions.jump.workbench.datasource.SaveDatasetAsPlugIn") +" 
(testing)";
+  }
 }


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to