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/TableEditAttributes.java
TableEditAttributes.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.messages.NotificationManager; |
26 | 27 |
import org.gvsig.andami.plugins.Extension; |
... | ... | |
45 | 46 |
* @see com.iver.mdiApp.plugins.IExtension#updateUI(java.lang.String) |
46 | 47 |
*/ |
47 | 48 |
public void execute(String s) { |
48 |
TableDocument pt = table.getModel(); |
|
49 |
FeatureStore fs = pt.getStore(); |
|
50 |
try { |
|
51 |
PluginServices.getMDIManager().addWindow( |
|
52 |
new FeatureTypeEditingPanel(fs)); |
|
53 |
} catch (DataException e) { |
|
54 |
NotificationManager.addError( |
|
55 |
PluginServices.getText(this, "create_editabletype"), e); |
|
56 |
} |
|
49 |
if( "table-column-manager".equalsIgnoreCase(s)) { |
|
50 |
TableDocument pt = table.getModel(); |
|
51 |
FeatureStore fs = pt.getStore(); |
|
52 |
try { |
|
53 |
PluginServices.getMDIManager().addWindow( |
|
54 |
new FeatureTypeEditingPanel(fs)); |
|
55 |
} catch (DataException e) { |
|
56 |
NotificationManager.addError( |
|
57 |
PluginServices.getText(this, "create_editabletype"), e); |
|
58 |
} |
|
59 |
} |
|
57 | 60 |
} |
58 | 61 |
|
59 | 62 |
/** |
60 | 63 |
* @see org.gvsig.andami.plugins.IExtension#initialize() |
61 | 64 |
*/ |
62 | 65 |
public void initialize() { |
66 |
IconThemeHelper.registerIcon("action", "table-column-manager", this); |
|
63 | 67 |
} |
64 | 68 |
|
65 | 69 |
public boolean isEnabled() { |
Also available in: Unified diff