Revision 38769 branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/app/gui/preferencespage/ViewPage.java
ViewPage.java | ||
---|---|---|
195 | 195 |
import org.gvsig.app.gui.panels.ColorChooserPanel; |
196 | 196 |
import org.gvsig.app.gui.panels.crs.ISelectCrsPanel; |
197 | 197 |
import org.gvsig.app.project.DefaultProject; |
198 |
import org.gvsig.app.project.ProjectPreferences; |
|
198 | 199 |
import org.gvsig.app.project.documents.view.gui.DefaultViewPanel; |
199 | 200 |
import org.gvsig.fmap.crs.CRSFactory; |
200 | 201 |
import org.gvsig.fmap.mapcontext.MapContext; |
201 |
import org.gvsig.gui.beans.swing.JButton;
|
|
202 |
import org.gvsig.fmap.mapcontext.MapContextLocator;
|
|
202 | 203 |
import org.gvsig.utils.StringUtilities; |
203 | 204 |
import org.gvsig.utils.XMLEntity; |
204 | 205 |
import org.gvsig.utils.swing.JComboBox; |
206 |
import org.gvsig.gui.beans.swing.JButton; |
|
205 | 207 |
|
208 |
|
|
206 | 209 |
/** |
207 | 210 |
* View document configuration page. |
208 | 211 |
* <b><b> |
... | ... | |
215 | 218 |
public class ViewPage extends AbstractPreferencePage { |
216 | 219 |
|
217 | 220 |
private static final String DEFAULT_PROJECTION_KEY_NAME = "DefaultProjection"; |
218 |
private static final String FACTORY_DEFAULT_PROJECTION = "EPSG:23030"; |
|
221 |
|
|
222 |
private static final String FACTORY_DEFAULT_PROJECTION = |
|
223 |
MapContextLocator.getMapContextManager().getDefaultCRS().getAbrev(); |
|
224 |
|
|
219 | 225 |
private static final String ZOOM_IN_FACTOR_KEY_NAME = "ZoomInFactor"; |
220 | 226 |
private static final String ZOOM_OUT_FACTOR_KEY_NAME = "ZoomOutFactor"; |
221 | 227 |
public static final String ADD_NEW_LAYERS_IN_INVISIBLE_MODE_KEY_NAME = "NewLayersInInvisibleMode"; |
... | ... | |
243 | 249 |
private static int FACTORY_DEFAULT_MAP_UNITS; |
244 | 250 |
private static int FACTORY_DEFAULT_DISTANCE_UNITS; |
245 | 251 |
private static int FACTORY_DEFAULT_DISTANCE_AREA; |
246 |
|
|
252 |
|
|
247 | 253 |
private JTextField txtZoomInFactor; |
248 | 254 |
private JTextField txtZoomOutFactor; |
249 | 255 |
protected static String id = ViewPage.class.getName(); |
... | ... | |
319 | 325 |
|
320 | 326 |
addComponent(PluginServices.getText(this, "default_projection") + ":", lblDefaultProjection ); |
321 | 327 |
|
322 |
IProjection proj = CRSFactory.getCRS("EPSG:23030");
|
|
328 |
IProjection proj = CRSFactory.getCRS(FACTORY_DEFAULT_PROJECTION);
|
|
323 | 329 |
if (PluginServices.getMainFrame() != null) { |
324 | 330 |
proj = AddLayerDialog.getLastProjection(); |
325 | 331 |
} |
Also available in: Unified diff