Revision 7658 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/Project.java

View differences:

Project.java
54 54
import java.util.TreeMap;
55 55

  
56 56
import org.cresques.cts.IProjection;
57
import org.cresques.cts.ProjectionPool;
58 57

  
59 58
import com.hardcode.driverManager.DriverLoadException;
60 59
import com.hardcode.gdbms.engine.data.DataSource;
......
67 66
import com.iver.andami.PluginServices;
68 67
import com.iver.andami.ui.mdiManager.IWindow;
69 68
import com.iver.andami.ui.mdiManager.WindowInfo;
69
import com.iver.cit.gvsig.IntializeApplicationExtension;
70 70
import com.iver.cit.gvsig.fmap.DriverException;
71 71
import com.iver.cit.gvsig.fmap.MapContext;
72 72
import com.iver.cit.gvsig.fmap.core.v02.FSymbol;
......
153 153
		//        change.addPropertyChangeListener(this);
154 154
		creationDate = DateFormat.getDateInstance().format(new Date());
155 155
		modificationDate = creationDate;
156
		setSelectionColor(getDefaultColor());
156 157
//		signatureAtStartup = computeSignature();
157 158

  
158 159
		/*                LayerFactory.setDriversPath(PluginServices.getPluginServices(this)
......
362 363
	 */
363 364
	public Color getSelectionColor() {
364 365
		if (selectionColor == null) {
365
			XMLEntity xml = PluginServices.getPluginServices(this).getPersistentXML();
366
			if (xml.contains("DefaultSelectionColor"))
367
				defaultSelectionColor =  StringUtilities.
368
					string2Color(xml.getStringProperty("DefaultSelectionColor"));
369 366
			selectionColor = defaultSelectionColor;
370 367
		}
371 368
		return selectionColor;
......
1311 1308
	 * @return java.awt.Color
1312 1309
	 */
1313 1310
	public static Color getDefaultColor() {
1311
		// TODO es millorable?
1312
		XMLEntity xml = PluginServices.getPluginServices("com.iver.cit.gvsig").getPersistentXML();
1313
		if (xml.contains("DefaultSelectionColor"))
1314
			defaultSelectionColor =  StringUtilities.
1315
				string2Color(xml.getStringProperty("DefaultSelectionColor"));
1314 1316
		return defaultSelectionColor;
1315 1317
	}
1316 1318

  

Also available in: Unified diff