|
Mylyn WikiText | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTextEditor
org.eclipse.mylyn.wikitext.ui.editor.WikiTextSourceEditor
public class WikiTextSourceEditor
A WikiText source editor. Users must set the document provider
.
AbstractWikiTextDocumentProvider
Field Summary | |
---|---|
static String |
CONTEXT
The source editing context. |
static int |
PROP_OUTLINE
The property id for editor outline change events. |
static int |
PROP_OUTLINE_LOCATION
The property id for outline location change events. |
Constructor Summary | |
---|---|
WikiTextSourceEditor()
|
Method Summary | |
---|---|
protected AbstractWikiTextSourceEditorOutline |
createContentOutline()
subclasses may override to provide a non-default content outline. |
protected MarkupSourceViewer |
createMarkupSourceViewer(Composite parent,
IVerticalRuler ruler,
int styles)
Create a markup source viewer. |
protected ISourceViewer |
createSourceViewer(Composite parent,
IVerticalRuler ruler,
int styles)
|
Object |
getAdapter(Class adapter)
|
MarkupLanguage |
getMarkupLanguage()
The markup language. |
OutlineItem |
getOutlineModel()
Get the outline model for the document being edited. |
ShowInContext |
getShowInContext()
|
void |
init(IEditorSite site,
IEditorInput input)
|
protected void |
initializeEditor()
|
protected boolean |
isLineNumberRulerVisible()
|
void |
selectAndReveal(OutlineItem item)
Select and reveal the given outline item, based on its offset and length. |
void |
setDocumentProvider(IDocumentProvider provider)
Users must set the document provider. |
void |
setMarkupLanguage(MarkupLanguage markupLanguage)
set the markup language. |
protected void |
setSourceViewerConfiguration(SourceViewerConfiguration configuration)
Set the source viewer configuration. |
boolean |
show(ShowInContext context)
|
void |
updatePartControl(IEditorInput input)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONTEXT
IContextService
when the editor is
initialized
. This context is also used as the editor help context id.
public static final int PROP_OUTLINE
public static final int PROP_OUTLINE_LOCATION
Constructor Detail |
---|
public WikiTextSourceEditor()
Method Detail |
---|
public void setDocumentProvider(IDocumentProvider provider)
AbstractWikiTextDocumentProvider
,
WikiTextDocumentProvider
protected void setSourceViewerConfiguration(SourceViewerConfiguration configuration)
ClassCastException
- if the configuration does not subclass MarkupSourceViewerConfiguration
protected ISourceViewer createSourceViewer(Composite parent, IVerticalRuler ruler, int styles)
protected MarkupSourceViewer createMarkupSourceViewer(Composite parent, IVerticalRuler ruler, int styles)
parent
- the parent of the source viewerruler
- the vertical rulerstyles
- the styles to pass to the viewer
createSourceViewer(Composite, IVerticalRuler, int)
public MarkupLanguage getMarkupLanguage()
public void setMarkupLanguage(MarkupLanguage markupLanguage)
protected void initializeEditor()
public void init(IEditorSite site, IEditorInput input) throws PartInitException
PartInitException
public Object getAdapter(Class adapter)
protected AbstractWikiTextSourceEditorOutline createContentOutline()
public void updatePartControl(IEditorInput input)
public final OutlineItem getOutlineModel()
public ShowInContext getShowInContext()
protected boolean isLineNumberRulerVisible()
public boolean show(ShowInContext context)
public void selectAndReveal(OutlineItem item)
item
- the item, must not be null
|
Mylyn WikiText | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |