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/RemoveTableLink.java
RemoveTableLink.java | ||
---|---|---|
21 | 21 |
*/ |
22 | 22 |
package org.gvsig.app.extension; |
23 | 23 |
|
24 |
import org.gvsig.andami.IconThemeHelper; |
|
24 | 25 |
import org.gvsig.andami.PluginServices; |
25 | 26 |
import org.gvsig.andami.plugins.Extension; |
26 | 27 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
... | ... | |
38 | 39 |
* @see org.gvsig.andami.plugins.IExtension#initialize() |
39 | 40 |
*/ |
40 | 41 |
public void initialize() { |
41 |
// TODO Auto-generated method stub
|
|
42 |
IconThemeHelper.registerIcon("action", "table-remove-link", this);
|
|
42 | 43 |
} |
43 | 44 |
|
44 | 45 |
/** |
45 | 46 |
* @see org.gvsig.andami.plugins.IExtension#execute(java.lang.String) |
46 | 47 |
*/ |
47 | 48 |
public void execute(String actionCommand) { |
48 |
FeatureTableDocumentPanel t = |
|
49 |
(FeatureTableDocumentPanel) PluginServices.getMDIManager() |
|
50 |
.getActiveWindow(); |
|
51 |
TableDocument pt = t.getModel(); |
|
52 |
pt.removeLinkTable();// restoreDataSource(); |
|
53 |
t.getModel().setModified(true); |
|
49 |
if( "table-remove-link".equalsIgnoreCase(actionCommand)) { |
|
50 |
FeatureTableDocumentPanel t = |
|
51 |
(FeatureTableDocumentPanel) PluginServices.getMDIManager() |
|
52 |
.getActiveWindow(); |
|
53 |
TableDocument pt = t.getModel(); |
|
54 |
pt.removeLinkTable();// restoreDataSource(); |
|
55 |
t.getModel().setModified(true); |
|
56 |
} |
|
54 | 57 |
} |
55 | 58 |
|
56 | 59 |
/** |
Also available in: Unified diff