66 |
66 |
|
67 |
67 |
import com.hardcode.driverManager.Driver;
|
68 |
68 |
import com.hardcode.driverManager.DriverLoadException;
|
69 |
|
import com.hardcode.gdbms.engine.data.driver.AlphanumericDBDriver;
|
70 |
69 |
import com.iver.andami.PluginServices;
|
71 |
70 |
import com.iver.andami.messages.NotificationManager;
|
72 |
|
import com.iver.andami.ui.mdiManager.IWindow;
|
73 |
71 |
import com.iver.cit.gvsig.SingleVectorialDBConnectionExtension;
|
74 |
|
import com.iver.cit.gvsig.fmap.MapContext;
|
75 |
72 |
import com.iver.cit.gvsig.fmap.core.ICanReproject;
|
76 |
73 |
import com.iver.cit.gvsig.fmap.drivers.DBException;
|
77 |
74 |
import com.iver.cit.gvsig.fmap.drivers.DBLayerDefinition;
|
... | ... | |
84 |
81 |
import com.iver.cit.gvsig.fmap.layers.FLayers;
|
85 |
82 |
import com.iver.cit.gvsig.fmap.layers.LayerFactory;
|
86 |
83 |
import com.iver.cit.gvsig.gui.WizardPanel;
|
87 |
|
import com.iver.cit.gvsig.project.documents.view.gui.BaseView;
|
88 |
84 |
import com.iver.utiles.swing.JPasswordDlg;
|
89 |
85 |
|
90 |
86 |
|
... | ... | |
112 |
108 |
private UserTableSettingsPanel emptySettingsPanel = null;
|
113 |
109 |
private UserSelectedFieldsPanel emptyFieldsPanel = null;
|
114 |
110 |
private JButton dbButton = null;
|
115 |
|
private BaseView view = null;
|
116 |
|
|
117 |
111 |
|
118 |
112 |
|
119 |
113 |
|
... | ... | |
136 |
130 |
setLayout(null);
|
137 |
131 |
setSize(512, 478);
|
138 |
132 |
|
139 |
|
IWindow iw = PluginServices.getMDIManager().getActiveWindow();
|
140 |
133 |
|
141 |
|
if (iw == null) {
|
142 |
|
return;
|
143 |
|
}
|
144 |
|
|
145 |
|
if (!(iw instanceof BaseView)) {
|
146 |
|
return;
|
147 |
|
}
|
148 |
|
|
149 |
|
view = (BaseView) iw;
|
150 |
|
setMapCtrl(view.getMapControl());
|
151 |
|
|
152 |
134 |
emptySettingsPanel = new UserTableSettingsPanel(null, null, "",
|
153 |
135 |
getMapCtrl(), true, this, null);
|
154 |
136 |
emptyFieldsPanel = new UserSelectedFieldsPanel(null, null, true, this);
|
... | ... | |
351 |
333 |
return (FLayer) all_layers.get(0);
|
352 |
334 |
}
|
353 |
335 |
|
354 |
|
MapContext mc = view.getMapControl().getMapContext();
|
355 |
|
FLayers root = view.getMapControl().getMapContext().getLayers();
|
|
336 |
FLayers root = getMapCtrl().getMapContext().getLayers();
|
356 |
337 |
|
357 |
338 |
FLayers group = new FLayers();//(mc,root);
|
358 |
|
group.setMapContext(mc);
|
|
339 |
group.setMapContext(getMapCtrl().getMapContext());
|
359 |
340 |
group.setParentLayer(root);
|
360 |
341 |
group.setName(name);
|
361 |
342 |
|