|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.ui.part.WorkbenchPart | +--org.eclipse.ui.part.EditorPart | +--org.eclipse.ui.texteditor.AbstractTextEditor | +--org.eclipse.ui.texteditor.StatusTextEditor
Capable of handling input elements that have an associated status with them.
Field Summary |
Fields inherited from class org.eclipse.ui.texteditor.AbstractTextEditor |
ACTION_MAP, DEFAULT_EDITOR_CONTEXT_MENU_ID, DEFAULT_RULER_CONTEXT_MENU_ID, fErrorLabel, PREFERENCE_COLOR_BACKGROUND, PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT, PREFERENCE_COLOR_FIND_SCOPE, PREFERENCE_COLOR_FOREGROUND, PREFERENCE_COLOR_FOREGROUND_SYSTEM_DEFAULT, PREFERENCE_FONT, VERTICAL_RULER_WIDTH |
Fields inherited from interface org.eclipse.ui.IEditorPart |
PROP_DIRTY, PROP_INPUT |
Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
PROP_TITLE |
Constructor Summary | |
StatusTextEditor()
|
Method Summary | |
void |
createPartControl(Composite parent)
The AbstractTextEditor implementation of this
IWorkbenchPart method creates the vertical ruler and
source viewer. |
protected Control |
createStatusControl(Composite parent,
IStatus status)
Creates the status control for the given status. |
void |
doRevertToSaved()
The AbstractTextEditor implementation of this
ITextEditor method may be extended by subclasses. |
protected void |
doSetInput(IEditorInput input)
Internal setInput method. |
protected String |
getStatusBanner(IStatus status)
Returns a banner for the given status. |
protected String |
getStatusHeader(IStatus status)
Returns a header for the given status |
protected String |
getStatusMessage(IStatus status)
Returns a message for the given status. |
protected void |
sanityCheckState(IEditorInput input)
Checks the state of the given editor input. |
void |
updatePartControl(IEditorInput input)
Checks if the status of the given input is OK. |
protected void |
updateStatusField(String category)
Updates the status fields for the given category. |
Methods inherited from class org.eclipse.ui.part.EditorPart |
getEditorInput, getEditorSite, getTitleToolTip |
Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
addPropertyListener, getConfigurationElement, getDefaultImage, getSite, getTitle, getTitleImage, removePropertyListener, setInitializationData, setSite, setTitle, setTitleImage, setTitleToolTip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.ui.IEditorPart |
getEditorInput, getEditorSite |
Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener |
Constructor Detail |
public StatusTextEditor()
Method Detail |
public void createPartControl(Composite parent)
AbstractTextEditor
AbstractTextEditor
implementation of this
IWorkbenchPart
method creates the vertical ruler and
source viewer. Subclasses may extend.
createPartControl
in interface IWorkbenchPart
createPartControl
in class AbstractTextEditor
parent
- the parent controlpublic void updatePartControl(IEditorInput input)
input
- the input whose status is checkedprotected Control createStatusControl(Composite parent, IStatus status)
parent
- the parent controlstatus
- the statusprotected String getStatusHeader(IStatus status)
status
- the status whose message is returned
protected String getStatusBanner(IStatus status)
status
- the status whose message is returned
protected String getStatusMessage(IStatus status)
status
- the status whose message is returned
protected void updateStatusField(String category)
AbstractTextEditor
updateStatusField
in class AbstractTextEditor
category
- protected void doSetInput(IEditorInput input) throws CoreException
AbstractTextEditor
setInput
method.
doSetInput
in class AbstractTextEditor
input
- the input to be set
CoreException
- if input cannot be connected to the document providerpublic void doRevertToSaved()
AbstractTextEditor
AbstractTextEditor
implementation of this
ITextEditor
method may be extended by subclasses.
doRevertToSaved
in interface ITextEditor
doRevertToSaved
in class AbstractTextEditor
protected void sanityCheckState(IEditorInput input)
AbstractTextEditor
sanityCheckState
in class AbstractTextEditor
input
- the editor input whose state is to be checked
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |