public class OOoEditor extends EditorPart implements IModelServiceHolder
IModelService
.IModelServiceHolder
,
IModelService
Modifier and Type | Field and Description |
---|---|
static String |
ID
ID of this Editor
|
PROP_DIRTY, PROP_INPUT
PROP_TITLE
Constructor and Description |
---|
OOoEditor()
Creates a new OpenOffice.org Editor.
|
Modifier and Type | Method and Description |
---|---|
void |
createPartControl(Composite parent) |
void |
dispose() |
void |
doSave(IProgressMonitor monitor) |
void |
doSaveAs() |
IEditorPart |
getEditorPart()
Get
IEditorPart implemented together with this interface |
IModelService |
getModelService()
Get
IModelService to access to model of the content |
void |
init(IEditorSite site,
IEditorInput input) |
boolean |
isDirty() |
boolean |
isSaveAsAllowed() |
void |
setEditorTitle(String title)
Set title to
IEditorPart implemented together with this interface |
void |
setFocus() |
getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setInitializationData
addPartPropertyListener, addPropertyListener, getAdapter, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, showBusy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyListener, getSite, getTitle, getTitleImage, removePropertyListener
getAdapter
public static final String ID
public void doSave(IProgressMonitor monitor)
doSave
in interface ISaveablePart
doSave
in class EditorPart
public void doSaveAs()
doSaveAs
in interface ISaveablePart
doSaveAs
in class EditorPart
public void init(IEditorSite site, IEditorInput input) throws PartInitException
init
in interface IEditorPart
init
in class EditorPart
PartInitException
public boolean isDirty()
isDirty
in interface ISaveablePart
isDirty
in class EditorPart
public boolean isSaveAsAllowed()
isSaveAsAllowed
in interface ISaveablePart
isSaveAsAllowed
in class EditorPart
public void createPartControl(Composite parent)
createPartControl
in interface IWorkbenchPart
createPartControl
in class WorkbenchPart
public void setFocus()
setFocus
in interface IWorkbenchPart
setFocus
in class WorkbenchPart
public IModelService getModelService()
IModelServiceHolder
IModelService
to access to model of the contentgetModelService
in interface IModelServiceHolder
IModelService
public IEditorPart getEditorPart()
IModelServiceHolder
IEditorPart
implemented together with this interfacegetEditorPart
in interface IModelServiceHolder
IEditorPart
public void dispose()
dispose
in interface IWorkbenchPart
dispose
in class WorkbenchPart
public void setEditorTitle(String title)
IModelServiceHolder
IEditorPart
implemented together with this interfacesetEditorTitle
in interface IModelServiceHolder
title
- target title