Revision 9532 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/ProjectDocument.java
ProjectDocument.java | ||
---|---|---|
271 | 271 |
e); |
272 | 272 |
} |
273 | 273 |
ProjectDocument pe=pde.create(p); |
274 |
pe.setProjectDocumentFactory(pde);
|
|
274 |
pe.setProjectDocumentFactory(pde); |
|
275 | 275 |
return pe; |
276 | 276 |
}catch (Exception e) { |
277 | 277 |
throw new OpenException(e,pde.getNameType()); |
... | ... | |
291 | 291 |
*/ |
292 | 292 |
public void setXMLEntity(XMLEntity xml) |
293 | 293 |
throws XMLException, DriverException, DriverIOException, OpenException{ |
294 |
|
|
294 |
|
|
295 | 295 |
this.setComment(xml.getStringProperty("comment")); |
296 | 296 |
this.setCreationDate(xml.getStringProperty("creationDate")); |
297 | 297 |
this.setName(xml.getStringProperty("name")); |
298 | 298 |
this.setOwner(xml.getStringProperty("owner")); |
299 |
|
|
299 |
|
|
300 | 300 |
} |
301 | 301 |
|
302 | 302 |
/** |
... | ... | |
311 | 311 |
*/ |
312 | 312 |
public void setXMLEntity03(XMLEntity xml) |
313 | 313 |
throws XMLException, DriverException, DriverIOException{ |
314 |
|
|
314 |
|
|
315 | 315 |
this.setComment(xml.getStringProperty("comment")); |
316 | 316 |
this.setCreationDate(xml.getStringProperty("creationDate")); |
317 | 317 |
this.setName(xml.getStringProperty("name")); |
318 | 318 |
this.setOwner(xml.getStringProperty("owner")); |
319 |
|
|
319 |
|
|
320 | 320 |
} |
321 | 321 |
|
322 | 322 |
/** |
... | ... | |
380 | 380 |
public ProjectDocumentFactory getProjectDocumentFactory() { |
381 | 381 |
return projectDocumentFactory; |
382 | 382 |
} |
383 |
|
|
383 |
|
|
384 | 384 |
public abstract void exportToXML(XMLEntity root, Project project) throws SaveException ; |
385 |
|
|
385 |
|
|
386 | 386 |
public abstract void importFromXML(XMLEntity root, XMLEntity typeRoot,int elementIndex ,Project project, boolean removeDocumentsFromRoot) throws XMLException, DriverException, OpenException; |
387 |
|
|
388 |
|
|
387 |
|
|
388 |
|
|
389 | 389 |
public void importFromXML(XMLEntity root, XMLEntity typeRoot,int elementIndex ,Project project) throws XMLException, DriverException, OpenException{ |
390 | 390 |
importFromXML(root,typeRoot, elementIndex,project,false); |
391 | 391 |
} |
392 |
|
|
392 |
|
|
393 | 393 |
/** |
394 | 394 |
* Get the layout properties (size, position, state of the components) |
395 | 395 |
* of the window associated with this ProjectDocument. |
396 | 396 |
* This is used to re-open the window with the same properties it had |
397 | 397 |
* when it was closed. |
398 |
*
|
|
398 |
* |
|
399 | 399 |
* @return A WindowData object storing the properties of the window. |
400 | 400 |
*/ |
401 | 401 |
public WindowData getWindowData() { |
402 | 402 |
return windowData; |
403 | 403 |
} |
404 |
|
|
404 |
|
|
405 | 405 |
/** |
406 | 406 |
* Store the layout properties (size, position, state of the components) |
407 | 407 |
* of the window associated with this ProjectDocument. |
... | ... | |
411 | 411 |
public void storeWindowData(WindowData data) { |
412 | 412 |
windowData = data; |
413 | 413 |
} |
414 |
|
|
415 |
public abstract boolean isModified(); |
|
416 |
public abstract void setModified(boolean modified); |
|
414 | 417 |
} |
Also available in: Unified diff