Revision 52
org.gvsig.toolbox/trunk/org.gvsig.toolbox/org.gvsig.toolbox.gui/src/es/unex/sextante/gui/core/GUIResources.java | ||
---|---|---|
22 | 22 |
* |
23 | 23 |
*/ |
24 | 24 |
public class GUIResources { |
25 |
|
|
25 |
|
|
26 | 26 |
private static ArrayList<String> m_ParameterPanelNames = new ArrayList<String>(); |
27 | 27 |
private static ArrayList<String> m_ModelerParameterPanelNames = new ArrayList<String>(); |
28 | 28 |
|
... | ... | |
41 | 41 |
final File classpathFile = new File(classpathElement); |
42 | 42 |
final String sFilename = classpathFile.getName(); |
43 | 43 |
if (classpathFile.exists() && classpathFile.canRead()) { |
44 |
if (sFilename.toLowerCase().endsWith(".jar") && sFilename.toLowerCase().startsWith("sextante")) { |
|
44 |
if (sFilename.toLowerCase().endsWith(".jar") && |
|
45 |
sFilename.toLowerCase().startsWith(SextanteGUI.resourcePrefix)) { |
|
45 | 46 |
addResourcesFromJarFile(classpathElement); |
46 | 47 |
} |
47 | 48 |
|
... | ... | |
66 | 67 |
final File classpathFile = new File(URLDecoder.decode(url.getFile())); |
67 | 68 |
final String sFilename = classpathFile.getName(); |
68 | 69 |
if (classpathFile.exists() && classpathFile.canRead()) { |
69 |
if (sFilename.toLowerCase().endsWith(".jar") && sFilename.toLowerCase().startsWith("sextante")) { |
|
70 |
if (sFilename.toLowerCase().endsWith(".jar") && |
|
71 |
sFilename.toLowerCase().startsWith(SextanteGUI.resourcePrefix)) { |
|
70 | 72 |
addResourcesFromJarFile(classpathFile.getAbsolutePath()); |
71 | 73 |
} |
72 | 74 |
} |
... | ... | |
86 | 88 |
for (int i = 0; i < directoryFiles.length; i++) { |
87 | 89 |
if (!directoryFiles[i].isDirectory()) { |
88 | 90 |
final String sFilename = directoryFiles[i].getName(); |
89 |
if (sFilename.endsWith(".jar") && sFilename.startsWith("sextante")) { |
|
91 |
if (sFilename.endsWith(".jar") && |
|
92 |
sFilename.startsWith(SextanteGUI.resourcePrefix)) { |
|
90 | 93 |
addResourcesFromJarFile(directoryFiles[i].getAbsolutePath()); |
91 | 94 |
} |
92 | 95 |
} |
org.gvsig.toolbox/trunk/org.gvsig.toolbox/org.gvsig.toolbox.gui/src/es/unex/sextante/gui/core/SextanteGUI.java | ||
---|---|---|
44 | 44 |
* used by GUI elements |
45 | 45 |
*/ |
46 | 46 |
public class SextanteGUI { |
47 |
|
|
47 |
public static String resourcePrefix = "org.gvsig.toolbox"; |
|
48 | 48 |
public static final int HISTORY = 0; |
49 | 49 |
public static final int COMMANDLINE = 1; |
50 | 50 |
|
Also available in: Unified diff