public class DefaultSaveable
extends org.eclipse.ui.Saveable
Saveable
implementation that wrap a regular workbench part. It's used by the
BasicTransactionalFormEditor
when the resource resides outside the workspace and can be used when the
workbench part does not itself adapt to Saveable
.Constructor and Description |
---|
DefaultSaveable(org.eclipse.ui.IWorkbenchPart part)
Creates a new DefaultSaveable.
|
Modifier and Type | Method and Description |
---|---|
void |
doSave(org.eclipse.core.runtime.IProgressMonitor monitor) |
boolean |
equals(java.lang.Object obj) |
org.eclipse.jface.resource.ImageDescriptor |
getImageDescriptor() |
java.lang.String |
getName() |
java.lang.String |
getToolTipText() |
int |
hashCode() |
boolean |
isDirty() |
boolean |
show(org.eclipse.ui.IWorkbenchPage page) |
public DefaultSaveable(org.eclipse.ui.IWorkbenchPart part)
part
- the part represented by this modelpublic void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
doSave
in class org.eclipse.ui.Saveable
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 isDirty()
isDirty
in class org.eclipse.ui.Saveable
public int hashCode()
hashCode
in class org.eclipse.ui.Saveable
public boolean equals(java.lang.Object obj)
equals
in class org.eclipse.ui.Saveable
public boolean show(org.eclipse.ui.IWorkbenchPage page)
show
in class org.eclipse.ui.Saveable