public class BasicModelSaveable
extends org.eclipse.ui.Saveable
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
SAVEABLE_LABEL_PREFIX |
Constructor and Description |
---|
BasicModelSaveable(IModelDescriptor modelDescriptor)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
doSave(org.eclipse.core.runtime.IProgressMonitor monitor) |
boolean |
equals(java.lang.Object object) |
org.eclipse.jface.resource.ImageDescriptor |
getImageDescriptor() |
IModelDescriptor |
getModelDescriptor() |
java.lang.String |
getName() |
java.lang.String |
getToolTipText() |
int |
hashCode() |
boolean |
isDirty() |
java.lang.String |
toString() |
protected static final java.lang.String SAVEABLE_LABEL_PREFIX
public BasicModelSaveable(IModelDescriptor modelDescriptor)
modelDescriptor
- The descriptor of the model to use in order to correctly associate this saveable to a specific model
(cannot be null).public final IModelDescriptor getModelDescriptor()
public boolean isDirty()
isDirty
in class org.eclipse.ui.Saveable
public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
doSave
in class org.eclipse.ui.Saveable
org.eclipse.core.runtime.CoreException
public java.lang.String getName()
getName
in class org.eclipse.ui.Saveable
public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
getImageDescriptor
in class org.eclipse.ui.Saveable
public java.lang.String getToolTipText()
getToolTipText
in class org.eclipse.ui.Saveable
public boolean equals(java.lang.Object object)
equals
in class org.eclipse.ui.Saveable
public int hashCode()
hashCode
in class org.eclipse.ui.Saveable
public java.lang.String toString()
toString
in class java.lang.Object