edit_bsh_script.patch

Antonio Falciano, 09/19/2017 07:07 PM

Download (1.17 KB)

View differences:

org.gvsig.toolbox.gui/src/main/java/es/unex/sextante/gui/cmd/EditScriptAction.java (copia locale)
1 1
package es.unex.sextante.gui.cmd;
2 2

  
3
import java.io.File;
4

  
3 5
import es.unex.sextante.core.GeoAlgorithm;
4 6
import es.unex.sextante.core.Sextante;
5 7
import es.unex.sextante.gui.core.IToolboxRightButtonAction;
8
import es.unex.sextante.gui.core.SextanteGUI;
9
import es.unex.sextante.gui.settings.SextanteScriptsSettings;
6 10

  
7 11
public class EditScriptAction
8 12
         implements
9 13
            IToolboxRightButtonAction {
10 14

  
11 15
   public void execute(final GeoAlgorithm alg) {
12
   // TODO Auto-generated method stub
13 16

  
17
      ScriptEditingPanel panel = new ScriptEditingPanel(SextanteGUI.getSettingParameterValue(
18
            SextanteScriptsSettings.SCRIPTS_FOLDER) + File.separator + alg.getName() + ".bsh");
19
      SextanteGUI.getGUIFactory().showGenericDialog("Script", panel);
20

  
14 21
   }
15 22