Revision 23305 trunk/extensions/ext3Dgui/src/org/gvsig/gvsig3dgui/legend/Legend3DExtension.java
Legend3DExtension.java | ||
---|---|---|
1 | 1 |
package org.gvsig.gvsig3dgui.legend; |
2 | 2 |
|
3 |
import com.iver.ai2.gvsig3d.legend.ExtrusionLegend; |
|
3 |
import java.util.ArrayList; |
|
4 |
|
|
5 |
import org.gvsig.baseclasses.IOperator; |
|
6 |
|
|
4 | 7 |
import com.iver.ai2.gvsig3d.legend.Object3DMarker; |
5 | 8 |
import com.iver.andami.plugins.Extension; |
6 | 9 |
import com.iver.cit.gvsig.fmap.core.FShape; |
7 | 10 |
import com.iver.cit.gvsig.gui.styling.SymbolEditor; |
8 |
import com.iver.cit.gvsig.project.documents.view.legend.gui.LegendManager; |
|
9 | 11 |
|
10 | 12 |
|
11 | 13 |
public class Legend3DExtension extends Extension{ |
12 |
|
|
14 |
private static ArrayList<IOperator> operators=new ArrayList<IOperator>(); |
|
15 |
|
|
13 | 16 |
public void execute(String actionCommand) { |
14 |
// TODO Auto-generated method stub |
|
15 | 17 |
|
18 |
// com.iver.andami.ui.mdiManager.IWindow window = PluginServices.getMDIManager().getActiveWindow(); |
|
19 |
// Table table = (Table)window; |
|
20 |
// if (operators.isEmpty()) { |
|
21 |
// PluginServices.cancelableBackgroundExecution(new EvalOperatorsTask()); |
|
22 |
// }else{ |
|
23 |
// EvalExpressionDialog eed=new EvalExpressionDialog(table,EvalOperatorsTask.interpreter,operators); |
|
24 |
// PluginServices.getMDIManager().addWindow(eed); |
|
25 |
// } |
|
26 |
|
|
16 | 27 |
} |
17 | 28 |
|
18 | 29 |
public void initialize() { |
... | ... | |
26 | 37 |
public void postInitialize() { |
27 | 38 |
// TODO Auto-generated method stub |
28 | 39 |
|
29 |
LegendManager.addLegendPage(ExtrusionLegend.class);
|
|
40 |
// LegendManager.addLegendPage(ExtrusionProve.class);
|
|
30 | 41 |
// LegendManager.addLegendPage(SingleSymbolLegend3D.class); |
31 | 42 |
SymbolEditor.addSymbolEditorPanel(Object3DMarker.class, FShape.POINT); |
32 | 43 |
|
44 |
// Register operation of expresion |
|
45 |
// Prove.registerOperations(); |
|
33 | 46 |
|
34 | 47 |
} |
48 |
|
|
35 | 49 |
|
36 | 50 |
public boolean isEnabled() { |
37 | 51 |
// TODO Auto-generated method stub |
Also available in: Unified diff