|
TPTP 4.5.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.hyades.ui.editor.EditorExtension
The implementation of this class is not based on Eclipse Forms(a.k.a. "flat" look)
framework that was made available publically in Eclipse 3.0. If you would like your editor(s) to be
built with the Eclipse Forms technology, this is NOT the class to extend. To know more about
Eclipse Forms:
Eclipse Forms Programming Guide
public abstract class EditorExtension
An abstract implementation of a IEditorExtension. A typical client subclasses this class implementing only the required methods.
The clients must implement the following methods:
createPage()doSave(IProgressMonitor)
| Constructor Summary | |
|---|---|
EditorExtension()
Deprecated. |
|
| Method Summary | |
|---|---|
boolean |
checkPagesDirtyState()
Deprecated. Returns true when the IHyadesEditorPart should check the pages when calculating its dirty state or false when it should only relay on the value returned by this implementor's isDirty() method. |
void |
dispose()
Deprecated. Disposes any resource used by this object. |
void |
doSaveAs()
Deprecated. Saves the contents of this editor extension to another object. |
java.lang.Object |
getAdapter(java.lang.Class adapter)
Deprecated. |
IHyadesEditorPart |
getHyadesEditorPart()
Deprecated. Returns the hyades editor part in which this extension is presented. |
java.lang.String |
getStatusLineMessage(org.eclipse.jface.viewers.IStructuredSelection structuredSelection)
Deprecated. Returns the message to show in the status line. |
void |
gotoMarker(org.eclipse.core.resources.IMarker marker)
Deprecated. Sets the cursor and selection state for this editor extension to the passage defined by the given marker. |
void |
init(IHyadesEditorPart hyadesEditorPart)
Deprecated. Initializes this editor extension with the given IHyadesEditorPart. |
boolean |
isDirty()
Deprecated. Returns whether the contents of this editor extension have changed since the last save operation. |
boolean |
isSaveAsAllowed()
Deprecated. Returns whether the "Save As" operation is supported by this part. |
boolean |
isSaveOnCloseNeeded()
Deprecated. Returns whether the contents of this editor extension should be saved when the editor extension is closed. |
boolean |
pageActivated(int index)
Deprecated. Notifies this editor extension that the page with the given index has been activated. |
void |
refreshContent(java.lang.Object data)
Deprecated. Refreshes this object. |
boolean |
refreshPages()
Deprecated. Returns true if the IHyadesEditorPart should refresh the pages after invoking this implementor's refreshContent(Object)
method or false otherwise. |
void |
selectionChanged(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.viewers.ISelection selection)
Deprecated. |
void |
setSelection(org.eclipse.jface.viewers.IStructuredSelection structuredSelection)
Deprecated. Sets the current selection for this selection provider. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.hyades.ui.editor.IEditorExtension |
|---|
createPages, doSave, getSelection |
| Constructor Detail |
|---|
public EditorExtension()
| Method Detail |
|---|
public void init(IHyadesEditorPart hyadesEditorPart)
throws org.eclipse.ui.PartInitException
IEditorExtensionThis method is automatically called shortly after part construction; it marks
the start of the part's life cycle. The
dispose method will be called
automatically at the end of the life cycle. Clients must not call this method.
Implementors of this method must examine the edited object available at
IHyadesEditorPart.getEditorObject() and the
editor input to
determine if one of them is understood. If not, the implementor must throw
a PartInitException
init in interface IEditorExtensionorg.eclipse.ui.PartInitException - if this editor extension was not initialized successfullyorg.eclipse.hyades.ui.test.editor.IEditorExtension#init(org.eclipse.hyades.ui.test.editor.IHyadesEditorPart)public IHyadesEditorPart getHyadesEditorPart()
IEditorExtension
getHyadesEditorPart in interface IEditorExtensionIEditorExtension.getHyadesEditorPart()public void gotoMarker(org.eclipse.core.resources.IMarker marker)
IEditorExtension
gotoMarker in interface IEditorExtensionmarker - the markerorg.eclipse.hyades.ui.test.editor.IEditorExtension#gotoMarker(org.eclipse.core.resources.IMarker)public boolean checkPagesDirtyState()
IEditorExtensionisDirty() method.
checkPagesDirtyState in interface IEditorExtensionorg.eclipse.hyades.ui.test.editor.IEditorExtension#checkPagesDirtyState()public boolean refreshPages()
IEditorExtensionrefreshContent(Object)
method or false otherwise.
refreshPages in interface IEditorExtensionorg.eclipse.hyades.ui.test.editor.IEditorExtension#refreshPages()public void doSaveAs()
IEditorExtensionImplementors are expected to open a "Save As" dialog where the user will
be able to select a new name for the contents. After the selection is made,
the contents should be saved to that new name. During this operation a
IProgressMonitor should be used to indicate progress.
If the save is successful, the editor extension fires a property changed
event reflecting the new dirty state (PROP_DIRTY property).
doSaveAs in interface IEditorExtensionorg.eclipse.hyades.ui.test.editor.IEditorExtension#doSaveAs()public boolean isDirty()
IEditorExtensionPROP_DIRTY.
isDirty in interface IEditorExtensiontrue if the contents have been modified and need
saving, and false if they have not changed since the last
saveorg.eclipse.hyades.ui.test.editor.IEditorExtension#isDirty()public boolean isSaveAsAllowed()
IEditorExtension
isSaveAsAllowed in interface IEditorExtensiontrue if "Save As" is supported, and false
if not supportedorg.eclipse.hyades.ui.test.editor.IEditorExtension#isSaveAsAllowed()public boolean isSaveOnCloseNeeded()
IEditorExtension
isSaveOnCloseNeeded in interface IEditorExtensiontrue if the contents of the editor extension should be saved
on close, and false if the contents are expendableorg.eclipse.hyades.ui.test.editor.IEditorExtension#isSaveOnCloseNeeded()public void dispose()
IDisposable
dispose in interface IDisposableorg.eclipse.hyades.ui.test.util.IDisposable#dispose()public void refreshContent(java.lang.Object data)
IRefreshabledata is an information that may
be used during the process such as the tree item that should be
refreshed.
refreshContent in interface IRefreshableorg.eclipse.hyades.ui.test.util.IRefreshable#refreshContent(java.lang.Object)public void setSelection(org.eclipse.jface.viewers.IStructuredSelection structuredSelection)
IEditorExtension
setSelection in interface IEditorExtensionIEditorExtension.setSelection(org.eclipse.jface.viewers.IStructuredSelection)
public void selectionChanged(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.viewers.ISelection selection)
selectionChanged in interface org.eclipse.ui.ISelectionListenerISelectionListener.selectionChanged(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)public java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter in interface org.eclipse.core.runtime.IAdaptableIAdaptable.getAdapter(java.lang.Class)public java.lang.String getStatusLineMessage(org.eclipse.jface.viewers.IStructuredSelection structuredSelection)
IEditorExtensionIf a subclass requires a more sophisticated use of the
status line, it should manipulate the status line direct. The
status line can be obtained by
getHyadesEditorPart().getEditorSite().getActionBars().getStatusLineManager().
getStatusLineMessage in interface IEditorExtensionIEditorExtension.getStatusLineMessage(org.eclipse.jface.viewers.IStructuredSelection)public boolean pageActivated(int index)
IEditorExtension
pageActivated in interface IEditorExtensionIEditorExtension.pageActivated(int)
|
TPTP 4.5.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||