|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object EditorPart com.ibm.lpex.alef.LpexAbstractTextEditor com.ibm.lpex.alef.LpexStatusTextEditor
public class LpexStatusTextEditor
A line-oriented, LPEX-based version of StatusTextEditor. A status text editor is capable of handling input elements that have an associated status.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.ibm.lpex.alef.LpexAbstractTextEditor |
---|
LpexAbstractTextEditor.ColumnSupport, LpexAbstractTextEditor.IdMapEntry, LpexAbstractTextEditor.TextEditorSavable |
Field Summary |
---|
Constructor Summary | |
---|---|
LpexStatusTextEditor()
|
Method Summary | |
---|---|
void |
createPartControl(Composite parent)
Creates the SWT controls for this workbench part. |
protected Control |
createStatusControl(Composite parent,
IStatus status)
Creates the status control for the given status. |
void |
doRevertToSaved()
Abandons all modifications applied to the editor's input element's textual presentation since the last save operation. |
protected void |
doSetInput(IEditorInput input)
Internal processing of setting/changing the input to this editor. |
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 |
handleEditorInputChanged()
Handles an external change of the editor's input element. |
protected void |
handleElementContentReplaced()
Performs any additional action necessary after the input document's content has been replaced. |
protected boolean |
isErrorStatus(IStatus status)
Returns whether the given status indicates an error. |
protected void |
sanityCheckState(IEditorInput input)
Checks the state of the given editor input. |
void |
setFocus()
Ask the part to take focus within the workbench. |
void |
updatePartControl(IEditorInput input)
Checks whether the status of the given input is OK. |
protected void |
updateStatusField(String category)
Updates the Eclipse status field for the given category. |
boolean |
validateEditorInputState()
Validates the state of the given editor input. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LpexStatusTextEditor()
Method Detail |
---|
public void createPartControl(Composite parent)
For implementors, this is a multi-step process: 1. Create one or more controls within the parent; 2. Set the parent layout as needed; 3. Register any global actions with the IActionService; 4. Register any popup menus with the IActionService; 5. Register a selection provider with the ISelectionService (optional).
createPartControl
in class LpexAbstractTextEditor
parent
- the parent controlIWorkbenchPart
public void updatePartControl(IEditorInput input)
input
- the editor input whose status is checkedpublic boolean validateEditorInputState()
LpexAbstractTextEditor
validateEditorInputState
in class LpexAbstractTextEditor
true
if the input was validated, false
otherwiseITextEditorExtension2
protected boolean isErrorStatus(IStatus status)
status
- the status to be checked
true
if the status indicates an error, or false
otherwiseprotected Control createStatusControl(Composite parent, IStatus status)
parent
- the parent controlstatus
- the status
protected 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)
LpexAbstractTextEditor
updateStatusField
in class LpexAbstractTextEditor
category
- the status categoryprotected void doSetInput(IEditorInput input) throws CoreException
LpexAbstractTextEditor
This method does the actual setting of the editor input. It closes the editor if input
is null
. It disconnects from any
previous editor input and its document provider, and connects to the new one. Subclasses may extend.
doSetInput
in class LpexAbstractTextEditor
input
- the (new) input to be set; if null
, this text editor is being closed
CoreException
- if the input cannot be connected to the document provider (i.e., it is not understood by this part)public void doRevertToSaved()
LpexAbstractTextEditor
The implementation of this ITextEditor
method may be extended by subclasses.
doRevertToSaved
in class LpexAbstractTextEditor
ITextEditor
protected void sanityCheckState(IEditorInput input)
LpexAbstractTextEditor
sanityCheckState
in class LpexAbstractTextEditor
input
- the editor input whose state is to be checkedprotected void handleEditorInputChanged()
LpexAbstractTextEditor
handleEditorInputChanged
in class LpexAbstractTextEditor
protected void handleElementContentReplaced()
LpexAbstractTextEditor
handleElementContentReplaced
in class LpexAbstractTextEditor
public void setFocus()
LpexAbstractTextEditor
setFocus
in class LpexAbstractTextEditor
IWorkbenchPart
|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |