Tabnine Logo
SyntaxDocument.commentLinesAfter
Code IndexAdd Tabnine to your IDE (free)

How to use
commentLinesAfter
method
in
weka.gui.scripting.SyntaxDocument

Best Java code snippets using weka.gui.scripting.SyntaxDocument.commentLinesAfter (Showing top 2 results out of 315)

origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Determine how many lines have been changed, then apply highlighting to each
 * line.
 * 
 * @param offset the offset of the changed lines
 * @param length the length of the change
 * @throws BadLocationException if offset is invalid
 */
public void processChangedLines(int offset, int length)
 throws BadLocationException {
 String content = m_Self.getText(0, m_Self.getLength());
 // The lines affected by the latest document update
 int startLine = m_RootElement.getElementIndex(offset);
 int endLine = m_RootElement.getElementIndex(offset + length);
 // Make sure all comment lines prior to the start line are commented
 // and determine if the start line is still in a multi line comment
 if (getMultiLineComment()) {
  setInsideMultiLineComment(commentLinesBefore(content, startLine));
 }
 // Do the actual highlighting
 for (int i = startLine; i <= endLine; i++) {
  applyHighlighting(content, i);
 }
 // Resolve highlighting to the next end multi line delimiter
 if (isMultiLineComment()) {
  commentLinesAfter(content, endLine);
 } else {
  highlightLinesAfter(content, endLine);
 }
}
origin: Waikato/weka-trunk

/**
 * Determine how many lines have been changed, then apply highlighting to each
 * line.
 * 
 * @param offset the offset of the changed lines
 * @param length the length of the change
 * @throws BadLocationException if offset is invalid
 */
public void processChangedLines(int offset, int length)
 throws BadLocationException {
 String content = m_Self.getText(0, m_Self.getLength());
 // The lines affected by the latest document update
 int startLine = m_RootElement.getElementIndex(offset);
 int endLine = m_RootElement.getElementIndex(offset + length);
 // Make sure all comment lines prior to the start line are commented
 // and determine if the start line is still in a multi line comment
 if (getMultiLineComment()) {
  setInsideMultiLineComment(commentLinesBefore(content, startLine));
 }
 // Do the actual highlighting
 for (int i = startLine; i <= endLine; i++) {
  applyHighlighting(content, i);
 }
 // Resolve highlighting to the next end multi line delimiter
 if (isMultiLineComment()) {
  commentLinesAfter(content, endLine);
 } else {
  highlightLinesAfter(content, endLine);
 }
}
weka.gui.scriptingSyntaxDocumentcommentLinesAfter

Javadoc

Highlight comment lines to matching end delimiter.

Popular methods of SyntaxDocument

  • <init>
    Initializes the document.
  • addKeyword
    Associates a keyword with a particular formatting style.
  • addKeywords
    Associates the keywords with a particular formatting style.
  • addMatchingBlockEnd
    Adds the matching block end.
  • applyHighlighting
    Parse the line to determine the appropriate highlighting.
  • checkForTokens
    Parse the line for tokens to highlight.
  • commentLinesBefore
    Highlight lines when a multi line comment is still 'open' (ie. matching end delimiter has not yet be
  • endingMultiLineComment
    Does this line contain the end delimiter of a multi-line comment.
  • escapeQuote
    Escapes the quote delimiter.
  • getBackgroundColor
    Returns the background color.
  • getKeywordFormatting
    Gets the formatting for a keyword.
  • getLength
  • getKeywordFormatting,
  • getLength,
  • getLine,
  • getMultiLineComment,
  • getMultiLineCommentEnd,
  • getMultiLineCommentStart,
  • getOtherToken,
  • getQuoteToken,
  • getSingleLineCommentStart

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • findViewById (Activity)
  • getContentResolver (Context)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now