Revision 31886 branches/v2_0_0_prep/extensions/org.gvsig.oracle/src/org/gvsig/oracle/extension/ExportOracleExtension.java
ExportOracleExtension.java | ||
---|---|---|
49 | 49 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
50 | 50 |
import org.gvsig.andami.ui.wizard.WizardAndami; |
51 | 51 |
import org.gvsig.app.extension.About; |
52 |
import org.gvsig.app.project.documents.view.gui.View; |
|
52 |
import org.gvsig.app.project.documents.view.gui.IView;
|
|
53 | 53 |
import org.gvsig.fmap.dal.store.oracle.OracleLibrary; |
54 | 54 |
import org.gvsig.fmap.mapcontext.MapContext; |
55 | 55 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
... | ... | |
83 | 83 |
ORACLE_JAR_PRESENT = isOracleJarPresent(); |
84 | 84 |
|
85 | 85 |
if (!ORACLE_JAR_PRESENT) { |
86 |
logger |
|
87 |
.info("*-----------------------------------------------------------------------*"); |
|
88 |
logger |
|
89 |
.info("* Oracle library not found! *"); |
|
90 |
logger |
|
91 |
.info("* You need to place the Oracle JDBC library in gvSIG's main LIB folder. *"); |
|
92 |
logger |
|
93 |
.info("* Read the Oracle driver user manual for details. *"); |
|
94 |
logger |
|
95 |
.info("*-----------------------------------------------------------------------*"); |
|
86 |
logger.info("*-----------------------------------------------------------------------*"); |
|
87 |
logger.info("* Oracle library not found! *"); |
|
88 |
logger.info("* You must copy the Oracle JDBC library in the GeoBD main LIB folder. *"); |
|
89 |
logger.info("* Read the Oracle driver user manual for details. *"); |
|
90 |
logger.info("*-----------------------------------------------------------------------*"); |
|
96 | 91 |
} else { |
97 |
logger |
|
98 |
.info("*-----------------------------------------------------------------------*"); |
|
99 |
logger |
|
100 |
.info("* Found the Oracle JDBC library! :) *"); |
|
101 |
logger |
|
102 |
.info("*-----------------------------------------------------------------------*"); |
|
92 |
logger.info("*-----------------------------------------------------------------------*"); |
|
93 |
logger.info("* Found the Oracle JDBC library! :) *"); |
|
94 |
logger.info("*-----------------------------------------------------------------------*"); |
|
103 | 95 |
// about |
104 | 96 |
java.net.URL newurl = createResourceUrl("about/jdbc-os-about.html"); |
105 | 97 |
About claseAbout = (About) PluginServices.getExtension(About.class); |
... | ... | |
133 | 125 |
try { |
134 | 126 |
IWindow w = PluginServices.getMDIManager().getActiveWindow(); |
135 | 127 |
|
136 |
if (w instanceof View) { |
|
137 |
View v = (View) w;
|
|
128 |
if (w instanceof IView) {
|
|
129 |
IView v = (IView) w;
|
|
138 | 130 |
MapControl mc = v.getMapControl(); |
139 | 131 |
mx = mc.getMapContext(); |
140 | 132 |
|
... | ... | |
162 | 154 |
if (actionCommand.compareToIgnoreCase("NEW_ORACLE_SPATIAL") == 0) { |
163 | 155 |
|
164 | 156 |
IWindow w = PluginServices.getMDIManager().getActiveWindow(); |
165 |
if (w instanceof View) { |
|
157 |
if (w instanceof IView) {
|
|
166 | 158 |
try { |
167 | 159 |
String _file = createResourceUrl( |
168 | 160 |
"images/new_geodb_table.png").getFile(); |
... | ... | |
180 | 172 |
wizard.getWizardComponents().addWizardPanel(panelFields); |
181 | 173 |
wizard.getWizardComponents().addWizardPanel(connPanel); |
182 | 174 |
|
183 |
View theView = (View) w;
|
|
175 |
IView theView = (IView) w;
|
|
184 | 176 |
MapContext mc = theView.getMapControl().getMapContext(); |
185 | 177 |
|
186 | 178 |
NewOracleTableFinishAction action = new NewOracleTableFinishAction( |
... | ... | |
223 | 215 |
try { |
224 | 216 |
IWindow w = PluginServices.getMDIManager().getActiveWindow(); |
225 | 217 |
|
226 |
if (w instanceof View) { |
|
227 |
View v = (View) w;
|
|
218 |
if (w instanceof IView) {
|
|
219 |
IView v = (IView) w;
|
|
228 | 220 |
MapControl mc = v.getMapControl(); |
229 | 221 |
MapContext mx = mc.getMapContext(); |
230 | 222 |
FLayer[] lyrs = mx.getLayers().getActives(); |
Also available in: Unified diff