Revision 1587 branches/pilotoDWG/applications/appgvSIG/src/com/iver/cit/gvsig/GeometryExtension.java
GeometryExtension.java | ||
---|---|---|
43 | 43 |
import java.io.IOException; |
44 | 44 |
|
45 | 45 |
import com.iver.andami.PluginServices; |
46 |
import com.iver.andami.messages.NotificationManager; |
|
46 | 47 |
import com.iver.andami.plugins.Extension; |
47 | 48 |
|
48 | 49 |
import com.iver.cit.gvsig.fmap.FMap; |
... | ... | |
123 | 124 |
vista.getMapControl().setCadTool("rectangle"); |
124 | 125 |
} else if (s.compareTo("POLYGON") == 0) { |
125 | 126 |
vista.getMapControl().setCadTool("polygon"); |
126 |
} else if (s.compareTo("UNDO") == 0) { |
|
127 |
try { |
|
128 |
cadmap.getCadToolAdapter().getEditableFeatureSource().undo(); |
|
129 |
} catch (DriverIOException e) { |
|
130 |
e.printStackTrace(); |
|
131 |
} catch (IOException e) { |
|
132 |
e.printStackTrace(); |
|
133 |
} |
|
134 |
vista.getMapControl().getMapControl().drawMap(false); |
|
135 |
} else if (s.compareTo("REDO") == 0) { |
|
136 |
try { |
|
137 |
cadmap.getCadToolAdapter().getEditableFeatureSource().redo(); |
|
138 |
} catch (DriverIOException e) { |
|
139 |
e.printStackTrace(); |
|
140 |
} catch (IOException e) { |
|
141 |
e.printStackTrace(); |
|
142 |
} |
|
143 |
vista.getMapControl().getMapControl().drawMap(false); |
|
144 | 127 |
} |
145 | 128 |
} |
146 | 129 |
|
Also available in: Unified diff