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/TableEditPasteExtension.java
TableEditPasteExtension.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( |
|
44 |
"edit-paste", |
|
45 |
this.getClass().getClassLoader() |
|
46 |
.getResource("images/editpaste.png")); |
|
47 |
} |
|
48 |
|
|
49 | 40 |
/** |
50 | 41 |
* @see org.gvsig.andami.plugins.IExtension#execute(java.lang.String) |
51 | 42 |
*/ |
52 | 43 |
public void execute(String actionCommand) { |
53 |
if ("PASTE".equals(actionCommand)) {
|
|
44 |
if ("edit-paste-table".equals(actionCommand)) {
|
|
54 | 45 |
try { |
55 | 46 |
featureTableOperations.setStore(table.getModel().getStore()); |
56 | 47 |
featureTableOperations.pasteFeatures(); |
Also available in: Unified diff