LPEX
3.6.8

com.ibm.lpex.alef
Class LpexSourceViewerConfiguration

java.lang.Object
  extended by TextSourceViewerConfiguration
      extended by com.ibm.lpex.alef.LpexSourceViewerConfiguration

public class LpexSourceViewerConfiguration
extends TextSourceViewerConfiguration

This class extends the configuration space defined by TextSourceViewerConfiguration, with LPEX's content assist and hyperlink support for use with an LpexSourceViewer. Instances of this class are passed to the configure() method of LpexSourceViewer.

See Also:
TextSourceViewerConfiguration, ISourceViewer

Constructor Summary
LpexSourceViewerConfiguration()
          Creates an LPEX source viewer configuration.
LpexSourceViewerConfiguration(IPreferenceStore preferenceStore)
          Creates an LPEX source viewer configuration and initializes it with the given preference store.
 
Method Summary
 IHyperlinkPresenter getHyperlinkPresenter(ISourceViewer sourceViewer)
          Returns the hyperlink presenter for the given LPEX source viewer.
 IContentAssistant getLpexContentAssistant(ISourceViewer sourceViewer)
          Returns a content assistant ready to be used with the given LPEX source viewer.
 IReconciler getReconciler(ISourceViewer sourceViewer)
          Returns a reconciler ready to be used with the given source viewer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LpexSourceViewerConfiguration

public LpexSourceViewerConfiguration()
Creates an LPEX source viewer configuration.


LpexSourceViewerConfiguration

public LpexSourceViewerConfiguration(IPreferenceStore preferenceStore)
Creates an LPEX source viewer configuration and initializes it with the given preference store.

Method Detail

getLpexContentAssistant

public IContentAssistant getLpexContentAssistant(ISourceViewer sourceViewer)
Returns a content assistant ready to be used with the given LPEX source viewer. The default implementation of this method in LpexSourceViewerConfiguration returns null.

Parameters:
sourceViewer - the LpexSourceViewer to be configured by this configuration
Returns:
a content assistant, or null if content assist should not be supported

getHyperlinkPresenter

public IHyperlinkPresenter getHyperlinkPresenter(ISourceViewer sourceViewer)
Returns the hyperlink presenter for the given LPEX source viewer. The default implementation of this method returns a new LpexDefaultHyperlinkPresenter.

Parameters:
sourceViewer - the LpexSourceViewer to be configured by this configuration
Returns:
a hyperlink presenter, or null if no hyperlink support should be installed

getReconciler

public IReconciler getReconciler(ISourceViewer sourceViewer)
Returns a reconciler ready to be used with the given source viewer. The default implementation of this method returns null.


LPEX
3.6.8

Copyright © 2013 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.