org.eclipse.mylyn.wikitext.tasks.ui.editor
Class MarkupTaskEditorExtension<MarkupLanguageType extends MarkupLanguage>
java.lang.Object
AbstractTaskEditorExtension
org.eclipse.mylyn.wikitext.tasks.ui.editor.MarkupTaskEditorExtension<MarkupLanguageType>
public class MarkupTaskEditorExtension<MarkupLanguageType extends MarkupLanguage>
- extends AbstractTaskEditorExtension
A task editor extension that uses a markup language to parse content. Provides a markup-aware source editor, and a
source viewer that displays markup in its intended formatted form.
- Since:
- 1.0
- Author:
- David Green
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MarkupTaskEditorExtension
public MarkupTaskEditorExtension()
getMarkupLanguage
public MarkupLanguageType getMarkupLanguage()
setMarkupLanguage
public void setMarkupLanguage(MarkupLanguageType markupLanguage)
getEditorContextId
public String getEditorContextId()
createViewer
public SourceViewer createViewer(TaskRepository taskRepository,
Composite parent,
int style)
createViewerConfiguration
protected MarkupTaskEditorExtension.TaskMarkupViewerConfiguration createViewerConfiguration(TaskRepository taskRepository,
MarkupViewer markupViewer)
createSourceViewerConfiguration
protected MarkupTaskEditorExtension.TaskMarkupSourceViewerConfiguration createSourceViewerConfiguration(TaskRepository taskRepository,
SourceViewer viewer)
createEditor
public SourceViewer createEditor(TaskRepository taskRepository,
Composite parent,
int style)
configureMarkupLanguage
protected void configureMarkupLanguage(TaskRepository taskRepository,
MarkupLanguageType markupLanguage)
- Configures the markup language with settings from the task repository. Subclasses may override this method, but
should call
super.configureMarkupLanguage(taskRepository,markupLanguage)
.
- Parameters:
taskRepository
- the repository from which settings should be usedmarkupLanguage
- the markup language to configure- See Also:
configureDefaultInternalLinkPattern(TaskRepository, MarkupLanguage)
configureDefaultInternalLinkPattern
protected void configureDefaultInternalLinkPattern(TaskRepository taskRepository,
MarkupLanguageType markupLanguage)
- Overriding methods should set the
internal hyperlink pattern
of
the given markup language based on some default rules applied to the task repository URL. The default
implementation does nothing.
- Parameters:
taskRepository
- the task repository from which settings may be obtainedmarkupLanguage
- the markup language to configure
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