Revision 25540 trunk/extensions/extCAD/src/com/iver/cit/gvsig/ViewCommandStackExtension.java
ViewCommandStackExtension.java | ||
---|---|---|
10 | 10 |
import com.iver.cit.gvsig.fmap.edition.commands.CommandListener; |
11 | 11 |
import com.iver.cit.gvsig.fmap.layers.FLayers; |
12 | 12 |
import com.iver.cit.gvsig.fmap.layers.FLyrVect; |
13 |
import com.iver.cit.gvsig.gui.cad.CADTool; |
|
13 | 14 |
import com.iver.cit.gvsig.gui.command.CommandStackDialog; |
14 | 15 |
import com.iver.cit.gvsig.project.documents.view.IProjectView; |
15 | 16 |
import com.iver.cit.gvsig.project.documents.view.gui.View; |
... | ... | |
83 | 84 |
|
84 | 85 |
public void commandRepaint() { |
85 | 86 |
try { |
86 |
CADExtension.getCADTool().clearSelection(); |
|
87 |
CADTool cadTool=CADExtension.getCADTool(); |
|
88 |
if (cadTool!=null){ |
|
89 |
cadTool.clearSelection(); |
|
90 |
} |
|
87 | 91 |
} catch (ReadDriverException e) { |
88 | 92 |
NotificationManager.addError(e.getMessage(),e); |
89 | 93 |
} |
... | ... | |
92 | 96 |
|
93 | 97 |
public void commandRefresh() { |
94 | 98 |
try { |
95 |
CADExtension.getCADTool().clearSelection(); |
|
99 |
CADTool cadTool=CADExtension.getCADTool(); |
|
100 |
if (cadTool!=null){ |
|
101 |
cadTool.clearSelection(); |
|
102 |
} |
|
96 | 103 |
} catch (ReadDriverException e) { |
97 | 104 |
NotificationManager.addError(e.getMessage(),e); |
98 | 105 |
} |
Also available in: Unified diff