Revision 34006 branches/v2_0_0_prep/extensions/org.gvsig.selectiontools.app/org.gvsig.selectiontools.app.extension/src/main/java/org/gvsig/selectiontools/app/extension/AboutSelectionToolsExtension.java
AboutSelectionToolsExtension.java | ||
---|---|---|
1 | 1 |
package org.gvsig.selectiontools.app.extension; |
2 | 2 |
|
3 |
import org.gvsig.andami.PluginServices; |
|
3 |
import org.gvsig.about.AboutManager; |
|
4 |
import org.gvsig.about.AboutParticipant; |
|
4 | 5 |
import org.gvsig.andami.plugins.Extension; |
5 |
import org.gvsig.app.extension.About;
|
|
6 |
import org.gvsig.app.gui.panels.FPanelAbout;
|
|
6 |
import org.gvsig.app.ApplicationLocator;
|
|
7 |
import org.gvsig.app.ApplicationManager;
|
|
7 | 8 |
|
8 | 9 |
/* gvSIG. Geographic Information System of the Valencian Government |
9 | 10 |
* |
... | ... | |
50 | 51 |
public void initialize() { |
51 | 52 |
} |
52 | 53 |
|
53 |
/* |
|
54 |
* (non-Javadoc) |
|
55 |
* |
|
56 |
* @see com.iver.andami.plugins.Extension#postInitialize() |
|
57 |
*/ |
|
58 | 54 |
public void postInitialize() { |
59 |
About about = (About) PluginServices.getExtension(About.class); |
|
60 |
FPanelAbout panelAbout = about.getAboutPanel(); |
|
61 |
java.net.URL aboutURL = this.getClass().getResource("/about.htm"); |
|
62 |
panelAbout.addAboutUrl(PluginServices.getText(this, "extSelectionTools"), |
|
63 |
aboutURL); |
|
55 |
// Register the about panel |
|
56 |
ApplicationManager application = ApplicationLocator.getManager(); |
|
57 |
|
|
58 |
AboutManager about = application.getAbout(); |
|
59 |
|
|
60 |
about.addDeveloper("IVER", this.getClass().getClassLoader() |
|
61 |
.getResource("iver.html"), 1); |
|
62 |
|
|
63 |
AboutParticipant participant = about.getDeveloper("IVER"); |
|
64 |
participant.addContribution("SelectionToolsExtension", |
|
65 |
"Selection tools", 2009, 1, 1, 2009, 12, 31); |
|
66 |
|
|
67 |
about.addSponsor("Junta de Castilla y Le?n", // Junta de Castilla y Le?n |
|
68 |
getClass().getClassLoader().getResource("jcyl.html"), 2); |
|
64 | 69 |
} |
65 | 70 |
|
66 | 71 |
/* |
Also available in: Unified diff