org.eclipse.actf.model.ui.editors.ooo
Class OOoEditor
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
org.eclipse.actf.model.ui.editors.ooo.OOoEditor
- All Implemented Interfaces:
- IModelServiceHolder, org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.IEditorPart, org.eclipse.ui.ISaveablePart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.IWorkbenchPartOrientation
public class OOoEditor
- extends org.eclipse.ui.part.EditorPart
- implements IModelServiceHolder
The Editor implementation to open OpenDocument Format (ODF) files by using
OpenOffice.org. It also provide access to model via IModelService
.
- See Also:
IModelServiceHolder
,
IModelService
Field Summary |
static String |
ID
ID of this Editor |
Fields inherited from interface org.eclipse.ui.IEditorPart |
PROP_DIRTY, PROP_INPUT |
Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
PROP_TITLE |
Constructor Summary |
OOoEditor()
Creates a new OpenOffice.org Editor. |
Methods inherited from class org.eclipse.ui.part.EditorPart |
getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setInitializationData |
Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
addPartPropertyListener, addPropertyListener, getAdapter, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, showBusy |
Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
addPropertyListener, getSite, getTitle, getTitleImage, removePropertyListener |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
ID
public static final String ID
- ID of this Editor
OOoEditor
public OOoEditor()
- Creates a new OpenOffice.org Editor.
doSave
public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
- Specified by:
doSave
in interface org.eclipse.ui.ISaveablePart
- Specified by:
doSave
in class org.eclipse.ui.part.EditorPart
doSaveAs
public void doSaveAs()
- Specified by:
doSaveAs
in interface org.eclipse.ui.ISaveablePart
- Specified by:
doSaveAs
in class org.eclipse.ui.part.EditorPart
init
public void init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput input)
throws org.eclipse.ui.PartInitException
- Specified by:
init
in interface org.eclipse.ui.IEditorPart
- Specified by:
init
in class org.eclipse.ui.part.EditorPart
- Throws:
org.eclipse.ui.PartInitException
isDirty
public boolean isDirty()
- Specified by:
isDirty
in interface org.eclipse.ui.ISaveablePart
- Specified by:
isDirty
in class org.eclipse.ui.part.EditorPart
isSaveAsAllowed
public boolean isSaveAsAllowed()
- Specified by:
isSaveAsAllowed
in interface org.eclipse.ui.ISaveablePart
- Specified by:
isSaveAsAllowed
in class org.eclipse.ui.part.EditorPart
createPartControl
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
- Specified by:
createPartControl
in interface org.eclipse.ui.IWorkbenchPart
- Specified by:
createPartControl
in class org.eclipse.ui.part.WorkbenchPart
setFocus
public void setFocus()
- Specified by:
setFocus
in interface org.eclipse.ui.IWorkbenchPart
- Specified by:
setFocus
in class org.eclipse.ui.part.WorkbenchPart
getModelService
public IModelService getModelService()
- Description copied from interface:
IModelServiceHolder
- Get
IModelService
to access to model of the content
- Specified by:
getModelService
in interface IModelServiceHolder
- Returns:
IModelService
getEditorPart
public org.eclipse.ui.IEditorPart getEditorPart()
- Description copied from interface:
IModelServiceHolder
- Get
IEditorPart
implemented together with this interface
- Specified by:
getEditorPart
in interface IModelServiceHolder
- Returns:
IEditorPart
dispose
public void dispose()
- Specified by:
dispose
in interface org.eclipse.ui.IWorkbenchPart
- Overrides:
dispose
in class org.eclipse.ui.part.WorkbenchPart
setEditorTitle
public void setEditorTitle(String title)
- Description copied from interface:
IModelServiceHolder
- Set title to
IEditorPart
implemented together with this interface
- Specified by:
setEditorTitle
in interface IModelServiceHolder
- Parameters:
title
- target title