Revision 31496 branches/v2_0_0_prep/extensions/extEditing/src/org/gvsig/editing/TableCommandStackExtension.java
TableCommandStackExtension.java | ||
---|---|---|
3 | 3 |
import org.gvsig.andami.PluginServices; |
4 | 4 |
import org.gvsig.andami.plugins.Extension; |
5 | 5 |
import org.gvsig.app.gui.command.CommandStackDialog; |
6 |
import org.gvsig.app.project.documents.table.FeatureTableDocument;
|
|
6 |
import org.gvsig.app.project.documents.table.TableDocument; |
|
7 | 7 |
import org.gvsig.app.project.documents.table.gui.FeatureTableDocumentPanel; |
8 | 8 |
import org.gvsig.fmap.dal.exception.DataException; |
9 | 9 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
... | ... | |
34 | 34 |
.getActiveWindow(); |
35 | 35 |
|
36 | 36 |
FeatureTableDocumentPanel table = (FeatureTableDocumentPanel) f; |
37 |
FeatureTableDocument model = table.getModel();
|
|
37 |
TableDocument model = table.getModel(); |
|
38 | 38 |
if (s.equals("COMMANDSTACK")) { |
39 | 39 |
// try { |
40 | 40 |
FeatureStore featureStore=((FLyrVect)model.getAssociatedLayer()).getFeatureStore(); |
... | ... | |
88 | 88 |
.getActiveWindow(); |
89 | 89 |
if (f instanceof FeatureTableDocumentPanel){ |
90 | 90 |
FeatureTableDocumentPanel table = (FeatureTableDocumentPanel) f; |
91 |
FeatureTableDocument model = table.getModel();
|
|
91 |
TableDocument model = table.getModel(); |
|
92 | 92 |
if (model.getStore().isEditing()) |
93 | 93 |
return true; |
94 | 94 |
} |
Also available in: Unified diff