org.eclipse.xtext.ui.editor.toggleComments
Class DefaultSingleLineCommentHelper

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.toggleComments.DefaultSingleLineCommentHelper
All Implemented Interfaces:
ISingleLineCommentHelper

public class DefaultSingleLineCommentHelper
extends java.lang.Object
implements ISingleLineCommentHelper

Author:
Sebastian Zarnekow - Initial contribution and API

Field Summary
static java.lang.String SL_COMMENT
           
 
Constructor Summary
DefaultSingleLineCommentHelper()
           
 
Method Summary
protected  void calculatePrefixes(AbstractRule rule)
           
protected  SLCommentPrefixCalculator createCalculator(java.util.List<java.lang.String> result)
           
 java.lang.String[] getDefaultPrefixes(org.eclipse.jface.text.source.ISourceViewer sourceViewer, java.lang.String contentType)
           
 IGrammarAccess getGrammarAccess()
           
 java.lang.String getSingleLineCommentRule()
           
 void setGrammarAccess(IGrammarAccess grammarAccess)
           
 void setSingleLineCommentRule(java.lang.String singleLineCommentRule)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SL_COMMENT

public static final java.lang.String SL_COMMENT
See Also:
Constant Field Values
Constructor Detail

DefaultSingleLineCommentHelper

public DefaultSingleLineCommentHelper()
Method Detail

getDefaultPrefixes

public java.lang.String[] getDefaultPrefixes(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
                                             java.lang.String contentType)
Specified by:
getDefaultPrefixes in interface ISingleLineCommentHelper

calculatePrefixes

protected void calculatePrefixes(AbstractRule rule)

createCalculator

protected SLCommentPrefixCalculator createCalculator(java.util.List<java.lang.String> result)

setGrammarAccess

public void setGrammarAccess(IGrammarAccess grammarAccess)

getGrammarAccess

public IGrammarAccess getGrammarAccess()

setSingleLineCommentRule

public void setSingleLineCommentRule(java.lang.String singleLineCommentRule)

getSingleLineCommentRule

public java.lang.String getSingleLineCommentRule()