Revision 4892 trunk/extensions/extCAD/src/com/iver/cit/gvsig/gui/cad/tools/MoveCADTool.java
MoveCADTool.java | ||
---|---|---|
105 | 105 |
* @see com.iver.cit.gvsig.gui.cad.CADTool#transition(com.iver.cit.gvsig.fmap.layers.FBitSet, java.lang.String) |
106 | 106 |
*/ |
107 | 107 |
public void transition(String s) { |
108 |
_fsm.addOption(s); |
|
108 |
if (!super.changeCommand(s)){ |
|
109 |
_fsm.addOption(s); |
|
110 |
} |
|
109 | 111 |
} |
110 | 112 |
|
111 | 113 |
/** |
... | ... | |
114 | 116 |
public void selection() { |
115 | 117 |
ArrayList selectedRow=getSelectedRows(); |
116 | 118 |
if (selectedRow.size() == 0 && !CADExtension.getCADTool().getClass().getName().equals("com.iver.cit.gvsig.gui.cad.tools.SelectionCADTool")) { |
117 |
CADExtension.setCADTool("selection"); |
|
119 |
CADExtension.setCADTool("selection",false);
|
|
118 | 120 |
((SelectionCADTool) CADExtension.getCADTool()).setNextTool( |
119 | 121 |
"move"); |
120 | 122 |
} |
... | ... | |
229 | 231 |
public String getName() { |
230 | 232 |
return PluginServices.getText(this,"move_"); |
231 | 233 |
} |
234 |
|
|
235 |
public String toString() { |
|
236 |
return "_move"; |
|
237 |
} |
|
232 | 238 |
} |
Also available in: Unified diff