Revision 172 org.gvsig.sextante/trunk/org.gvsig.sextante.app/org.gvsig.sextante.app.algorithm/org.gvsig.sextante.app.algorithm.merge/src/main/java/org/gvsig/sextante/app/algorithm/merge/MergeLibrary.java
MergeLibrary.java | ||
---|---|---|
20 | 20 |
*/ |
21 | 21 |
package org.gvsig.sextante.app.algorithm.merge; |
22 | 22 |
|
23 |
import java.util.HashMap; |
|
24 |
|
|
25 |
import javax.swing.ImageIcon; |
|
26 |
|
|
27 |
import es.unex.sextante.core.GeoAlgorithm; |
|
23 | 28 |
import es.unex.sextante.core.Sextante; |
29 |
import es.unex.sextante.gui.core.IAlgorithmProvider; |
|
30 |
import es.unex.sextante.gui.core.ILogHandler; |
|
24 | 31 |
import es.unex.sextante.gui.core.SextanteGUI; |
32 |
import es.unex.sextante.gui.settings.Setting; |
|
25 | 33 |
|
26 | 34 |
import org.gvsig.i18n.Messages; |
27 | 35 |
import org.gvsig.sextante.app.algorithm.base.core.AlgorithmAbstractLibrary; |
... | ... | |
46 | 54 |
MergeLibrary.class.getClassLoader(), |
47 | 55 |
MergeLibrary.class.getClass().getName()); |
48 | 56 |
setLanguageStrings("org.gvsig.sextante.app.algorithm.merge.merge"); |
49 |
Sextante.addGeoProcess(MergeAlgorithm.class, text); |
|
50 |
SextanteGUI.addCustomParametersPanel(MergeAlgorithm.class, MergeParametersPanel.class, null); |
|
57 |
Sextante.addGeoalgorithm("gvSIG", MergeAlgorithm.class, text); |
|
58 |
SextanteGUI.addAlgorithmProvider(new IAlgorithmProvider() { |
|
59 |
|
|
60 |
public void update() { |
|
61 |
// Nothing to do |
|
62 |
} |
|
63 |
|
|
64 |
public void initialize() { |
|
65 |
// Nothing to do |
|
66 |
} |
|
67 |
|
|
68 |
public Setting getSettings() { |
|
69 |
return new Setting() { |
|
70 |
|
|
71 |
@Override |
|
72 |
public String getName() { |
|
73 |
return "gvSIG.MergeAlgorithm"; |
|
74 |
} |
|
75 |
|
|
76 |
@Override |
|
77 |
public HashMap<String, String> getInitValues() { |
|
78 |
// TODO Auto-generated method stub |
|
79 |
return null; |
|
80 |
} |
|
81 |
|
|
82 |
@Override |
|
83 |
public void createPanel() { |
|
84 |
// TODO Auto-generated method stub |
|
85 |
|
|
86 |
} |
|
87 |
}; |
|
88 |
} |
|
89 |
|
|
90 |
public String getName() { |
|
91 |
return "gvSIG.MergeAlgorithm"; |
|
92 |
} |
|
93 |
|
|
94 |
public ILogHandler getLogHandler() { |
|
95 |
// TODO Auto-generated method stub |
|
96 |
return null; |
|
97 |
} |
|
98 |
|
|
99 |
public ImageIcon getIcon() { |
|
100 |
// TODO Auto-generated method stub |
|
101 |
return null; |
|
102 |
} |
|
103 |
|
|
104 |
public HashMap<String, Class> getCustomParameterPanels() { |
|
105 |
HashMap<String, Class> panels = new HashMap<String, Class>(1); |
|
106 |
panels.put((new MergeAlgorithm()).getCommandLineName(), |
|
107 |
MergeParametersPanel.class); |
|
108 |
return panels; |
|
109 |
} |
|
110 |
|
|
111 |
public HashMap<String, Class> getCustomModelerParameterPanels() { |
|
112 |
// TODO Auto-generated method stub |
|
113 |
return null; |
|
114 |
} |
|
115 |
|
|
116 |
public HashMap<String, GeoAlgorithm> getAlgorithms() { |
|
117 |
HashMap<String, GeoAlgorithm> algs = |
|
118 |
new HashMap<String, GeoAlgorithm>(1); |
|
119 |
algs.put(getName(), new MergeAlgorithm()); |
|
120 |
return algs; |
|
121 |
} |
|
122 |
|
|
123 |
public String getAlgorithmHelpFilename(GeoAlgorithm arg0, |
|
124 |
boolean arg1) { |
|
125 |
// TODO Auto-generated method stub |
|
126 |
return null; |
|
127 |
} |
|
128 |
|
|
129 |
public Object getAlgorithmHelp(GeoAlgorithm arg0) { |
|
130 |
// TODO Auto-generated method stub |
|
131 |
return null; |
|
132 |
} |
|
133 |
|
|
134 |
public boolean canEditHelp() { |
|
135 |
// TODO Auto-generated method stub |
|
136 |
return false; |
|
137 |
} |
|
138 |
}); |
|
139 |
|
|
51 | 140 |
} |
52 | 141 |
|
53 | 142 |
} |
Also available in: Unified diff