Codota Logo
NbDocument.markNormal
Code IndexAdd Codota to your IDE (free)

How to use
markNormal
method
in
org.openide.text.NbDocument

Best Java code snippets using org.openide.text.NbDocument.markNormal (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: org.netbeans.api/org-openide-text

NbDocument.markNormal(doc, pos.getOffset());
origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

/** Refreshes the current line.
 *
 * @deprecated since 1.20. */
synchronized void refreshState () {
  StyledDocument doc = pos.getCloneableEditorSupport ().getDocument ();
  if (doc != null) {
    // the document is in memory, mark the state
    if (docL != null) {
      doc.removeDocumentListener (docL);
    }
    // error line
    if (error) {
      NbDocument.markError (doc, pos.getOffset ());
      doc.addDocumentListener (docL = org.openide.util.WeakListeners.document (listener, doc));
      return;
    }
    // current line
    if (current) {
      NbDocument.markCurrent (doc, pos.getOffset ());
      return;
    }
    // breakpoint line
    if (breakpoint) {
      NbDocument.markBreakpoint (doc, pos.getOffset ());
      return;
    }
    NbDocument.markNormal (doc, pos.getOffset ());
    return;
  }
}
origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

/** Refreshes the current line.
 *
 * @deprecated since 1.20. */
synchronized void refreshState () {
  StyledDocument doc = pos.getCloneableEditorSupport ().getDocument ();
  if (doc != null) {
    // the document is in memory, mark the state
    if (docL != null) {
      doc.removeDocumentListener (docL);
    }
    // error line
    if (error) {
      NbDocument.markError (doc, pos.getOffset ());
      doc.addDocumentListener (docL = org.openide.util.WeakListeners.document (listener, doc));
      return;
    }
    // current line
    if (current) {
      NbDocument.markCurrent (doc, pos.getOffset ());
      return;
    }
    // breakpoint line
    if (breakpoint) {
      NbDocument.markBreakpoint (doc, pos.getOffset ());
      return;
    }
    NbDocument.markNormal (doc, pos.getOffset ());
    return;
  }
}
org.openide.textNbDocumentmarkNormal

Javadoc

Mark a line as normal (no special attributes). This uses the dummy style named #NORMAL_STYLE_NAME. This method should be used to undo the effect of #markBreakpoint, #markError and #markCurrent.

Popular methods of NbDocument

  • findLineNumber
    For given document and an offset, find the line number.
  • findLineOffset
    Finds offset of the beginning of a line.
  • findLineColumn
    Finds column number given an offset.
  • findLineRootElement
    Find the root element of all lines. All conforming NetBeans documents should return a valid element.
  • runAtomic
    Locks the document to have exclusive access to it. Documents implementing Lockable can specify exact
  • createPosition
    Creates position with a bias. If the bias is javax.swing.text.Position.Bias#Backwardthen if an inser
  • findRecentEditorPane
    Gets recently selected editor pane opened by editor cookie Can be called from AWT event thread only.
  • addAnnotation
    Add annotation to the document. For annotation of whole line the length parameter can be ignored (sp
  • removeAnnotation
    Removal of added annotation. Note: since 6.35 the requests (delegated to document) are no longer rep
  • checkDocParameter
    Helper method for checking document parameter validity.
  • findPageable
    Find a way to print a given document. If the document implements the correct interface(s) then the d
  • getDocument
    Get the document associated with a file.Method will throw org.openide.util.UserQuestionExceptionexce
  • findPageable,
  • getDocument,
  • markBreakpoint,
  • markCurrent,
  • markError,
  • runAtomicAsUser,
  • doOpen,
  • doShow,
  • getEditToBeUndoneRedoneOfType

Popular in Java

  • Updating database using SQL prepared statement
  • putExtra (Intent)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • orElseThrow (Optional)
  • Kernel (java.awt.image)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now