root / org.gvsig.toolbox / trunk / org.gvsig.toolbox / org.gvsig.toolbox.gui / src / main / java / es / unex / sextante / gui / settings / SextanteScriptsSettings.java @ 119
History | View | Annotate | Download (902 Bytes)
1 |
package es.unex.sextante.gui.settings; |
---|---|
2 |
|
3 |
import java.io.File; |
4 |
import java.util.HashMap; |
5 |
|
6 |
import es.unex.sextante.core.Sextante; |
7 |
import es.unex.sextante.gui.core.SextanteGUI; |
8 |
|
9 |
public class SextanteScriptsSettings |
10 |
extends
|
11 |
Setting { |
12 |
|
13 |
public static final String SCRIPTS_PORTABLE = "ScriptsPortable"; |
14 |
public static final String SCRIPTS_FOLDER = "ScriptsFolder"; |
15 |
|
16 |
|
17 |
@Override
|
18 |
public void createPanel() { |
19 |
|
20 |
panel = new SextanteScriptsSettingsPanel();
|
21 |
|
22 |
} |
23 |
|
24 |
|
25 |
@Override
|
26 |
public String getName() { |
27 |
|
28 |
return Sextante.getText("Scripts"); |
29 |
|
30 |
} |
31 |
|
32 |
|
33 |
@Override
|
34 |
public HashMap<String, String> getInitValues() { |
35 |
|
36 |
final HashMap<String, String> map = new HashMap<String, String>(); |
37 |
map.put(SCRIPTS_PORTABLE, Boolean.TRUE.toString());
|
38 |
map.put(SCRIPTS_FOLDER, SextanteGUI.getSextanteHomePath() + File.separator + Sextante.PORTABLE_SCRIPTS_FOLDER);
|
39 |
|
40 |
return map;
|
41 |
|
42 |
} |
43 |
|
44 |
} |