com.bbn.swede.editor
Class OWLSourceViewerConfiguration

java.lang.Object
  extended byTextSourceViewerConfiguration
      extended bycom.bbn.swede.editor.OWLSourceViewerConfiguration

public class OWLSourceViewerConfiguration
extends TextSourceViewerConfiguration

Extends TextSourceViewerConfiguration to add OWL-specific features to OWLSourceEditor. Features provided by this class include text and annotation hover, an auto-indent strategy, syntax highlighting, and a text double-click strategy.

See Also:
Serialized Form

Nested Class Summary
 class OWLSourceViewerConfiguration.OWLAnnotationHover
          OWLAnnotationHover is in implementation of both ITextHover and IAnnotationHover that is designed to display marker text as tooltips if the cursor hovers over either the marker's icon in the vertical ruler or squiggly-underlined text.
protected  class OWLSourceViewerConfiguration.OWLDamageRepairer
          OWLDamagerRepairer controls syntax highlighting of monochromatic areas of an OWL document (i.e.
 class OWLSourceViewerConfiguration.QNameDoubleClickStrategy
          QNameDoubleClickStrategy is an implementation of ITextDoubleClickStrategy that detects whether a double-click occurred inside a tag or attribute's QName and, if so, selects it.
 
Constructor Summary
OWLSourceViewerConfiguration(IOWLAbstractSyntaxTree tree)
          Creates an OWL source viewer configuration.
 
Method Summary
 IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer)
           
 IAutoEditStrategy[] getAutoEditStrategies(ISourceViewer sourceViewer, String contentType)
           
 String[] getConfiguredContentTypes(ISourceViewer sourceViewer)
           
 IContentAssistant getContentAssistant(ISourceViewer sourceViewer)
           
 IContentFormatter getContentFormatter(ISourceViewer sourceViewer)
           
 ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType)
           
 IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer)
           
 ITextHover getTextHover(ISourceViewer sourceViewer, String contentType)
           
 ITextHover getTextHover(ISourceViewer sourceViewer, String contentType, int stateMask)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OWLSourceViewerConfiguration

public OWLSourceViewerConfiguration(IOWLAbstractSyntaxTree tree)
Creates an OWL source viewer configuration.

Parameters:
tree - The OAST for the document whose editor is being configured.
Method Detail

getPresentationReconciler

public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer)

getContentAssistant

public IContentAssistant getContentAssistant(ISourceViewer sourceViewer)

getDoubleClickStrategy

public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer,
                                                       String contentType)

getConfiguredContentTypes

public String[] getConfiguredContentTypes(ISourceViewer sourceViewer)

getAutoEditStrategies

public IAutoEditStrategy[] getAutoEditStrategies(ISourceViewer sourceViewer,
                                                 String contentType)

getContentFormatter

public IContentFormatter getContentFormatter(ISourceViewer sourceViewer)

getAnnotationHover

public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer)

getTextHover

public ITextHover getTextHover(ISourceViewer sourceViewer,
                               String contentType,
                               int stateMask)

getTextHover

public ITextHover getTextHover(ISourceViewer sourceViewer,
                               String contentType)


Copyright © 2004-2005 BBN Technologies. All Rights Reserved.