Revision 41824
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/TableEditCutExtension.java | ||
---|---|---|
23 | 23 |
*/ |
24 | 24 |
package org.gvsig.app.extension; |
25 | 25 |
|
26 |
import java.util.logging.Level; |
|
27 |
import java.util.logging.Logger; |
|
28 |
import org.gvsig.app.project.documents.table.TableDocument; |
|
26 | 29 |
import org.gvsig.fmap.dal.exception.DataException; |
30 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
|
27 | 31 |
|
28 | 32 |
/** |
29 | 33 |
* DOCUMENT ME! |
... | ... | |
53 | 57 |
} |
54 | 58 |
} |
55 | 59 |
|
56 |
/** |
|
57 |
* @see org.gvsig.andami.plugins.IExtension#isEnabled() |
|
58 |
*/ |
|
59 |
public boolean isEnabled() { |
|
60 |
public boolean isEnabled() { |
|
60 | 61 |
try { |
61 |
if (table.getTablePanel().getTable().getSelectedRowCount() > 0)
|
|
62 |
if (this.table.getTablePanel().getTable().getSelectedRowCount() > 0) {
|
|
62 | 63 |
return true; |
63 |
} catch (DataException e) { |
|
64 |
e.printStackTrace(); |
|
64 |
} |
|
65 |
} catch (DataException ex) { |
|
66 |
logger.warn("can't determine if there are selected lines in the table.",ex); |
|
65 | 67 |
} |
66 | 68 |
return false; |
67 | 69 |
} |
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/AbstractTableEditExtension.java | ||
---|---|---|
28 | 28 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
29 | 29 |
import org.gvsig.app.project.documents.table.TableOperations; |
30 | 30 |
import org.gvsig.app.project.documents.table.gui.FeatureTableDocumentPanel; |
31 |
import org.slf4j.Logger; |
|
32 |
import org.slf4j.LoggerFactory; |
|
31 | 33 |
|
32 | 34 |
public abstract class AbstractTableEditExtension extends Extension { |
35 |
|
|
36 |
protected static final Logger logger = LoggerFactory.getLogger(AbstractTableEditExtension.class); |
|
33 | 37 |
|
34 | 38 |
protected FeatureTableDocumentPanel table = null; |
35 | 39 |
protected TableOperations featureTableOperations = null; |
Also available in: Unified diff