Revision 38564 branches/v2_0_0_prep/extensions/extEditing/src/org/gvsig/editing/ComplexSelectionGeometryExtension.java
ComplexSelectionGeometryExtension.java | ||
---|---|---|
40 | 40 |
*/ |
41 | 41 |
package org.gvsig.editing; |
42 | 42 |
|
43 |
import org.gvsig.andami.PluginServices;
|
|
43 |
import org.gvsig.andami.IconThemeHelper;
|
|
44 | 44 |
import org.gvsig.andami.messages.NotificationManager; |
45 | 45 |
import org.gvsig.andami.plugins.Extension; |
46 | 46 |
import org.gvsig.editing.gui.cad.tools.ComplexSelectionCADTool; |
... | ... | |
70 | 70 |
} |
71 | 71 |
|
72 | 72 |
private void registerIcons(){ |
73 |
PluginServices.getIconTheme().registerDefault( |
|
74 |
"edition-complex-selection", |
|
75 |
this.getClass().getClassLoader().getResource("images/ComplexSelCAD.png") |
|
76 |
); |
|
73 |
IconThemeHelper.registerIcon("action", "selection-complex", this); |
|
77 | 74 |
} |
78 | 75 |
|
79 | 76 |
/** |
... | ... | |
81 | 78 |
*/ |
82 | 79 |
public void execute(String s) { |
83 | 80 |
CADExtension.initFocus(); |
84 |
if (s.equals("_complex_selection")) {
|
|
81 |
if (s.equals("selection-complex")) {
|
|
85 | 82 |
CADExtension.setCADTool("_complex_selection",true); |
86 | 83 |
} |
87 | 84 |
CADExtension.getEditionManager().setMapControl(mapControl); |
Also available in: Unified diff