Revision 691 org.gvsig.animation3d/trunk/org.gvsig.animation3d/org.gvsig.animation3d.app/org.gvsig.animation3d.app.mainplugin/src/main/java/org/gvsig/animation3d/app/mainplugin/Animation3DExtension.java
Animation3DExtension.java | ||
---|---|---|
76 | 76 |
@Override |
77 | 77 |
public boolean isEnabled() { |
78 | 78 |
if (animationManager == null && getActiveView() != null) { |
79 |
IView view = getActiveView(); |
|
80 |
Document document = view.getDocument(); |
|
81 |
List<MapControl3D> mapControl3D = |
|
82 |
View3DSwingLocator.getManager().getMapControl3D( |
|
83 |
(ExtendedPropertiesSupport) document); |
|
84 |
return !mapControl3D.isEmpty(); |
|
79 |
return true; |
|
85 | 80 |
} |
86 | 81 |
return false; |
87 | 82 |
} |
Also available in: Unified diff