Revision 68 org.gvsig.educa.thematicmap.app/trunk/org.gvsig.educa.thematicmap.app/org.gvsig.educa.thematicmap.app.editor/src/main/java/org/gvsig/educa/thematicmap/app/editor/RegenerateThematicMapExtension.java
RegenerateThematicMapExtension.java | ||
---|---|---|
33 | 33 |
import org.gvsig.educa.thematicmap.swing.ThematicMapSwingManager; |
34 | 34 |
|
35 | 35 |
/** |
36 |
* Andami extension to create a gvSIG add-on manager package of a Thematic Map.
|
|
36 |
* Andami extension to update a Thematic Map from its source View.
|
|
37 | 37 |
* |
38 | 38 |
* @author gvSIG Team |
39 | 39 |
* @version $Id$ |
... | ... | |
76 | 76 |
}); |
77 | 77 |
} |
78 | 78 |
|
79 |
/** {@inheridDoc} */ |
|
79 | 80 |
public boolean isEnabled() { |
80 | 81 |
IWindow window = PluginServices.getMDIManager().getActiveWindow(); |
82 |
// it's a Thematic Map view |
|
81 | 83 |
if (window instanceof ThematicMapDocumentViewer) { |
84 |
// it's been registered a source view on it |
|
82 | 85 |
return ((ThematicMapDocumentViewer) window) |
83 | 86 |
.getThematicMapDocument().getSourceView() != null; |
84 | 87 |
} |
85 | 88 |
return false; |
86 | 89 |
} |
87 | 90 |
|
91 |
/** {@inheridDoc} */ |
|
88 | 92 |
public boolean isVisible() { |
93 |
// it's a Thematic Map view |
|
89 | 94 |
IWindow window = PluginServices.getMDIManager().getActiveWindow(); |
90 | 95 |
return window instanceof ThematicMapDocumentViewer; |
91 | 96 |
} |
Also available in: Unified diff