|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTextEditor
org.eclipse.wst.sse.ui.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
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
GROUP_NAME_ADDITIONS
Not API. |
static java.lang.String |
GROUP_NAME_FORMAT
Not API. |
static java.lang.String |
GROUP_NAME_FORMAT_EXT
Not API. |
Constructor Summary | |
---|---|
StructuredTextEditor()
Creates a new Structured Text Editor. |
Method Summary | |
---|---|
void |
close(boolean save)
|
void |
createPartControl(Composite parent)
{@inheritDoc} Use StructuredTextViewerConfiguration if a viewerconfiguration has not already been set. |
void |
dispose()
|
void |
doRevertToSaved()
|
void |
doSave(IProgressMonitor progressMonitor)
|
void |
editorContextMenuAboutToShow(IMenuManager menu)
Sets up this editor's context menu before it is made visible. |
java.lang.Object |
getAdapter(java.lang.Class required)
|
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()
|
ISelectionProvider |
getSelectionProvider()
|
org.eclipse.wst.sse.ui.internal.StructuredTextViewer |
getTextViewer()
Returns the editor's source viewer. |
void |
init(IEditorSite site,
IEditorInput input)
|
void |
initializeDocumentProvider(IDocumentProvider documentProvider)
Set the document provider for this editor. |
void |
rememberSelection()
{@inheritDoc} Not API. |
void |
restoreSelection()
{@inheritDoc} Not API. |
void |
safelySanityCheckState(IEditorInput input)
{@inheritDoc} Overridden to expose part activation handling for multi-page editors. |
void |
setEditorPart(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 java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String GROUP_NAME_ADDITIONS
public static final java.lang.String GROUP_NAME_FORMAT
public static final java.lang.String GROUP_NAME_FORMAT_EXT
Constructor Detail |
public StructuredTextEditor()
Method Detail |
public void close(boolean save)
public void createPartControl(Composite parent)
Use StructuredTextViewerConfiguration if a viewerconfiguration has not already been set. Also initialize StructuredTextViewer.
org.eclipse.ui.texteditor.AbstractDecoratedTextEditor#createPartControl(org.eclipse.swt.widgets.Composite)
public void dispose()
public void doRevertToSaved()
public void doSave(IProgressMonitor progressMonitor)
public void editorContextMenuAboutToShow(IMenuManager menu)
Not API. May be reduced to protected method in the future.
menu
- the menupublic java.lang.Object getAdapter(java.lang.Class required)
public 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()
public ISelectionProvider getSelectionProvider()
public org.eclipse.wst.sse.ui.internal.StructuredTextViewer getTextViewer()
Not API. May be removed in the future.
public void init(IEditorSite site, IEditorInput input) throws PartInitException
PartInitException
public void initializeDocumentProvider(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.
public void restoreSelection()
Not API. May be reduced to protected method in the future.
public void safelySanityCheckState(IEditorInput input)
Overridden to expose part activation handling for multi-page editors.
Not API. May be reduced to protected method in the future.
org.eclipse.ui.texteditor.AbstractTextEditor#safelySanityCheckState(org.eclipse.ui.IEditorInput)
public void setEditorPart(IEditorPart editorPart)
Not API. May be removed in the future.
editorPart
- editor part associated with this editorpublic void showBusy(boolean busy)
public 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 |