Revision 7619 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/gui/FileOpenDialog.java
FileOpenDialog.java | ||
---|---|---|
60 | 60 |
import javax.swing.JPanel; |
61 | 61 |
import javax.swing.filechooser.FileFilter; |
62 | 62 |
|
63 |
import org.cresques.cts.IProjection; |
|
64 |
import org.cresques.cts.ProjectionPool; |
|
65 |
|
|
63 | 66 |
import com.hardcode.driverManager.Driver; |
64 | 67 |
import com.hardcode.driverManager.DriverLoadException; |
65 | 68 |
import com.hardcode.gdbms.engine.data.driver.FileDriver; |
66 | 69 |
import com.iver.andami.PluginServices; |
67 | 70 |
import com.iver.andami.messages.NotificationManager; |
68 | 71 |
import com.iver.cit.gvsig.ProjectExtension; |
72 |
import com.iver.cit.gvsig.fmap.crs.CRSFactory; |
|
69 | 73 |
import com.iver.cit.gvsig.fmap.drivers.RasterDriver; |
70 | 74 |
import com.iver.cit.gvsig.fmap.drivers.VectorialFileDriver; |
71 | 75 |
import com.iver.cit.gvsig.fmap.layers.LayerFactory; |
72 | 76 |
import com.iver.cit.gvsig.gui.panels.ProjChooserPanel; |
77 |
import com.iver.cit.gvsig.project.documents.view.gui.View; |
|
73 | 78 |
import com.iver.utiles.listManager.ListManagerListener; |
74 | 79 |
/** |
75 | 80 |
* Di?logo para cargar las dieferentes capas a la vista. |
... | ... | |
242 | 247 |
*/ |
243 | 248 |
private ProjChooserPanel getJPanelProj() { |
244 | 249 |
if (jPanelProj == null) { |
245 |
ProjectExtension pe = (ProjectExtension) PluginServices.getExtension(ProjectExtension.class); |
|
246 |
jPanelProj = new ProjChooserPanel(pe.getProject().getProjection()); |
|
250 |
IProjection proj = CRSFactory.getCRS("EPSG:23030"); |
|
251 |
if (PluginServices.getMainFrame() != null) |
|
252 |
{ |
|
253 |
ProjectExtension pe = (ProjectExtension) PluginServices.getExtension(ProjectExtension.class); |
|
254 |
proj = pe.getProject().getProjection(); |
|
255 |
} |
|
256 |
|
|
257 |
|
|
258 |
jPanelProj = new ProjChooserPanel(proj); |
|
247 | 259 |
jPanelProj.setBounds(11, 400, 448, 35); |
248 | 260 |
jPanelProj.setPreferredSize(new java.awt.Dimension(448,35)); |
249 | 261 |
jPanelProj.addActionListener(new java.awt.event.ActionListener() { |
Also available in: Unified diff