org.eclipse.xtext.ui.editor.toggleComments
Class DefaultSingleLineCommentHelper
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SL_COMMENT
public static final java.lang.String SL_COMMENT
- See Also:
- Constant Field Values
DefaultSingleLineCommentHelper
public DefaultSingleLineCommentHelper()
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()