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/MergeParametersPanel.java
MergeParametersPanel.java | ||
---|---|---|
31 | 31 |
import javax.swing.JLabel; |
32 | 32 |
import javax.swing.JPanel; |
33 | 33 |
|
34 |
import org.gvsig.gui.beans.table.TableContainer; |
|
35 |
import org.gvsig.gui.beans.table.exceptions.NotInitializeException; |
|
36 |
import org.gvsig.sextante.app.extension.core.CompositeSourceOutputChannel; |
|
37 |
import org.gvsig.sextante.app.extension.gui.AlgorithmOutputPanel; |
|
38 |
|
|
39 | 34 |
import es.unex.sextante.core.GeoAlgorithm; |
40 | 35 |
import es.unex.sextante.core.ObjectAndDescription; |
41 | 36 |
import es.unex.sextante.core.OutputObjectsSet; |
... | ... | |
46 | 41 |
import es.unex.sextante.gui.core.SextanteGUI; |
47 | 42 |
import es.unex.sextante.outputs.Output; |
48 | 43 |
|
44 |
import org.gvsig.geoprocess.core.CompositeSourceOutputChannel; |
|
45 |
import org.gvsig.geoprocess.gui.AlgorithmOutputPanel; |
|
46 |
import org.gvsig.gui.beans.table.TableContainer; |
|
47 |
import org.gvsig.gui.beans.table.exceptions.NotInitializeException; |
|
48 |
|
|
49 | 49 |
/** |
50 | 50 |
* Panel for merge algorithm |
51 | 51 |
* @author <a href="mailto:nachobrodin@gmail.com">Nacho Brodin</a> |
... | ... | |
232 | 232 |
} |
233 | 233 |
|
234 | 234 |
@Override |
235 |
public boolean assignParameters() {
|
|
235 |
public void assignParameters() {
|
|
236 | 236 |
try { |
237 | 237 |
ParametersSet params = m_Algorithm.getParameters(); |
238 | 238 |
params.getParameter(MergeAlgorithm.FIELDLAYER).setParameterValue(getSelectedVectorLayer()); |
... | ... | |
241 | 241 |
OutputObjectsSet ooSet = m_Algorithm.getOutputObjects(); |
242 | 242 |
Output out = ooSet.getOutput(MergeAlgorithm.RESULT); |
243 | 243 |
out.setOutputChannel(new CompositeSourceOutputChannel(getAlgorithmOutputPanel().getOutputParameters())); |
244 |
return true; |
|
245 | 244 |
} catch (Exception e) { |
246 | 245 |
Sextante.addErrorToLog(e); |
247 |
return false; |
|
248 | 246 |
} |
249 | 247 |
} |
250 | 248 |
|
Also available in: Unified diff