Revision: 6344
http://sourceforge.net/p/jump-pilot/code/6344
Author: ma15569
Date: 2020-07-07 14:04:29 +0000 (Tue, 07 Jul 2020)
Log Message:
-----------
Sextante Toolbox now will open as DetachedInternalFrame in OpenJUMP
Modified Paths:
--------------
plug-ins/SextantePlugIn/src/es/unex/sextante/openjump/gui/OpenJUMPGUIFactory.java
Modified:
plug-ins/SextantePlugIn/src/es/unex/sextante/openjump/gui/OpenJUMPGUIFactory.java
===================================================================
---
plug-ins/SextantePlugIn/src/es/unex/sextante/openjump/gui/OpenJUMPGUIFactory.java
2020-07-07 14:01:37 UTC (rev 6343)
+++
plug-ins/SextantePlugIn/src/es/unex/sextante/openjump/gui/OpenJUMPGUIFactory.java
2020-07-07 14:04:29 UTC (rev 6344)
@@ -1,22 +1,51 @@
package es.unex.sextante.openjump.gui;
import javax.swing.JDialog;
+import javax.swing.JInternalFrame;
import javax.swing.JOptionPane;
+import com.vividsolutions.jump.workbench.JUMPWorkbench;
+import com.vividsolutions.jump.workbench.ui.WorkbenchFrame;
+
import es.unex.sextante.core.GeoAlgorithm;
import es.unex.sextante.gui.core.DefaultGUIFactory;
+import es.unex.sextante.gui.core.SextanteGUI;
+import es.unex.sextante.openjump.toolbox.ToolboxFrame;
public class OpenJUMPGUIFactory
- extends
- DefaultGUIFactory {
+extends
+DefaultGUIFactory {
- @Override
- public void showBatchProcessingDialog(final GeoAlgorithm alg,
- final JDialog parent) {
+ @Override
+ public void showBatchProcessingDialog(final GeoAlgorithm alg,
+ final JDialog parent) {
- JOptionPane.showMessageDialog(parent, "Batch processing not yet
implemented");
+ JOptionPane.showMessageDialog(parent, "Batch processing not yet
implemented");
- }
+ }
+
+
+ @Override
+ public void showToolBoxDialog() {
+ WorkbenchFrame wFrame = JUMPWorkbench.getInstance().getFrame();
+ SextanteGUI.getInputFactory().createDataObjects();
+
+ for (JInternalFrame iFrame : wFrame
+ .getInternalFrames()) {
+ if (iFrame instanceof ToolboxFrame) {
+
+ iFrame.toFront();
+ return;
+
+ }
+ }
+ ToolboxFrame additionalResultsFrame = new ToolboxFrame(wFrame);
+
+ wFrame
+ .addInternalFrame(additionalResultsFrame);
+ }
+
+
}
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel