Revision 34002 branches/v2_0_0_prep/extensions/extJCRS/src/org/gvsig/crs/JCrsExtension.java
JCrsExtension.java | ||
---|---|---|
46 | 46 |
|
47 | 47 |
import org.geotools.factory.FactoryRegistry; |
48 | 48 |
import org.geotools.referencing.operation.MathTransformProvider; |
49 |
import org.gvsig.about.AboutManager; |
|
50 |
import org.gvsig.about.AboutParticipant; |
|
49 | 51 |
import org.gvsig.andami.PluginServices; |
50 | 52 |
import org.gvsig.andami.plugins.Extension; |
51 | 53 |
import org.gvsig.app.ApplicationLocator; |
54 |
import org.gvsig.app.ApplicationManager; |
|
52 | 55 |
import org.gvsig.app.extension.About; |
53 | 56 |
import org.gvsig.app.gui.panels.CRSSelectPanel; |
54 | 57 |
import org.gvsig.app.gui.panels.FPanelAbout; |
... | ... | |
116 | 119 |
((ProjectPreferences) ApplicationLocator.getManager().getPreferences( |
117 | 120 |
"project")).setDefaultProjection(CRSFactory.getCRS(projCode)); |
118 | 121 |
|
119 |
About about=(About)PluginServices.getExtension(About.class); |
|
120 |
FPanelAbout panelAbout=about.getAboutPanel(); |
|
121 |
java.net.URL aboutURL = this.getClass().getResource("/about.htm"); |
|
122 |
panelAbout.addAboutUrl("JCRS",aboutURL); |
|
122 |
addAboutInfo(); |
|
123 | 123 |
} |
124 | 124 |
|
125 |
private void addAboutInfo() { |
|
126 |
ApplicationManager application = ApplicationLocator.getManager(); |
|
127 |
|
|
128 |
AboutManager about = application.getAbout(); |
|
129 |
|
|
130 |
about.addDeveloper( |
|
131 |
"UCLM-IDR", |
|
132 |
this.getClass().getResource("about.html"), |
|
133 |
1 |
|
134 |
); |
|
135 |
|
|
136 |
AboutParticipant participant = about.getDeveloper("UCLM-IDR"); |
|
137 |
participant.addContribution( |
|
138 |
"jCRS", |
|
139 |
"Extensi?n para el manejo de Sistemas de Referencia de Coordenadas", |
|
140 |
2006,1,1, |
|
141 |
2007,12,31 |
|
142 |
); |
|
143 |
} |
|
144 |
|
|
125 | 145 |
public void execute(String actionCommand) { |
126 | 146 |
|
127 | 147 |
|
Also available in: Unified diff