Revision 412
org.gvsig.toolbox/trunk/org.gvsig.toolbox/org.gvsig.toolbox.gui/src/main/java/es/unex/sextante/gui/toolbox/AlgorithmGroupsOrganizer.java | ||
---|---|---|
29 | 29 |
String fname = "(unknow)"; |
30 | 30 |
try { |
31 | 31 |
fname = getConfigFile(); |
32 |
input = new BufferedReader(new FileReader(fname)); |
|
32 |
File ffile = new File(fname); |
|
33 |
if (!ffile.exists()) { |
|
34 |
return; |
|
35 |
} |
|
36 |
FileReader freader = new FileReader(fname); |
|
37 |
input = new BufferedReader(freader); |
|
33 | 38 |
String sLine = null; |
34 | 39 |
while ((sLine = input.readLine()) != null) { |
35 | 40 |
final String[] sTokens = sLine.split("@"); |
org.gvsig.toolbox/trunk/org.gvsig.toolbox/org.gvsig.toolbox.gui/src/main/java/es/unex/sextante/gui/toolbox/AlgorithmsPanel.java | ||
---|---|---|
656 | 656 |
final ArrayList<ToolboxAction> actions = allActions.get(nai); |
657 | 657 |
for (int i = 0; i < actions.size(); i++) { |
658 | 658 |
final ToolboxAction ita = actions.get(i); |
659 |
System.out.println(ita.getName()); |
|
660 | 659 |
if( !user.isAuthorized(ACCESS_GEOPROCESS_AUTHORIZATION, ita, ita.getName()) ) { |
661 | 660 |
continue; |
662 | 661 |
} |
Also available in: Unified diff