Revision 31886 branches/v2_0_0_prep/extensions/org.gvsig.oracle/src/org/gvsig/oracle/extension/NewOracleTableExtension.java
NewOracleTableExtension.java | ||
---|---|---|
7 | 7 |
import org.gvsig.andami.plugins.Extension; |
8 | 8 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
9 | 9 |
import org.gvsig.andami.ui.wizard.WizardAndami; |
10 |
import org.gvsig.app.project.documents.view.gui.View; |
|
10 |
import org.gvsig.app.project.documents.view.gui.IView;
|
|
11 | 11 |
import org.gvsig.fmap.mapcontext.MapContext; |
12 | 12 |
import org.gvsig.oracle.gui.NewOracleTableWizard; |
13 | 13 |
import org.gvsig.oracle.gui.RepeatedChooseGeometryTypePanel; |
... | ... | |
45 | 45 |
if (actionCommand.compareToIgnoreCase("NEW_ORACLE_TABLE") == 0) { |
46 | 46 |
|
47 | 47 |
IWindow w = PluginServices.getMDIManager().getActiveWindow(); |
48 |
if (w instanceof View) { |
|
48 |
if (w instanceof IView) {
|
|
49 | 49 |
try { |
50 | 50 |
String _file = createResourceUrl( |
51 | 51 |
"images/new_geodb_table.png").getFile(); |
... | ... | |
63 | 63 |
wizard.getWizardComponents().addWizardPanel(panelFields); |
64 | 64 |
wizard.getWizardComponents().addWizardPanel(connPanel); |
65 | 65 |
|
66 |
View theView = (View) w;
|
|
66 |
IView theView = (IView) w;
|
|
67 | 67 |
MapContext mc = theView.getMapControl().getMapContext(); |
68 | 68 |
|
69 | 69 |
NewOracleTableFinishAction action = new NewOracleTableFinishAction( |
... | ... | |
98 | 98 |
return false; |
99 | 99 |
|
100 | 100 |
IWindow w = PluginServices.getMDIManager().getActiveWindow(); |
101 |
return (w instanceof View); |
|
101 |
return (w instanceof IView);
|
|
102 | 102 |
} |
103 | 103 |
|
104 | 104 |
/** |
Also available in: Unified diff