Revision 9052 trunk/extensions/extCAD/src/com/iver/cit/gvsig/gui/cad/DefaultCADTool.java
DefaultCADTool.java | ||
---|---|---|
75 | 75 |
import com.iver.cit.gvsig.fmap.layers.FBitSet; |
76 | 76 |
import com.iver.cit.gvsig.fmap.layers.FLyrVect; |
77 | 77 |
import com.iver.cit.gvsig.gui.cad.exception.CommandException; |
78 |
import com.iver.cit.gvsig.gui.cad.tools.SelectionCADTool; |
|
78 | 79 |
import com.iver.cit.gvsig.layers.VectorialLayerEdited; |
79 | 80 |
import com.iver.cit.gvsig.project.documents.view.gui.View; |
80 | 81 |
import com.iver.utiles.console.JConsole; |
... | ... | |
96 | 97 |
|
97 | 98 |
private String tool = "selection"; |
98 | 99 |
|
100 |
private DefaultCADTool previousTool; |
|
101 |
|
|
99 | 102 |
/** |
100 | 103 |
* DOCUMENT ME! |
101 | 104 |
*/ |
... | ... | |
325 | 328 |
public void end() { |
326 | 329 |
CADExtension.setCADTool("_selection", true); |
327 | 330 |
PluginServices.getMainFrame().setSelectedTool("_selection"); |
331 |
CADTool cadtool=CADExtension.getCADTool(); |
|
332 |
cadtool.setPreviosTool(this); |
|
328 | 333 |
} |
329 | 334 |
|
330 | 335 |
public void init() { |
... | ... | |
417 | 422 |
JConsole.ERROR); |
418 | 423 |
} |
419 | 424 |
|
425 |
public void setPreviosTool(DefaultCADTool tool) { |
|
426 |
previousTool=tool; |
|
427 |
} |
|
428 |
public void restorePreviousTool() { |
|
429 |
CADExtension.setCADTool(previousTool.toString(), true); |
|
430 |
PluginServices.getMainFrame().setSelectedTool(previousTool.toString()); |
|
431 |
} |
|
432 |
|
|
420 | 433 |
} |
Also available in: Unified diff