root / org.gvsig.toolbox / trunk / org.gvsig.toolbox / org.gvsig.toolbox.gui / src / main / java / es / unex / sextante / gui / settings / SextanteRSettings.java @ 119
History | View | Annotate | Download (1.18 KB)
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 |
|
10 |
public class SextanteRSettings |
11 |
extends
|
12 |
Setting { |
13 |
|
14 |
public static final String R_ACTIVATE = "RActivate"; |
15 |
public static final String R_PORTABLE = "RPortable"; |
16 |
public static final String R_FOLDER = "RFolder"; |
17 |
public static final String R_SCRIPTS_FOLDER = "RScriptsFolder"; |
18 |
|
19 |
|
20 |
@Override
|
21 |
public void createPanel() { |
22 |
|
23 |
panel = new SextanteRSettingsPanel();
|
24 |
|
25 |
} |
26 |
|
27 |
|
28 |
@Override
|
29 |
public String getName() { |
30 |
|
31 |
return "R"; |
32 |
|
33 |
} |
34 |
|
35 |
|
36 |
@Override
|
37 |
public HashMap<String, String> getInitValues() { |
38 |
|
39 |
final HashMap<String, String> map = new HashMap<String, String>(); |
40 |
map.put(R_ACTIVATE, Boolean.FALSE.toString());
|
41 |
map.put(R_PORTABLE, Boolean.TRUE.toString());
|
42 |
map.put(R_FOLDER, SextanteGUI.getSextanteInstallPath() + File.separator + Sextante.PORTABLE_R_FOLDER);
|
43 |
map.put(R_FOLDER, SextanteGUI.getSextanteInstallPath() + File.separator + Sextante.PORTABLE_R_SCRIPTS_FOLDER);
|
44 |
return map;
|
45 |
|
46 |
} |
47 |
|
48 |
} |