root / trunk / extensions / ext3Dgui / src / com / iver / ai2 / gvsig3dgui / Extension3D.java @ 20900
History | View | Annotate | Download (1.51 KB)
1 | 15361 | afraile | package com.iver.ai2.gvsig3dgui; |
---|---|---|---|
2 | |||
3 | 16240 | jcampos | import javax.swing.JOptionPane; |
4 | 15361 | afraile | import javax.swing.JPopupMenu; |
5 | |||
6 | 15783 | jcampos | import com.iver.ai2.gvsig3dgui.preferences.View3DPreferences; |
7 | 15361 | afraile | import com.iver.ai2.gvsig3dgui.tocMenu.TocRefreshLayer; |
8 | import com.iver.ai2.gvsig3dgui.tocMenu.TocTransparencyPanel; |
||
9 | import com.iver.andami.PluginServices; |
||
10 | import com.iver.andami.plugins.Extension; |
||
11 | import com.iver.utiles.extensionPoints.ExtensionPoints; |
||
12 | import com.iver.utiles.extensionPoints.ExtensionPointsSingleton; |
||
13 | |||
14 | |||
15 | public class Extension3D extends Extension { |
||
16 | |||
17 | public void execute(String actionCommand) { |
||
18 | } |
||
19 | |||
20 | public void initialize() { |
||
21 | JPopupMenu.setDefaultLightWeightPopupEnabled(false); |
||
22 | ProjectView3DFactory.register(); |
||
23 | |||
24 | // TODO: registrar aki las opciones del menu contestual del toc
|
||
25 | ExtensionPoints extensionPoints = ExtensionPointsSingleton.getInstance(); |
||
26 | extensionPoints.add("View_TocActions",PluginServices.getText(this, "Transparency"),new TocTransparencyPanel()); |
||
27 | extensionPoints.add("View_TocActions",PluginServices.getText(this, "Layer_Refresh"),new TocRefreshLayer()); |
||
28 | 15687 | jcampos | |
29 | 15783 | jcampos | // Registering preferences dialog
|
30 | extensionPoints.add("AplicationPreferences","View3DPreferences", new View3DPreferences()); |
||
31 | 15361 | afraile | } |
32 | 16240 | jcampos | |
33 | |||
34 | 15361 | afraile | |
35 | 16240 | jcampos | public void postInitialize() { |
36 | super.postInitialize();
|
||
37 | // JOptionPane.showInternalConfirmDialog(null, "hola");
|
||
38 | |||
39 | |||
40 | } |
||
41 | |||
42 | 15361 | afraile | public boolean isEnabled() { |
43 | return true; |
||
44 | } |
||
45 | |||
46 | public boolean isVisible() { |
||
47 | return false; |
||
48 | } |
||
49 | |||
50 | public void terminate() { |
||
51 | super.terminate();
|
||
52 | } |
||
53 | 20900 | jcampos | |
54 | 15361 | afraile | } |