Revision 4583 trunk/extensions/extCAD/src/com/iver/cit/gvsig/InsertPolygonExtension.java
InsertPolygonExtension.java | ||
---|---|---|
123 | 123 |
* @see com.iver.andami.plugins.Extension#isVisible() |
124 | 124 |
*/ |
125 | 125 |
public boolean isVisible() { |
126 |
com.iver.andami.ui.mdiManager.View f = PluginServices.getMDIManager() |
|
127 |
.getActiveView(); |
|
128 |
|
|
129 |
if (f == null) { |
|
130 |
return false; |
|
131 |
} |
|
132 |
|
|
133 |
if (f.getClass() == View.class) { |
|
126 |
if (EditionUtilities.getEditionStatus() == EditionUtilities.EDITION_STATUS_ONE_VECTORIAL_LAYER_ACTIVE_AND_EDITABLE) |
|
127 |
{ |
|
134 | 128 |
return true; |
135 |
} else { |
|
136 |
return false; |
|
137 | 129 |
} |
130 |
else |
|
131 |
return false; |
|
138 | 132 |
} |
139 | 133 |
} |
Also available in: Unified diff