Revision 18046
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/ProjectExtension.java | ||
---|---|---|
158 | 158 |
// TODO: Aqu? Jaume podr?a meter lo del backup del proyecto |
159 | 159 |
// que ha hecho para ValenciaUrban?stica |
160 | 160 |
|
161 |
/* |
|
162 |
pe = (ProjectExtension) PluginServices.getExtension(com.iver.cit.gvsig.ProjectExtension.class); |
|
163 |
if (projectFile.length()!=0){ |
|
164 |
p=pe.readProject(projectFile); |
|
165 |
} |
|
166 |
else |
|
167 |
p = restorePreviousProject(); |
|
168 |
pe.setProject(p); */ |
|
161 |
registerIcons(); |
|
169 | 162 |
|
170 |
registerIcons(); |
|
171 |
|
|
172 | 163 |
} |
173 | 164 |
|
174 | 165 |
private void registerIcons(){ |
... | ... | |
202 | 193 |
this.getClass().getClassLoader().getResource("images/salir.png") |
203 | 194 |
); |
204 | 195 |
} |
205 |
|
|
206 |
/** |
|
207 |
* @see com.iver.mdiApp.plugins.IExtension#postInitialize() |
|
208 |
*/ |
|
209 |
public void postInitialize() { |
|
196 |
private void loadInitialProject(){ |
|
210 | 197 |
String[] theArgs = PluginServices.getArguments(); |
211 | 198 |
String lastArg = theArgs[theArgs.length-1]; |
212 | 199 |
if ((lastArg.endsWith(".gvp")) || |
... | ... | |
225 | 212 |
p.setModified(false); |
226 | 213 |
PluginServices.getMainFrame().setTitle(PluginServices.getText(this, "sin_titulo")); |
227 | 214 |
} |
215 |
} |
|
216 |
/** |
|
217 |
* @see com.iver.mdiApp.plugins.IExtension#postInitialize() |
|
218 |
*/ |
|
219 |
public void postInitialize() { |
|
220 |
loadInitialProject(); |
|
228 | 221 |
getProjectFrame().setProject(p); |
229 | 222 |
p.restoreWindowProperties(); |
230 | 223 |
} |
... | ... | |
352 | 345 |
showProjectWindow(); |
353 | 346 |
PluginServices.getMainFrame().setTitle(PluginServices.getText(this, "sin_titulo")); |
354 | 347 |
} else if (actionCommand.equals("ABRIR")) { |
355 |
if (!askSave())
|
|
348 |
if (!askSave()) |
|
356 | 349 |
return; |
357 | 350 |
|
358 | 351 |
Preferences prefs = Preferences.userRoot().node( "gvsig.foldering" ); |
Also available in: Unified diff