Revision 4892 trunk/extensions/extCAD/src/com/iver/cit/gvsig/gui/cad/tools/CircleCADTool.java

View differences:

CircleCADTool.java
85 85
    /* (non-Javadoc)
86 86
     * @see com.iver.cit.gvsig.gui.cad.CADTool#transition(com.iver.cit.gvsig.fmap.layers.FBitSet, double, double)
87 87
     */
88
    public void transition(double x, double y, InputEvent event)
89
        throws TransitionUndefinedException {
88
    public void transition(double x, double y, InputEvent event){
90 89
        _fsm.addPoint(x, y, event);
91 90
    }
92 91

  
......
101 100
     * @see com.iver.cit.gvsig.gui.cad.CADTool#transition(com.iver.cit.gvsig.fmap.layers.FBitSet, java.lang.String)
102 101
     */
103 102
    public void transition(String s){
104
        _fsm.addOption(s);
103
    	if (!super.changeCommand(s)){
104
    		_fsm.addOption(s);
105
    	}
105 106
    }
106 107

  
107 108
    /**
......
206 207
		return PluginServices.getText(this,"circle_");
207 208
	}
208 209

  
210
	public String toString() {
211
		return "_circle";
212
	}
213

  
209 214
}

Also available in: Unified diff