Revision 34978 branches/v2_0_0_prep/extensions/extEditing/src/org/gvsig/editing/CreateNewLayer.java
CreateNewLayer.java | ||
---|---|---|
14 | 14 |
import org.gvsig.editing.gui.cad.panels.JPanelFieldDefinition; |
15 | 15 |
import org.gvsig.fmap.dal.DALLocator; |
16 | 16 |
import org.gvsig.fmap.dal.DataManager; |
17 |
import org.gvsig.fmap.dal.DataStoreParameters; |
|
17 | 18 |
import org.gvsig.fmap.dal.exception.InitializeException; |
18 | 19 |
import org.gvsig.fmap.dal.exception.ProviderNotRegisteredException; |
20 |
import org.gvsig.fmap.dal.exception.ValidateDataParametersException; |
|
19 | 21 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
20 | 22 |
import org.gvsig.fmap.mapcontrol.MapControl; |
21 | 23 |
|
... | ... | |
42 | 44 |
.getActiveWindow(); |
43 | 45 |
|
44 | 46 |
if (f instanceof DefaultViewPanel) { |
45 |
try { |
|
46 | 47 |
DefaultViewPanel vista = (DefaultViewPanel) f; |
47 | 48 |
|
48 | 49 |
LOGO = new javax.swing.ImageIcon(this.getClass() |
... | ... | |
94 | 95 |
vista, actionCommand)); |
95 | 96 |
} |
96 | 97 |
if (actionCommand.equals("DXF")) { |
97 |
FeatureStore store = (FeatureStore)dm.createStoreParameters("DXFStore"); |
|
98 |
|
|
99 |
panelChoose.setFeatureStore(store); |
|
100 | 98 |
FileBasedPanel filePanel = new FileBasedPanel(wizard |
101 | 99 |
.getWizardComponents()); |
102 | 100 |
filePanel.setFileExtension("dxf"); |
... | ... | |
135 | 133 |
// wizardFrame.show(); |
136 | 134 |
PluginServices.getMDIManager().addWindow(wizard); |
137 | 135 |
// System.out.println("Salgo con " + panelChoose.getLayerName()); |
138 |
} catch (InitializeException e) { |
|
139 |
NotificationManager.addError(e.getMessage(),e); |
|
140 |
} catch (ProviderNotRegisteredException e) { |
|
141 |
NotificationManager.addError(e.getMessage(),e); |
|
142 |
} |
|
143 | 136 |
} |
144 | 137 |
} |
145 | 138 |
/** |
Also available in: Unified diff