Revision 45582 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/java/org/gvsig/app/extension/TableEditCopyExtension.java
TableEditCopyExtension.java | ||
---|---|---|
23 | 23 |
*/ |
24 | 24 |
package org.gvsig.app.extension; |
25 | 25 |
|
26 |
import org.gvsig.app.ApplicationLocator; |
|
27 |
import org.gvsig.app.ApplicationManager; |
|
28 |
import org.gvsig.app.project.documents.table.TableDocument; |
|
29 |
import org.gvsig.app.project.documents.table.TableManager; |
|
30 |
import org.gvsig.app.project.documents.table.gui.FeatureTableDocumentPanel; |
|
26 | 31 |
import org.gvsig.fmap.dal.exception.DataException; |
27 | 32 |
|
28 | 33 |
/** |
... | ... | |
65 | 70 |
} |
66 | 71 |
return false; |
67 | 72 |
} |
73 |
|
|
74 |
@Override |
|
75 |
public boolean isVisible() { |
|
76 |
ApplicationManager application = ApplicationLocator.getManager(); |
|
77 |
TableDocument tableDoc = (TableDocument) application.getActiveDocument(TableManager.TYPENAME); |
|
78 |
if( tableDoc == null ) { |
|
79 |
return false; |
|
80 |
} |
|
81 |
this.table = (FeatureTableDocumentPanel) tableDoc.getMainComponent(); |
|
82 |
return true; |
|
83 |
} |
|
84 |
|
|
68 | 85 |
} |
Also available in: Unified diff