org.eclipse.mylyn.wikitext.ui.editor
Class MarkupSourceViewer
java.lang.Object
SourceViewer
org.eclipse.mylyn.wikitext.ui.editor.MarkupSourceViewer
public class MarkupSourceViewer
- extends SourceViewer
A source viewer for editors using lightweight markup. Typically configured as follows:
SourceViewer viewer = new MarkupSourceViewer(parent, null, style | SWT.WRAP, markupLanguage);
// configure the viewer
MarkupSourceViewerConfiguration configuration = createSourceViewerConfiguration(taskRepository, viewer);
configuration.setMarkupLanguage(markupLanguage);
configuration.setShowInTarget(new ShowInTargetBridge(viewer));
viewer.configure(configuration);
// we want the viewer to show annotations
viewer.showAnnotations(true);
- Since:
- 1.1
- Author:
- David Green
Field Summary |
static int |
QUICK_OUTLINE
Operation code for quick outline |
Method Summary |
boolean |
canDoOperation(int operation)
|
void |
configure(SourceViewerConfiguration configuration)
|
void |
doOperation(int operation)
|
void |
setDocument(IDocument document,
IAnnotationModel annotationModel,
int modelRangeOffset,
int modelRangeLength)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QUICK_OUTLINE
public static final int QUICK_OUTLINE
- Operation code for quick outline
MarkupSourceViewer
public MarkupSourceViewer(Composite parent,
IVerticalRuler ruler,
int styles,
MarkupLanguage markupLanguage)
setDocument
public void setDocument(IDocument document,
IAnnotationModel annotationModel,
int modelRangeOffset,
int modelRangeLength)
doOperation
public void doOperation(int operation)
canDoOperation
public boolean canDoOperation(int operation)
configure
public void configure(SourceViewerConfiguration configuration)
Copyright © 2007, 2009 David Green and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html