public class ProjectExtension.UnsavedProject extends UnsavedData
| Constructor and Description |
|---|
UnsavedProject(IExtension extension) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription()
Gets a description of this unsaved data.
|
java.lang.String |
getIcon()
Gets an icon suitable to represent this type of data.
|
java.lang.String |
getResourceName()
Gets the resource name of this unsaved data.
|
boolean |
saveData()
Save the existing changes for this resource (for example, save the layer
to disk or to the database, etc).
|
getExtensionpublic UnsavedProject(IExtension extension)
public java.lang.String getDescription()
IUnsavedDataGets a description of this unsaved data. This would be combined with the resource name to show a coherent information to the user.
Examples of descriptions:
getDescription in interface IUnsavedDatagetDescription in class UnsavedDatapublic java.lang.String getResourceName()
IUnsavedDatagetResourceName in interface IUnsavedDatagetResourceName in class UnsavedDatapublic boolean saveData()
IUnsavedDataSave the existing changes for this resource (for example, save the layer
to disk or to the database, etc). The resource should not be closed at this
point (files, database connections, etc should no be closed), as they may
be still needed by other extensions. Resources should be closed at
IExtension.terminate().
saveData in interface IUnsavedDatasaveData in class UnsavedDatapublic java.lang.String getIcon()
IUnsavedDatagetIcon in interface IUnsavedDatagetIcon in class UnsavedData