Revision 3847 trunk/extensions/extCAD/src/com/iver/cit/gvsig/CADExtension.java
CADExtension.java | ||
---|---|---|
46 | 46 |
|
47 | 47 |
import javax.swing.AbstractAction; |
48 | 48 |
import javax.swing.FocusManager; |
49 |
import javax.swing.JComponent; |
|
49 | 50 |
import javax.swing.KeyStroke; |
50 | 51 |
|
51 | 52 |
import com.iver.andami.PluginServices; |
... | ... | |
89 | 90 |
* @see com.iver.andami.plugins.Extension#inicializar() |
90 | 91 |
*/ |
91 | 92 |
public void inicializar() { |
93 |
|
|
94 |
|
|
95 |
|
|
96 |
|
|
92 | 97 |
SelectionCADTool selection=new SelectionCADTool(); |
93 | 98 |
LineCADTool line = new LineCADTool(); |
94 | 99 |
PointCADTool point = new PointCADTool(); |
... | ... | |
131 | 136 |
} |
132 | 137 |
}); |
133 | 138 |
registerKeyStrokes(); |
139 |
view.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, 0), "elimina"); |
|
140 |
view.getActionMap().put("elimina", new MyAction("eliminar")); |
|
141 |
view.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), "escape"); |
|
142 |
view.getActionMap().put("escape", new MyAction("escape")); |
|
143 |
|
|
134 | 144 |
FLayers layers=mapControl.getMapContext().getLayers(); |
135 | 145 |
for (int i=0;i<layers.getLayersCount();i++){ |
136 | 146 |
if (layers.getLayer(i).isEditing() && layers.getLayer(i) instanceof FLyrVect){ |
Also available in: Unified diff