Revision 41182
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.editing.app/org.gvsig.editing.app.mainplugin/src/main/java/org/gvsig/editing/EditionLocator.java | ||
---|---|---|
91 | 91 |
* @return CADToolAdapter of current view |
92 | 92 |
*/ |
93 | 93 |
public static CADToolAdapter getCADToolAdapter() { |
94 |
ViewDocument view = (ViewDocument) ProjectManager.getInstance().getCurrentProject().getActiveDocument(ViewDocument.class); |
|
94 |
Project prj = ProjectManager.getInstance().getCurrentProject(); |
|
95 |
|
|
96 |
if(prj == null) |
|
97 |
return null; |
|
98 |
|
|
99 |
ViewDocument view = (ViewDocument) prj.getActiveDocument(ViewDocument.class); |
|
95 | 100 |
if( view != null ) { |
96 | 101 |
adapter = adapters.get(view); |
97 | 102 |
if( adapter==null ) { |
Also available in: Unified diff