public class ProjectExtension.UnsavedProject extends UnsavedData
Constructor and Description |
---|
UnsavedProject(IExtension extension) |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Gets a description of this unsaved data.
|
String |
getIcon()
Gets an icon suitable to represent this type of data.
|
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).
|
getExtension
public UnsavedProject(IExtension extension)
public String getDescription()
IUnsavedData
Gets 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 IUnsavedData
getDescription
in class UnsavedData
public String getResourceName()
IUnsavedData
getResourceName
in interface IUnsavedData
getResourceName
in class UnsavedData
public boolean saveData()
IUnsavedData
Save 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 IUnsavedData
saveData
in class UnsavedData
public String getIcon()
IUnsavedData
getIcon
in interface IUnsavedData
getIcon
in class UnsavedData