Revision 6877 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/TableManageFields.java
TableManageFields.java | ||
---|---|---|
48 | 48 |
|
49 | 49 |
import com.iver.andami.PluginServices; |
50 | 50 |
import com.iver.andami.plugins.Extension; |
51 |
import com.iver.andami.ui.mdiManager.View;
|
|
51 |
import com.iver.andami.ui.mdiManager.IWindow;
|
|
52 | 52 |
import com.iver.cit.gvsig.fmap.edition.EditableAdapter; |
53 | 53 |
import com.iver.cit.gvsig.fmap.edition.IEditableSource; |
54 | 54 |
import com.iver.cit.gvsig.fmap.edition.IWriteable; |
... | ... | |
69 | 69 |
* @see com.iver.mdiApp.plugins.IExtension#updateUI(java.lang.String) |
70 | 70 |
*/ |
71 | 71 |
public void execute(String s) { |
72 |
View v = PluginServices.getMDIManager().getActiveView();
|
|
72 |
IWindow v = PluginServices.getMDIManager().getActiveView();
|
|
73 | 73 |
|
74 | 74 |
Table t = (Table) v; |
75 | 75 |
ProjectTable pt = t.getModel(); |
... | ... | |
97 | 97 |
} |
98 | 98 |
|
99 | 99 |
public boolean isEnabled() { |
100 |
View v = PluginServices.getMDIManager().getActiveView();
|
|
100 |
IWindow v = PluginServices.getMDIManager().getActiveView();
|
|
101 | 101 |
|
102 | 102 |
if (v == null) { |
103 | 103 |
return false; |
... | ... | |
126 | 126 |
* @see com.iver.andami.plugins.IExtension#isVisible() |
127 | 127 |
*/ |
128 | 128 |
public boolean isVisible() { |
129 |
View v = PluginServices.getMDIManager().getActiveView();
|
|
129 |
IWindow v = PluginServices.getMDIManager().getActiveView();
|
|
130 | 130 |
|
131 | 131 |
if (v == null) { |
132 | 132 |
return false; |
Also available in: Unified diff