Revision 38564 branches/v2_0_0_prep/extensions/extEditing/src/org/gvsig/editing/SelectionGeometryExtension.java
SelectionGeometryExtension.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.SelectionCADTool; |
... | ... | |
70 | 70 |
} |
71 | 71 |
|
72 | 72 |
private void registerIcons(){ |
73 |
PluginServices.getIconTheme().registerDefault( |
|
74 |
"edition-geometry-select", |
|
75 |
this.getClass().getClassLoader().getResource("images/SelCAD.png") |
|
76 |
); |
|
77 |
|
|
73 |
IconThemeHelper.registerIcon("action", "selection-simple", this); |
|
78 | 74 |
} |
75 |
|
|
79 | 76 |
/** |
80 | 77 |
* @see org.gvsig.andami.plugins.IExtension#execute(java.lang.String) |
81 | 78 |
*/ |
82 | 79 |
public void execute(String s) { |
83 | 80 |
CADExtension.initFocus(); |
84 |
if (s.equals("_selection")) {
|
|
81 |
if (s.equals("selection-simple")) {
|
|
85 | 82 |
CADExtension.setCADTool("_selection",true); |
86 | 83 |
} |
87 | 84 |
CADExtension.getEditionManager().setMapControl(mapControl); |
Also available in: Unified diff