org.eclipse.ui.texteditor
Class StatusTextEditor
java.lang.Object
|
+--org.eclipse.ui.part.WorkbenchPart
|
+--org.eclipse.ui.part.EditorPart
|
+--org.eclipse.ui.texteditor.AbstractTextEditor
|
+--org.eclipse.ui.texteditor.StatusTextEditor
- All Implemented Interfaces:
- IAdaptable, IEditorPart, IExecutableExtension, INavigationLocationProvider, IReusableEditor, ISaveablePart, ITextEditor, ITextEditorExtension, ITextEditorExtension2, IWorkbenchPart
- Direct Known Subclasses:
- TextEditor
- public class StatusTextEditor
- extends AbstractTextEditor
Capable of handling input elements that have an associated status with them.
- Since:
- 2.0
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, PREFERENCE_NAVIGATION_SMART_HOME_END, VERTICAL_RULER_WIDTH |
Methods inherited from class org.eclipse.ui.texteditor.AbstractTextEditor |
addAction, addAction, addGroup, addRulerContextMenuListener, adjustHighlightRange, affectsTextPresentation, canHandleMove, close, createActions, createEmptyNavigationLocation, createNavigationActions, createNavigationLocation, createRevertOperation, createSaveOperation, createSourceViewer, createVerticalRuler, dispose, doGetSelection, doSave, doSaveAs, doSetSelection, editorContextMenuAboutToShow, editorSaved, enableSanityChecking, enableStateValidation, firePropertyChange, getAction, getAdapter, getContextMenuListener, getCoverage, getCursorListener, getCursorPosition, getDocumentProvider, getEditorContextMenuId, getFontPropertyPreferenceKey, getHelpContextId, getHighlightRange, getPreferenceStore, getProgressMonitor, getRangeIndicator, getRulerContextMenuId, getRulerMouseListener, getSelectionChangedListener, getSelectionProvider, getSourceViewer, getSourceViewerConfiguration, getStatusField, getVerticalRuler, gotoMarker, handleCursorPositionChanged, handleEditorInputChanged, handleExceptionOnSave, handleInsertModeChanged, handlePreferenceStoreChanged, init, internalInit, isDirty, isEditable, isEditorInputModifiable, isEditorInputReadOnly, isInInsertMode, isSaveAsAllowed, isSaveOnCloseNeeded, isVisible, markAsContentDependentAction, markAsPropertyDependentAction, markAsSelectionDependentAction, markAsStateDependentAction, markInNavigationHistory, performRevertOperation, performSaveAs, performSaveOperation, rememberSelection, removeActionActivationCode, removeRulerContextMenuListener, resetHighlightRange, restoreSelection, rulerContextMenuAboutToShow, safelySanityCheckState, selectAndReveal, setAction, setActionActivationCode, setCompatibilityMode, setDocumentProvider, setEditorContextMenuId, setFocus, setHelpContextId, setHighlightRange, setInput, setKeyBindingScopes, setPreferenceStore, setRangeIndicator, setRulerContextMenuId, setSourceViewerConfiguration, setStatusField, showHighlightRangeOnly, showsHighlightRangeOnly, updateContentDependentActions, updatePropertyDependentActions, updateSelectionDependentActions, updateState, updateStateDependentActions, updateStatusFields, validateEditorInputState, validateState, widgetOffset2ModelOffset |
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 |
StatusTextEditor
public StatusTextEditor()
createPartControl
public void createPartControl(Composite parent)
- Description copied from class:
AbstractTextEditor
- The
AbstractTextEditor
implementation of this
IWorkbenchPart
method creates the vertical ruler and
source viewer.
Subclasses may extend.
- Overrides:
createPartControl
in class AbstractTextEditor
- Following copied from class:
org.eclipse.ui.texteditor.AbstractTextEditor
- Parameters:
parent
- the parent composite
updatePartControl
public void updatePartControl(IEditorInput input)
- Checks if the status of the given input is OK. If not the
status control is shown rather than the default control.
- Parameters:
input
- the input whose status is checked
createStatusControl
protected Control createStatusControl(Composite parent,
IStatus status)
- Creates the status control for the given status.
May be overridden by subclasses.
- Parameters:
parent
- the parent controlstatus
- the status- Returns:
- the new status control
getStatusHeader
protected String getStatusHeader(IStatus status)
- Returns a header for the given status
- Parameters:
status
- the status whose message is returned- Returns:
- a header for the given status
getStatusBanner
protected String getStatusBanner(IStatus status)
- Returns a banner for the given status.
- Parameters:
status
- the status whose message is returned- Returns:
- a banner for the given status
getStatusMessage
protected String getStatusMessage(IStatus status)
- Returns a message for the given status.
- Parameters:
status
- the status whose message is returned- Returns:
- a message for the given status
updateStatusField
protected void updateStatusField(String category)
- Description copied from class:
AbstractTextEditor
- Updates the status fields for the given category.
- Overrides:
updateStatusField
in class AbstractTextEditor
- Following copied from class:
org.eclipse.ui.texteditor.AbstractTextEditor
- Parameters:
category
-
doSetInput
protected void doSetInput(IEditorInput input)
throws CoreException
- Description copied from class:
AbstractTextEditor
- Internal
setInput
method.
- Overrides:
doSetInput
in class AbstractTextEditor
- Following copied from class:
org.eclipse.ui.texteditor.AbstractTextEditor
- Parameters:
input
- the input to be set- Throws:
CoreException
- if input cannot be connected to the document provider
doRevertToSaved
public void doRevertToSaved()
- Description copied from class:
AbstractTextEditor
- The
AbstractTextEditor
implementation of this
ITextEditor
method may be extended by subclasses.
- Overrides:
doRevertToSaved
in class AbstractTextEditor
sanityCheckState
protected void sanityCheckState(IEditorInput input)
- Description copied from class:
AbstractTextEditor
- Checks the state of the given editor input.
- Overrides:
sanityCheckState
in class AbstractTextEditor
- Following copied from class:
org.eclipse.ui.texteditor.AbstractTextEditor
- Parameters:
input
- the editor input whose state is to be checked
Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.