Revision 38564 branches/v2_0_0_prep/extensions/extEditing/src/org/gvsig/editing/SplitGeometryCADToolExtension.java
SplitGeometryCADToolExtension.java | ||
---|---|---|
48 | 48 |
*/ |
49 | 49 |
package org.gvsig.editing; |
50 | 50 |
|
51 |
import org.gvsig.andami.IconThemeHelper; |
|
51 | 52 |
import org.gvsig.andami.PluginServices; |
52 | 53 |
import org.gvsig.andami.messages.NotificationManager; |
53 | 54 |
import org.gvsig.andami.plugins.Extension; |
... | ... | |
74 | 75 |
|
75 | 76 |
public void execute(String actionCommand) { |
76 | 77 |
CADExtension.initFocus(); |
77 |
if (actionCommand.equals(SplitGeometryCADTool.SPLIT_GEOMETRY_TOOL_NAME)) {
|
|
78 |
if (actionCommand.equals(SplitGeometryCADTool.SPLIT_GEOMETRY_ACTION_NAME)) {
|
|
78 | 79 |
CADExtension.setCADTool(SplitGeometryCADTool.SPLIT_GEOMETRY_TOOL_NAME, true); |
79 | 80 |
} |
80 | 81 |
CADExtension.getEditionManager().setMapControl(mapControl); |
... | ... | |
88 | 89 |
} |
89 | 90 |
|
90 | 91 |
private void registerIcons(){ |
91 |
PluginServices.getIconTheme().registerDefault("split-geometry", |
|
92 |
this.getClass(). |
|
93 |
getClassLoader(). |
|
94 |
getResource("images/split-poly.png") |
|
95 |
); |
|
92 |
IconThemeHelper.registerIcon("action", "layer-modify-split", this); |
|
96 | 93 |
} |
97 | 94 |
|
98 | 95 |
/** |
Also available in: Unified diff