Revision 189 org.gvsig.geoprocess/trunk/org.gvsig.geoprocess/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.mainplugin/src/main/java/org/gvsig/geoprocess/gui/gvPostProcessTask.java
gvPostProcessTask.java | ||
---|---|---|
18 | 18 |
import es.unex.sextante.core.Sextante; |
19 | 19 |
import es.unex.sextante.dataObjects.ILayer; |
20 | 20 |
import es.unex.sextante.dataObjects.IRasterLayer; |
21 |
import es.unex.sextante.dataObjects.ITable; |
|
22 | 21 |
import es.unex.sextante.dataObjects.IVectorLayer; |
23 | 22 |
import es.unex.sextante.gui.additionalResults.AdditionalResults; |
24 |
import es.unex.sextante.gui.additionalResults.TableTools; |
|
25 | 23 |
import es.unex.sextante.gui.algorithm.iterative.SingleFeatureVectorLayer; |
26 | 24 |
import es.unex.sextante.gui.core.SextanteGUI; |
27 | 25 |
import es.unex.sextante.gui.settings.SextanteGeneralSettings; |
... | ... | |
42 | 40 |
|
43 | 41 |
import org.gvsig.andami.PluginServices; |
44 | 42 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
43 |
import org.gvsig.app.ApplicationLocator; |
|
45 | 44 |
import org.gvsig.app.extension.ProjectExtension; |
46 | 45 |
import org.gvsig.app.project.Project; |
47 | 46 |
import org.gvsig.app.project.ProjectManager; |
... | ... | |
276 | 275 |
FileTools.openTable(sFilename, sDescription); |
277 | 276 |
if (table != null) { |
278 | 277 |
table.setName(sDescription); |
279 |
((ProjectExtension) PluginServices |
|
280 |
.getExtension(ProjectExtension.class)) |
|
281 |
.getProject().add(table); |
|
282 |
final JScrollPane jScrollPane = |
|
283 |
TableTools |
|
284 |
.getScrollableTablePanelFromITable((ITable) object); |
|
285 |
AdditionalResults |
|
286 |
.addComponent(new ObjectAndDescription( |
|
287 |
sDescription, jScrollPane)); |
|
288 |
bShowAdditionalPanel = true; |
|
278 |
ApplicationLocator.getManager().getProjectManager() |
|
279 |
.getCurrentProject().add(table); |
|
280 |
|
|
281 |
// final JScrollPane jScrollPane = |
|
282 |
// TableTools |
|
283 |
// .getScrollableTablePanelFromITable((ITable) |
|
284 |
// object); |
|
285 |
// AdditionalResults |
|
286 |
// .addComponent(new ObjectAndDescription( |
|
287 |
// sDescription, jScrollPane)); |
|
288 |
// bShowAdditionalPanel = true; |
|
289 | 289 |
} |
290 | 290 |
} catch (final Exception e) { |
291 | 291 |
Sextante.addErrorToLog(e); |
... | ... | |
297 | 297 |
final String sFilename = |
298 | 298 |
((FileOutputChannel) channel).getFilename(); |
299 | 299 |
final FLyrRaster flayer = |
300 |
(FLyrRaster) FileTools.openLayer(sFilename, |
|
300 |
(FLyrRaster) FileTools.openLayer( |
|
301 |
sFilename, |
|
301 | 302 |
sDescription, |
302 | 303 |
(IProjection) m_Algorithm.getOutputCRS()); |
303 | 304 |
if (flayer != null) { |
Also available in: Unified diff