Revision 556 org.gvsig.geoprocess/trunk/org.gvsig.geoprocess/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.sextante/src/main/java/org/gvsig/geoprocess/app/sextante/SextanteAlgorithmsExtension.java
SextanteAlgorithmsExtension.java | ||
---|---|---|
29 | 29 |
import es.unex.sextante.core.GeoAlgorithm; |
30 | 30 |
import es.unex.sextante.core.Sextante; |
31 | 31 |
|
32 |
import org.gvsig.andami.PluginServices; |
|
32 | 33 |
import org.gvsig.andami.PluginsLocator; |
34 |
import org.gvsig.andami.PluginsManager; |
|
33 | 35 |
import org.gvsig.andami.plugins.Extension; |
34 | 36 |
import org.gvsig.geoprocess.extension.GeoprocessExtension; |
35 | 37 |
|
36 | 38 |
/** |
37 | 39 |
* Sextante algorithms extension. |
38 |
*
|
|
40 |
* |
|
39 | 41 |
* @author gvSIG Team |
40 | 42 |
* @version $Id$ |
41 | 43 |
*/ |
... | ... | |
55 | 57 |
// The sextante algorithms jar files are copied into the |
56 | 58 |
// org.gvsig.geoprocess.app.mainplugin plugin as sextante looks |
57 | 59 |
// for resource bundles using its own classloader |
58 |
Sextante.initialize((PluginsLocator.getManager() |
|
59 |
.getPlugin(GeoprocessExtension.class).getPluginDirectory() |
|
60 |
.getAbsolutePath()) + "/lib"); |
|
61 |
|
|
62 |
// Readd previous algorithms just in case |
|
63 |
if (algorithms != null) { |
|
64 |
Sextante.getAlgorithms().putAll(algorithms); |
|
65 |
} |
|
60 |
Sextante.initialize((this.getPlugin().getPluginDirectory().getAbsolutePath()) + "/lib"); |
|
61 |
// Read previous algorithms just in case |
|
62 |
if (algorithms != null) { |
|
63 |
Sextante.getAlgorithms().putAll(algorithms); |
|
64 |
} |
|
66 | 65 |
} |
67 | 66 |
|
68 | 67 |
public boolean isEnabled() { |
Also available in: Unified diff