|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
org.eclipse.ui.texteditor.AbstractTextEditor
org.eclipse.ui.texteditor.StatusTextEditor
org.eclipse.ui.texteditor.AbstractDecoratedTextEditor
org.eclipse.ui.editors.text.TextEditor
org.eclipse.wst.sse.ui.StructuredTextEditor
public class StructuredTextEditor
A Text Editor for editing structured models and structured documents.
This class is not meant to be subclassed.
New content types may associate source viewer, content outline, and
property sheet configurations to extend the existing functionality.
StructuredTextViewerConfiguration,
ContentOutlineConfiguration,
PropertySheetConfiguration| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.ui.texteditor.ITextEditorExtension3 |
|---|
org.eclipse.ui.texteditor.ITextEditorExtension3.InsertMode |
| Field Summary | |
|---|---|
static java.lang.String |
GROUP_NAME_ADDITIONS
Not API. |
| Fields inherited from class org.eclipse.ui.texteditor.AbstractTextEditor |
|---|
DEFAULT_EDITOR_CONTEXT_MENU_ID, DEFAULT_RULER_CONTEXT_MENU_ID, PREFERENCE_COLOR_BACKGROUND, PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT, PREFERENCE_COLOR_FIND_SCOPE, PREFERENCE_COLOR_FOREGROUND, PREFERENCE_COLOR_FOREGROUND_SYSTEM_DEFAULT, PREFERENCE_COLOR_SELECTION_BACKGROUND, PREFERENCE_COLOR_SELECTION_BACKGROUND_SYSTEM_DEFAULT, PREFERENCE_COLOR_SELECTION_FOREGROUND, PREFERENCE_COLOR_SELECTION_FOREGROUND_SYSTEM_DEFAULT, PREFERENCE_FONT, PREFERENCE_HYPERLINK_KEY_MODIFIER, PREFERENCE_HYPERLINK_KEY_MODIFIER_MASK, PREFERENCE_HYPERLINKS_ENABLED, PREFERENCE_NAVIGATION_SMART_HOME_END, PREFERENCE_RULER_CONTRIBUTIONS, PREFERENCE_SHOW_WHITESPACE_CHARACTERS, PREFERENCE_TEXT_DRAG_AND_DROP_ENABLED, PREFERENCE_USE_CUSTOM_CARETS, PREFERENCE_WIDE_CARET |
| Fields inherited from interface org.eclipse.ui.IEditorPart |
|---|
PROP_DIRTY, PROP_INPUT |
| Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
PROP_TITLE |
| Fields inherited from interface org.eclipse.ui.IEditorPart |
|---|
PROP_DIRTY, PROP_INPUT |
| Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
PROP_TITLE |
| Fields inherited from interface org.eclipse.ui.texteditor.ITextEditorExtension3 |
|---|
INSERT, SMART_INSERT |
| Constructor Summary | |
|---|---|
StructuredTextEditor()
Creates a new Structured Text Editor. |
|
| Method Summary | |
|---|---|
void |
close(boolean save)
|
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
Use StructuredTextViewerConfiguration if a viewerconfiguration has not already been set. |
void |
dispose()
|
void |
doRevertToSaved()
|
void |
doSave(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
|
void |
editorContextMenuAboutToShow(org.eclipse.jface.action.IMenuManager menu)
Sets up this editor's context menu before it is made visible. |
java.lang.Object |
getAdapter(java.lang.Class required)
|
org.eclipse.ui.IEditorPart |
getEditorPart()
Returns this editor part. |
org.eclipse.wst.sse.core.internal.provisional.IStructuredModel |
getModel()
Deprecated. - This method allowed for uncontrolled access to the model instance and will be removed in the future. It is recommended that the current document provider be asked for the current document and the IModelManager then asked for the corresponding model with getExistingModelFor*(IDocument). |
int |
getOrientation()
|
org.eclipse.jface.viewers.ISelectionProvider |
getSelectionProvider()
|
org.eclipse.wst.sse.ui.internal.StructuredTextViewer |
getTextViewer()
Returns the editor's source viewer. |
void |
init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput input)
|
void |
initializeDocumentProvider(org.eclipse.ui.texteditor.IDocumentProvider documentProvider)
Set the document provider for this editor. |
void |
rememberSelection()
Not API. |
void |
restoreSelection()
Not API. |
void |
safelySanityCheckState(org.eclipse.ui.IEditorInput input)
Overridden to expose part activation handling for multi-page editors. |
void |
setEditorPart(org.eclipse.ui.IEditorPart editorPart)
Set editor part associated with this editor. |
void |
showBusy(boolean busy)
|
void |
update()
Update should be called whenever the model is set or changed (as in swapped) Not API. |
| Methods inherited from class org.eclipse.ui.editors.text.TextEditor |
|---|
isSaveAsAllowed |
| Methods inherited from class org.eclipse.ui.texteditor.AbstractDecoratedTextEditor |
|---|
getDocumentProvider, gotoAnnotation, gotoMarker, isChangeInformationShowing, isEditable, showChangeInformation, showRevisionInformation, validateEditorInputState |
| Methods inherited from class org.eclipse.ui.texteditor.StatusTextEditor |
|---|
updatePartControl |
| Methods inherited from class org.eclipse.ui.texteditor.AbstractTextEditor |
|---|
addRulerContextMenuListener, createEmptyNavigationLocation, createNavigationLocation, doSaveAs, getAction, getActiveSaveables, getHighlightRange, getInsertMode, getSaveables, isDirty, isEditorInputModifiable, isEditorInputReadOnly, markAsContentDependentAction, markAsPropertyDependentAction, markAsSelectionDependentAction, markAsStateDependentAction, removeActionActivationCode, removeRulerContextMenuListener, resetHighlightRange, restoreState, saveState, selectAndReveal, setAction, setActionActivationCode, setFocus, setHighlightRange, setInput, setInsertMode, setStatusField, showHighlightRangeOnly, showsHighlightRangeOnly |
| 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, getContentDescription, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty |
| Methods inherited from class java.lang.Object |
|---|
equals, 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 |
| Methods inherited from interface org.eclipse.ui.ISaveablePart |
|---|
isSaveOnCloseNeeded |
| Methods inherited from interface org.eclipse.ui.IEditorPart |
|---|
getEditorInput, getEditorSite |
| Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener |
| Methods inherited from interface org.eclipse.ui.ISaveablePart |
|---|
isSaveOnCloseNeeded |
| Field Detail |
|---|
public static final java.lang.String GROUP_NAME_ADDITIONS
| Constructor Detail |
|---|
public StructuredTextEditor()
| Method Detail |
|---|
public void close(boolean save)
close in interface org.eclipse.ui.texteditor.ITextEditorclose in class org.eclipse.ui.texteditor.AbstractTextEditorpublic void createPartControl(org.eclipse.swt.widgets.Composite parent)
Use StructuredTextViewerConfiguration if a viewerconfiguration has not already been set. Also initialize StructuredTextViewer.
createPartControl in interface org.eclipse.ui.IWorkbenchPartcreatePartControl in class org.eclipse.ui.texteditor.AbstractDecoratedTextEditorAbstractDecoratedTextEditor.createPartControl(org.eclipse.swt.widgets.Composite)public void dispose()
dispose in interface org.eclipse.ui.IWorkbenchPartdispose in class org.eclipse.ui.editors.text.TextEditorpublic void doRevertToSaved()
doRevertToSaved in interface org.eclipse.ui.texteditor.ITextEditordoRevertToSaved in class org.eclipse.ui.texteditor.StatusTextEditorpublic void doSave(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
doSave in interface org.eclipse.ui.ISaveablePartdoSave in class org.eclipse.ui.texteditor.AbstractTextEditorpublic void editorContextMenuAboutToShow(org.eclipse.jface.action.IMenuManager menu)
Not API. May be reduced to protected method in the future.
editorContextMenuAboutToShow in class org.eclipse.ui.editors.text.TextEditormenu - the menupublic java.lang.Object getAdapter(java.lang.Class required)
getAdapter in interface org.eclipse.core.runtime.IAdaptablegetAdapter in class org.eclipse.ui.editors.text.TextEditorpublic org.eclipse.ui.IEditorPart getEditorPart()
Not API. May be removed in the future.
public org.eclipse.wst.sse.core.internal.provisional.IStructuredModel getModel()
Not API. Will be removed in the future.
public int getOrientation()
getOrientation in interface org.eclipse.ui.part.IWorkbenchPartOrientationgetOrientation in class org.eclipse.ui.part.WorkbenchPartpublic org.eclipse.jface.viewers.ISelectionProvider getSelectionProvider()
getSelectionProvider in interface org.eclipse.ui.texteditor.ITextEditorgetSelectionProvider in class org.eclipse.ui.texteditor.AbstractTextEditorpublic org.eclipse.wst.sse.ui.internal.StructuredTextViewer getTextViewer()
Not API. May be removed in the future.
public void init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput input)
throws org.eclipse.ui.PartInitException
init in interface org.eclipse.ui.IEditorPartinit in class org.eclipse.ui.texteditor.AbstractTextEditororg.eclipse.ui.PartInitExceptionpublic void initializeDocumentProvider(org.eclipse.ui.texteditor.IDocumentProvider documentProvider)
Not API. May be removed in the future.
documentProvider - documentProvider to initializepublic void rememberSelection()
Not API. May be reduced to protected method in the future.
rememberSelection in class org.eclipse.ui.texteditor.AbstractTextEditorpublic void restoreSelection()
Not API. May be reduced to protected method in the future.
restoreSelection in class org.eclipse.ui.texteditor.AbstractTextEditorpublic void safelySanityCheckState(org.eclipse.ui.IEditorInput input)
Overridden to expose part activation handling for multi-page editors.
Not API. May be reduced to protected method in the future.
safelySanityCheckState in class org.eclipse.ui.texteditor.AbstractTextEditorAbstractTextEditor.safelySanityCheckState(org.eclipse.ui.IEditorInput)public void setEditorPart(org.eclipse.ui.IEditorPart editorPart)
Not API. May be removed in the future.
editorPart - editor part associated with this editorpublic void showBusy(boolean busy)
showBusy in class org.eclipse.ui.part.WorkbenchPartpublic void update()
Not API. May be removed in the future.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||