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