public class DefaultSingleLineCommentHelper extends java.lang.Object implements ISingleLineCommentHelper
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SL_COMMENT |
Constructor and Description |
---|
DefaultSingleLineCommentHelper() |
Modifier and Type | Method and Description |
---|---|
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) |
public static final java.lang.String SL_COMMENT
public java.lang.String[] getDefaultPrefixes(org.eclipse.jface.text.source.ISourceViewer sourceViewer, java.lang.String contentType)
getDefaultPrefixes
in interface ISingleLineCommentHelper
protected void calculatePrefixes(AbstractRule rule)
protected SLCommentPrefixCalculator createCalculator(java.util.List<java.lang.String> result)
public void setGrammarAccess(IGrammarAccess grammarAccess)
public IGrammarAccess getGrammarAccess()
public void setSingleLineCommentRule(java.lang.String singleLineCommentRule)
public java.lang.String getSingleLineCommentRule()