Revision 34002 branches/v2_0_0_prep/extensions/extI18n/src/main/java/org/gvsig/i18n/extension/I18nExtension.java
I18nExtension.java | ||
---|---|---|
28 | 28 |
|
29 | 29 |
import java.net.URL; |
30 | 30 |
|
31 |
import org.gvsig.about.AboutManager; |
|
32 |
import org.gvsig.about.AboutParticipant; |
|
31 | 33 |
import org.gvsig.andami.PluginServices; |
32 | 34 |
import org.gvsig.andami.plugins.Extension; |
35 |
import org.gvsig.app.ApplicationLocator; |
|
36 |
import org.gvsig.app.ApplicationManager; |
|
33 | 37 |
import org.gvsig.app.extension.About; |
34 | 38 |
import org.gvsig.app.gui.panels.FPanelAbout; |
35 | 39 |
import org.gvsig.i18n.extension.preferences.I18nPreferencePage; |
... | ... | |
56 | 60 |
|
57 | 61 |
public void postInitialize() { |
58 | 62 |
// Register the about panel |
59 |
About about = (About) PluginServices.getExtension(About.class); |
|
60 |
FPanelAbout panelAbout = about.getAboutPanel(); |
|
61 |
URL aboutURL = getClass().getResource("/about.htm"); |
|
62 |
panelAbout.addAboutUrl("I18nExtension", aboutURL); |
|
63 |
ApplicationManager application = ApplicationLocator.getManager(); |
|
64 |
|
|
65 |
AboutManager about = application.getAbout(); |
|
66 |
|
|
67 |
about.addDeveloper( |
|
68 |
"DISID", |
|
69 |
this.getClass().getResource("dsid.html"), |
|
70 |
1 |
|
71 |
); |
|
72 |
|
|
73 |
AboutParticipant participant = about.getDeveloper("DISID"); |
|
74 |
participant.addContribution( |
|
75 |
"I18nExtension", |
|
76 |
"gvSIG translations management extension", |
|
77 |
2009,1,1, |
|
78 |
2009,12,31 |
|
79 |
); |
|
63 | 80 |
} |
64 | 81 |
|
65 | 82 |
public boolean isEnabled() { |
Also available in: Unified diff