Revision 191 org.gvsig.geoprocess/trunk/org.gvsig.geoprocess/org.gvsig.geoprocess.algorithm/org.gvsig.geoprocess.algorithm.xyshift/src/main/java/org/gvsig/geoprocess/algorithm/xyshift/XYShiftLibrary.java
XYShiftLibrary.java | ||
---|---|---|
20 | 20 |
*/ |
21 | 21 |
package org.gvsig.geoprocess.algorithm.xyshift; |
22 | 22 |
|
23 |
import es.unex.sextante.core.Sextante; |
|
24 |
|
|
25 | 23 |
import org.gvsig.geoprocess.algorithm.base.core.AlgorithmAbstractLibrary; |
26 | 24 |
import org.gvsig.i18n.Messages; |
27 | 25 |
import org.gvsig.tools.library.LibraryException; |
28 | 26 |
|
29 | 27 |
/** |
30 |
* Initialization of XYShiftLibrary library.
|
|
28 |
* Initialization of XYShiftLibrary library. |
|
31 | 29 |
* |
32 | 30 |
* @author <a href="mailto:nachobrodin@gmail.com">Nacho Brodin</a> |
33 | 31 |
*/ |
34 | 32 |
public class XYShiftLibrary extends AlgorithmAbstractLibrary { |
35 | 33 |
|
36 |
@Override |
|
37 |
protected void doInitialize() throws LibraryException { |
|
38 |
|
|
39 |
} |
|
34 |
@Override |
|
35 |
protected void doInitialize() throws LibraryException { |
|
40 | 36 |
|
41 |
@Override |
|
42 |
protected void doPostInitialize() throws LibraryException { |
|
43 |
Messages.addResourceFamily( |
|
44 |
"org.gvsig.geoprocess.algorithm.xyshift.xyshift", |
|
45 |
XYShiftLibrary.class.getClassLoader(), |
|
46 |
XYShiftLibrary.class.getClass().getName()); |
|
47 |
setLanguageStrings("org.gvsig.geoprocess.algorithm.xyshift.xyshift"); |
|
48 |
Sextante.addGeoalgorithm("gvSIG", XYShiftAlgorithm.class, text); |
|
49 |
} |
|
37 |
} |
|
50 | 38 |
|
39 |
@Override |
|
40 |
protected void doPostInitialize() throws LibraryException { |
|
41 |
Messages.addResourceFamily( |
|
42 |
"org.gvsig.geoprocess.algorithm.xyshift.xyshift", |
|
43 |
XYShiftLibrary.class.getClassLoader(), XYShiftLibrary.class |
|
44 |
.getClass().getName()); |
|
45 |
registerGeoProcess( |
|
46 |
XYShiftAlgorithm.class, |
|
47 |
getLanguageStrings("org.gvsig.geoprocess.algorithm.xyshift.xyshift")); |
|
48 |
} |
|
49 |
|
|
51 | 50 |
} |
Also available in: Unified diff