svn-gvsig-desktop / tags / v1_0_2_Build_905 / extensions / extCAD / src / com / iver / cit / gvsig / CADExtension.java @ 10767
History | View | Annotate | Download (13.3 KB)
1 | 3712 | caballero | /* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
---|---|---|---|
2 | *
|
||
3 | * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
||
4 | *
|
||
5 | * This program is free software; you can redistribute it and/or
|
||
6 | * modify it under the terms of the GNU General Public License
|
||
7 | * as published by the Free Software Foundation; either version 2
|
||
8 | * of the License, or (at your option) any later version.
|
||
9 | *
|
||
10 | * This program is distributed in the hope that it will be useful,
|
||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
13 | * GNU General Public License for more details.
|
||
14 | *
|
||
15 | * You should have received a copy of the GNU General Public License
|
||
16 | * along with this program; if not, write to the Free Software
|
||
17 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
||
18 | *
|
||
19 | * For more information, contact:
|
||
20 | *
|
||
21 | * Generalitat Valenciana
|
||
22 | * Conselleria d'Infraestructures i Transport
|
||
23 | * Av. Blasco Ib??ez, 50
|
||
24 | * 46010 VALENCIA
|
||
25 | * SPAIN
|
||
26 | *
|
||
27 | * +34 963862235
|
||
28 | * gvsig@gva.es
|
||
29 | * www.gvsig.gva.es
|
||
30 | *
|
||
31 | * or
|
||
32 | *
|
||
33 | * IVER T.I. S.A
|
||
34 | * Salamanca 50
|
||
35 | * 46005 Valencia
|
||
36 | * Spain
|
||
37 | *
|
||
38 | * +34 963163400
|
||
39 | * dac@iver.es
|
||
40 | */
|
||
41 | package com.iver.cit.gvsig; |
||
42 | |||
43 | 4210 | fjp | import java.awt.KeyEventPostProcessor; |
44 | import java.awt.KeyboardFocusManager; |
||
45 | 3712 | caballero | import java.awt.event.ActionEvent; |
46 | 3883 | caballero | import java.awt.event.ActionListener; |
47 | 3712 | caballero | import java.awt.event.KeyEvent; |
48 | 3883 | caballero | import java.awt.event.MouseEvent; |
49 | 3712 | caballero | import java.util.HashMap; |
50 | |||
51 | import javax.swing.AbstractAction; |
||
52 | 3883 | caballero | import javax.swing.JMenuItem; |
53 | import javax.swing.JPopupMenu; |
||
54 | 6528 | caballero | import javax.swing.JTable; |
55 | 5817 | fjp | import javax.swing.KeyStroke; |
56 | 4815 | fjp | import javax.swing.text.JTextComponent; |
57 | 3712 | caballero | |
58 | import com.iver.andami.PluginServices; |
||
59 | import com.iver.andami.plugins.Extension; |
||
60 | import com.iver.cit.gvsig.fmap.MapControl; |
||
61 | 4950 | caballero | import com.iver.cit.gvsig.fmap.layers.FLayer; |
62 | import com.iver.cit.gvsig.fmap.layers.FLyrAnnotation; |
||
63 | 5845 | fjp | import com.iver.cit.gvsig.gui.accelerators.ForceCursorAccelerator; |
64 | import com.iver.cit.gvsig.gui.accelerators.GridAccelerator; |
||
65 | import com.iver.cit.gvsig.gui.accelerators.OrtoAccelerator; |
||
66 | import com.iver.cit.gvsig.gui.accelerators.RefentAccelerator; |
||
67 | 3712 | caballero | import com.iver.cit.gvsig.gui.cad.CADTool; |
68 | import com.iver.cit.gvsig.gui.cad.CADToolAdapter; |
||
69 | 3883 | caballero | import com.iver.cit.gvsig.gui.cad.tools.CopyCADTool; |
70 | import com.iver.cit.gvsig.gui.cad.tools.RotateCADTool; |
||
71 | import com.iver.cit.gvsig.gui.cad.tools.ScaleCADTool; |
||
72 | 5884 | caballero | import com.iver.cit.gvsig.gui.cad.tools.SymmetryCADTool; |
73 | 8765 | jjdelcerro | import com.iver.cit.gvsig.project.documents.view.gui.View; |
74 | import com.iver.cit.gvsig.project.documents.view.toc.MenuEntry; |
||
75 | 4892 | caballero | import com.iver.utiles.console.JConsole; |
76 | 3712 | caballero | import com.iver.utiles.console.ResponseListener; |
77 | 5478 | caballero | import com.iver.utiles.console.jedit.JEditTextArea; |
78 | 5115 | caballero | |
79 | 3712 | caballero | /**
|
80 | 5115 | caballero | * Extensi?n dedicada a controlar las diferentes operaciones sobre el editado de
|
81 | * una capa.
|
||
82 | 3712 | caballero | *
|
83 | * @author Vicente Caballero Navarro
|
||
84 | */
|
||
85 | 5005 | jorpiell | public class CADExtension extends Extension { |
86 | 6174 | caballero | private static HashMap adapters=new HashMap(); |
87 | 4950 | caballero | |
88 | 5115 | caballero | private static View view; |
89 | 4950 | caballero | |
90 | 5115 | caballero | private MapControl mapControl;
|
91 | 6192 | caballero | private static CADToolAdapter adapter=null; |
92 | 4950 | caballero | |
93 | 5115 | caballero | public static CADToolAdapter getCADToolAdapter() { |
94 | 6880 | cesar | com.iver.andami.ui.mdiManager.IWindow view=PluginServices.getMDIManager().getActiveWindow(); |
95 | 6174 | caballero | if (view instanceof View) { |
96 | View v=(View)view; |
||
97 | 7540 | caballero | if (!adapters.containsKey(v.getModel())) {
|
98 | adapters.put(v.getModel(),new CADToolAdapter());
|
||
99 | 6174 | caballero | } |
100 | 7540 | caballero | adapter=(CADToolAdapter)adapters.get(v.getModel()); |
101 | 6192 | caballero | return adapter;
|
102 | 6174 | caballero | } |
103 | 6192 | caballero | return adapter;
|
104 | 6174 | caballero | |
105 | 5115 | caballero | } |
106 | 4950 | caballero | |
107 | 5115 | caballero | /**
|
108 | * @see com.iver.andami.plugins.IExtension#initialize()
|
||
109 | */
|
||
110 | public void initialize() { |
||
111 | 5478 | caballero | |
112 | 5793 | fjp | // Registramos los Popup menus:
|
113 | 8765 | jjdelcerro | MenuEntry.register(); |
114 | 5884 | caballero | |
115 | 5373 | fjp | // Fijamos que los s?mbolos de dibujo tengan outline
|
116 | // TODO: Esto se debe configurar en el cuadro de di?logo de preferencias
|
||
117 | CADTool.drawingSymbol.setOutlined(true);
|
||
118 | CADTool.drawingSymbol.setOutlineColor(CADTool.drawingSymbol.getColor().darker()); |
||
119 | CADTool.modifySymbol.setOutlined(true);
|
||
120 | CADTool.modifySymbol.setOutlineColor(CADTool.modifySymbol.getColor().darker()); |
||
121 | CADTool.selectSymbol.setOutlined(true);
|
||
122 | CADTool.selectSymbol.setOutlineColor(CADTool.selectSymbol.getColor().darker()); |
||
123 | 3712 | caballero | |
124 | 5478 | caballero | |
125 | 5115 | caballero | CopyCADTool copy = new CopyCADTool();
|
126 | RotateCADTool rotate = new RotateCADTool();
|
||
127 | ScaleCADTool scale = new ScaleCADTool();
|
||
128 | 5884 | caballero | SymmetryCADTool symmetry=new SymmetryCADTool();
|
129 | 5115 | caballero | addCADTool("_copy", copy);
|
130 | addCADTool("_rotate", rotate);
|
||
131 | addCADTool("_scale", scale);
|
||
132 | 5884 | caballero | addCADTool("_symmetry", symmetry);
|
133 | // Registramos las teclas de acceso r?pido que vamos a usar.
|
||
134 | 5959 | caballero | |
135 | 5845 | fjp | KeyStroke key = KeyStroke.getKeyStroke(KeyEvent.VK_F3, 0); |
136 | 5959 | caballero | RefentAccelerator accRef = new RefentAccelerator();
|
137 | 5845 | fjp | PluginServices.registerKeyStroke(key, accRef); |
138 | 5115 | caballero | |
139 | 5845 | fjp | key = KeyStroke.getKeyStroke(KeyEvent.VK_F8, 0); |
140 | 5959 | caballero | OrtoAccelerator accOrto = new OrtoAccelerator();
|
141 | 5845 | fjp | PluginServices.registerKeyStroke(key, accOrto); |
142 | |||
143 | key = KeyStroke.getKeyStroke(KeyEvent.VK_F7, 0); |
||
144 | 5959 | caballero | GridAccelerator accGrid = new GridAccelerator();
|
145 | 5845 | fjp | PluginServices.registerKeyStroke(key, accGrid); |
146 | |||
147 | key = KeyStroke.getKeyStroke(KeyEvent.VK_F9, 0); |
||
148 | 5959 | caballero | ForceCursorAccelerator accForce = new ForceCursorAccelerator();
|
149 | 5845 | fjp | PluginServices.registerKeyStroke(key, accForce); |
150 | 5959 | caballero | |
151 | |||
152 | 5115 | caballero | KeyboardFocusManager kfm = KeyboardFocusManager |
153 | .getCurrentKeyboardFocusManager(); |
||
154 | kfm.addKeyEventPostProcessor(new myKeyEventPostProcessor());
|
||
155 | } |
||
156 | |||
157 | /**
|
||
158 | * @see com.iver.andami.plugins.IExtension#execute(java.lang.String)
|
||
159 | */
|
||
160 | public void execute(String s) { |
||
161 | initFocus(); |
||
162 | |||
163 | if (s.equals("_spline") || s.equals("_copy") |
||
164 | || s.equals("_equidistance") || s.equals("_matriz") |
||
165 | || s.equals("_symmetry") || s.equals("_rotate") |
||
166 | || s.equals("_stretch") || s.equals("_scale") |
||
167 | || s.equals("_extend") || s.equals("_trim") |
||
168 | 5884 | caballero | || s.equals("_unit")
|
169 | 5115 | caballero | || s.equals("_chaflan") || s.equals("_join")) { |
170 | setCADTool(s, true);
|
||
171 | } |
||
172 | 6174 | caballero | CADToolAdapter cta=getCADToolAdapter(); |
173 | cta.configureMenu(); |
||
174 | 5115 | caballero | } |
175 | |||
176 | public static void addCADTool(String name, CADTool c) { |
||
177 | 6174 | caballero | CADToolAdapter.addCADTool(name, c); |
178 | 3712 | caballero | } |
179 | 5115 | caballero | |
180 | public static void setCADTool(String text, boolean showCommand) { |
||
181 | 6174 | caballero | CADToolAdapter cta=getCADToolAdapter(); |
182 | CADTool ct=cta.getCADTool(text); |
||
183 | |||
184 | 5115 | caballero | if (ct == null) |
185 | throw new RuntimeException("No such cad tool"); |
||
186 | 6713 | caballero | cta.initializeFlatness(); |
187 | cta.initializeGrid(); |
||
188 | 6174 | caballero | cta.setCadTool(ct); |
189 | 3712 | caballero | ct.init(); |
190 | 5115 | caballero | if (showCommand) {
|
191 | 6880 | cesar | if (PluginServices.getMDIManager().getActiveWindow() instanceof View) { |
192 | View vista = (View) PluginServices.getMDIManager().getActiveWindow(); |
||
193 | 5959 | caballero | vista.getConsolePanel().addText("\n" + ct.getName(),
|
194 | 5115 | caballero | JConsole.COMMAND); |
195 | 6174 | caballero | cta.askQuestion(); |
196 | 5959 | caballero | } |
197 | 4892 | caballero | } |
198 | 5115 | caballero | // PluginServices.getMainFrame().setSelectedTool("SELECT");
|
199 | // PluginServices.getMainFrame().enableControls();
|
||
200 | 3712 | caballero | } |
201 | |||
202 | 5115 | caballero | public static CADTool getCADTool() { |
203 | 6174 | caballero | CADToolAdapter cta=getCADToolAdapter(); |
204 | return cta.getCadTool();
|
||
205 | 5115 | caballero | } |
206 | |||
207 | /**
|
||
208 | * @see com.iver.andami.plugins.IExtension#isEnabled()
|
||
209 | */
|
||
210 | public boolean isEnabled() { |
||
211 | 5560 | fjp | // initFocus();
|
212 | 5115 | caballero | return true; |
213 | } |
||
214 | |||
215 | /**
|
||
216 | * @see com.iver.andami.plugins.IExtension#isVisible()
|
||
217 | */
|
||
218 | public boolean isVisible() { |
||
219 | if (EditionUtilities.getEditionStatus() == EditionUtilities.EDITION_STATUS_ONE_VECTORIAL_LAYER_ACTIVE_AND_EDITABLE) {
|
||
220 | 6880 | cesar | view = (View) PluginServices.getMDIManager().getActiveWindow();
|
221 | 6604 | caballero | mapControl = view.getMapControl(); |
222 | 5115 | caballero | FLayer[] layers = mapControl.getMapContext().getLayers()
|
223 | .getActives(); |
||
224 | if (!(layers[0] instanceof FLyrAnnotation)) { |
||
225 | return true; |
||
226 | 4950 | caballero | } |
227 | 5115 | caballero | } |
228 | 4950 | caballero | return false; |
229 | 5115 | caballero | } |
230 | |||
231 | 3712 | caballero | public MapControl getMapControl() {
|
232 | 6174 | caballero | return getEditionManager().getMapControl();
|
233 | 3712 | caballero | } |
234 | |||
235 | 5115 | caballero | class KeyAction extends AbstractAction { |
236 | |||
237 | 3712 | caballero | private String key; |
238 | |||
239 | 5115 | caballero | public KeyAction(String key) { |
240 | 3712 | caballero | this.key = key;
|
241 | } |
||
242 | |||
243 | 5115 | caballero | /*
|
244 | * (non-Javadoc)
|
||
245 | *
|
||
246 | 3712 | caballero | * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
|
247 | */
|
||
248 | public void actionPerformed(ActionEvent e) { |
||
249 | view.focusConsole(key); |
||
250 | } |
||
251 | |||
252 | } |
||
253 | |||
254 | 5115 | caballero | class MyAction extends AbstractAction { |
255 | 3712 | caballero | private String actionCommand; |
256 | |||
257 | 5115 | caballero | public MyAction(String command) { |
258 | 3712 | caballero | actionCommand = command; |
259 | } |
||
260 | |||
261 | /**
|
||
262 | * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
|
||
263 | */
|
||
264 | public void actionPerformed(ActionEvent e) { |
||
265 | 6174 | caballero | CADToolAdapter cta=getCADToolAdapter(); |
266 | cta.keyPressed(actionCommand); |
||
267 | 3712 | caballero | } |
268 | |||
269 | } |
||
270 | 4432 | caballero | |
271 | 4210 | fjp | /**
|
272 | * @author fjp
|
||
273 | *
|
||
274 | 5115 | caballero | * La idea es usar esto para recibir lo que el usuario escribe y enviarlo a
|
275 | * la consola de la vista para que salga por all?.
|
||
276 | 4210 | fjp | */
|
277 | 5115 | caballero | private class myKeyEventPostProcessor implements KeyEventPostProcessor { |
278 | 3712 | caballero | |
279 | 4210 | fjp | public boolean postProcessKeyEvent(KeyEvent e) { |
280 | 4748 | fjp | // System.out.println("KeyEvent e = " + e);
|
281 | 6174 | caballero | CADToolAdapter cta=getCADToolAdapter(); |
282 | if ((cta == null) || (view == null)) |
||
283 | 5115 | caballero | return false; |
284 | 8765 | jjdelcerro | |
285 | 7829 | jmvivo | if (cta.getMapControl() == null){ |
286 | return false; |
||
287 | } |
||
288 | 5115 | caballero | |
289 | if (e.getID() != KeyEvent.KEY_RELEASED) |
||
290 | return false; |
||
291 | if (!(e.getComponent() instanceof JTextComponent)) { |
||
292 | if (e.getKeyCode() == KeyEvent.VK_DELETE) |
||
293 | 6174 | caballero | cta.keyPressed("eliminar");
|
294 | 5115 | caballero | else if (e.getKeyCode() == KeyEvent.VK_ESCAPE) |
295 | 6174 | caballero | cta.keyPressed("escape");
|
296 | 5115 | caballero | else if (e.getKeyCode() == KeyEvent.VK_ENTER) { |
297 | // TODO: REVISAR ESTO CUANDO VIENE UN INTRO DESDE UN
|
||
298 | // JTEXTAREA
|
||
299 | // QUE NO ES EL DE CONSOLA
|
||
300 | 6528 | caballero | if (!(e.getSource() instanceof JTable)) |
301 | view.focusConsole("");
|
||
302 | 5115 | caballero | } |
303 | 5839 | fjp | else if ((!e.isActionKey())) { |
304 | 5227 | caballero | //if (Character.isLetterOrDigit(e.getKeyChar())) {
|
305 | 5115 | caballero | Character keyChar = new Character(e.getKeyChar()); |
306 | if (e.getComponent().getName() != null) { |
||
307 | System.out
|
||
308 | .println("Evento de teclado desde el componente "
|
||
309 | + e.getComponent().getName()); |
||
310 | if (!e.getComponent().getName().equals(
|
||
311 | "CADConsole")) {
|
||
312 | view.focusConsole(keyChar + "");
|
||
313 | } |
||
314 | } else {
|
||
315 | if (!(e.getComponent() instanceof JTextComponent)) { |
||
316 | view.focusConsole(keyChar + "");
|
||
317 | } |
||
318 | } |
||
319 | 5227 | caballero | //}
|
320 | 5839 | fjp | } |
321 | 5115 | caballero | } |
322 | 4210 | fjp | return false; |
323 | } |
||
324 | 4432 | caballero | |
325 | 4210 | fjp | } |
326 | |||
327 | 5115 | caballero | /*
|
328 | * private void registerKeyStrokes(){ for (char key = '0'; key <= '9';
|
||
329 | * key++){ Character keyChar = new Character(key);
|
||
330 | * mapControl.getInputMap(MapControl.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(key),
|
||
331 | * keyChar); mapControl.getActionMap().put(keyChar, new
|
||
332 | * KeyAction(keyChar+"")); } for (char key = 'a'; key <= 'z'; key++){
|
||
333 | * Character keyChar = new Character(key);
|
||
334 | * mapControl.getInputMap(MapControl.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(key),
|
||
335 | * keyChar); mapControl.getActionMap().put(keyChar, new
|
||
336 | * KeyAction(keyChar+"")); } for (char key = 'A'; key <= 'Z'; key++){
|
||
337 | * Character keyChar = new Character(key);
|
||
338 | * mapControl.getInputMap(MapControl.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(key),
|
||
339 | * keyChar); mapControl.getActionMap().put(keyChar, new
|
||
340 | * KeyAction(keyChar+"")); }
|
||
341 | * //this.getInputMap(WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,
|
||
342 | * 0), "enter"); //this.getActionMap().put("enter", new MyAction("enter"));
|
||
343 | * Character keyChar = new
|
||
344 | * Character(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0).getKeyChar());
|
||
345 | * mapControl.getInputMap(MapControl.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,
|
||
346 | * 0),keyChar); mapControl.getActionMap().put(keyChar, new KeyAction(""));
|
||
347 | * // El espacio como si fuera INTRO Character keyCharSpace = new
|
||
348 | * Character(' ');
|
||
349 | * mapControl.getInputMap(MapControl.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke('
|
||
350 | * '), keyCharSpace); mapControl.getActionMap().put(keyCharSpace, new
|
||
351 | * KeyAction(""));
|
||
352 | *
|
||
353 | * }
|
||
354 | */
|
||
355 | private static JPopupMenu popup = new JPopupMenu(); |
||
356 | 4432 | caballero | |
357 | 5115 | caballero | public static void clearMenu() { |
358 | 3883 | caballero | popup.removeAll(); |
359 | } |
||
360 | |||
361 | 5115 | caballero | public static void addMenuEntry(String text) { |
362 | 3883 | caballero | JMenuItem menu = new JMenuItem(text); |
363 | menu.setActionCommand(text); |
||
364 | menu.setEnabled(true);
|
||
365 | menu.setVisible(true);
|
||
366 | menu.addActionListener(new ActionListener() { |
||
367 | public void actionPerformed(ActionEvent e) { |
||
368 | 6174 | caballero | CADToolAdapter cta=getCADToolAdapter(); |
369 | cta.transition(e.getActionCommand()); |
||
370 | 3883 | caballero | } |
371 | }); |
||
372 | |||
373 | popup.add(menu); |
||
374 | } |
||
375 | 5115 | caballero | |
376 | 3883 | caballero | public static void showPopup(MouseEvent e) { |
377 | 5115 | caballero | popup.show(e.getComponent(), e.getX(), e.getY()); |
378 | } |
||
379 | |||
380 | 3883 | caballero | public static View getView() { |
381 | return view;
|
||
382 | } |
||
383 | 8765 | jjdelcerro | |
384 | 7829 | jmvivo | public static void clearView() { |
385 | view = null;
|
||
386 | } |
||
387 | 4147 | fjp | |
388 | /**
|
||
389 | * @return Returns the editionManager.
|
||
390 | */
|
||
391 | public static EditionManager getEditionManager() { |
||
392 | 6174 | caballero | CADToolAdapter cta=getCADToolAdapter(); |
393 | return cta.getEditionManager();
|
||
394 | 4147 | fjp | } |
395 | 5115 | caballero | |
396 | public static CADTool[] getCADTools() { |
||
397 | 6174 | caballero | return CADToolAdapter.getCADTools();
|
398 | 4892 | caballero | } |
399 | 4899 | caballero | |
400 | 5115 | caballero | public static void initFocus() { |
401 | 6880 | cesar | view = (View) PluginServices.getMDIManager().getActiveWindow();
|
402 | 6604 | caballero | MapControl mapControl = view.getMapControl(); |
403 | 6174 | caballero | CADToolAdapter cta=getCADToolAdapter(); |
404 | 5164 | caballero | if (!mapControl.getNamesMapTools().containsKey("cadtooladapter")){ |
405 | 5874 | fjp | // StatusBarListener sbl=new StatusBarListener(view.getMapControl());
|
406 | // mapControl.addMapTool("cadtooladapter", new Behavior[]{adapter,new MouseMovementBehavior(sbl)});
|
||
407 | 6174 | caballero | mapControl.addMapTool("cadtooladapter", cta);
|
408 | 5164 | caballero | } |
409 | 5560 | fjp | // view.getMapControl().setTool("cadtooladapter");
|
410 | 5478 | caballero | JEditTextArea jeta=view.getConsolePanel().getTxt(); |
411 | jeta.requestFocusInWindow(); |
||
412 | jeta.setCaretPosition(jeta.getText().length()); |
||
413 | 5257 | caballero | |
414 | 5115 | caballero | view.addConsoleListener("cad", new ResponseListener() { |
415 | public void acceptResponse(String response) { |
||
416 | 6174 | caballero | CADToolAdapter cta=getCADToolAdapter(); |
417 | cta.textEntered(response); |
||
418 | 5115 | caballero | // TODO:
|
419 | // FocusManager fm=FocusManager.getCurrentManager();
|
||
420 | // fm.focusPreviousComponent(mapControl);
|
||
421 | /*
|
||
422 | * if (popup.isShowing()){ popup.setVisible(false); }
|
||
423 | */
|
||
424 | |||
425 | } |
||
426 | }); |
||
427 | 6174 | caballero | cta.getEditionManager().setMapControl(mapControl); |
428 | 5115 | caballero | view.getMapControl().setTool("cadtooladapter");
|
429 | 4899 | caballero | } |
430 | 3712 | caballero | } |