Mylyn WikiText

org.eclipse.mylyn.wikitext.ui.editor
Class AbstractWikiTextDocumentProvider

java.lang.Object
  extended by StorageDocumentProvider
      extended by org.eclipse.mylyn.wikitext.ui.editor.AbstractWikiTextDocumentProvider
All Implemented Interfaces:
WikiTextDocumentProvider

public abstract class AbstractWikiTextDocumentProvider
extends StorageDocumentProvider
implements WikiTextDocumentProvider

An abstract document provider for the WikiTextSourceEditor. Subclasses must implement mutable document storage.

Since:
1.3
Author:
David Green

Constructor Summary
AbstractWikiTextDocumentProvider()
           
 
Method Summary
protected  IAnnotationModel createAnnotationModel(Object element)
           
protected abstract  void doSaveDocument(IProgressMonitor monitor, Object element, IDocument document, boolean overwrite)
           
 MarkupLanguage getMarkupLanguage()
           
 void setMarkupLanguage(MarkupLanguage markupLanguage)
           
protected  void setupDocument(Object element, IDocument document)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractWikiTextDocumentProvider

public AbstractWikiTextDocumentProvider()
Method Detail

setupDocument

protected void setupDocument(Object element,
                             IDocument document)

getMarkupLanguage

public MarkupLanguage getMarkupLanguage()

setMarkupLanguage

public void setMarkupLanguage(MarkupLanguage markupLanguage)
Specified by:
setMarkupLanguage in interface WikiTextDocumentProvider

createAnnotationModel

protected IAnnotationModel createAnnotationModel(Object element)
                                          throws CoreException
Throws:
CoreException

doSaveDocument

protected abstract void doSaveDocument(IProgressMonitor monitor,
                                       Object element,
                                       IDocument document,
                                       boolean overwrite)
                                throws CoreException
Throws:
CoreException

Mylyn WikiText

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