Revision 38564 branches/v2_0_0_prep/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/java/org/gvsig/app/extension/TableEditCutExtension.java
TableEditCutExtension.java | ||
---|---|---|
21 | 21 |
*/ |
22 | 22 |
package org.gvsig.app.extension; |
23 | 23 |
|
24 |
import org.gvsig.andami.PluginServices; |
|
25 | 24 |
import org.gvsig.fmap.dal.exception.DataException; |
26 | 25 |
|
27 | 26 |
/** |
... | ... | |
36 | 35 |
*/ |
37 | 36 |
public void initialize() { |
38 | 37 |
super.initialize(); |
39 |
registerIcons(); |
|
40 | 38 |
} |
41 | 39 |
|
42 |
private void registerIcons() { |
|
43 |
PluginServices.getIconTheme().registerDefault("edit-cut", |
|
44 |
this.getClass().getClassLoader().getResource("images/editcut.png")); |
|
45 |
} |
|
46 |
|
|
47 | 40 |
/** |
48 | 41 |
* @see org.gvsig.andami.plugins.IExtension#execute(java.lang.String) |
49 | 42 |
*/ |
50 | 43 |
public void execute(String actionCommand) { |
51 |
if ("CUT".equals(actionCommand)) {
|
|
44 |
if ("edit-cut-table".equals(actionCommand)) {
|
|
52 | 45 |
try { |
53 | 46 |
featureTableOperations.setStore(table.getModel().getStore()); |
54 | 47 |
featureTableOperations.cutFeatures(); |
Also available in: Unified diff