org.das2.jythoncompletion.nbadapt.Utilities

Utilities( )


getIdentifierBlock

getIdentifierBlock( javax.swing.text.JTextComponent c, int offset ) → int[]

Get the identifier around the given position or null if there's no identifier around the given position. The identifier is not verified against SyntaxSupport.isIdentifier().

Parameters

c - JTextComponent to work on
offset - position in document - usually the caret.getDot()

Returns:

the block (starting and ending position) enclosing the identifier or null if no identifier was found from NETBEANS/libsrc/org/netbeans/editor/Utilities.java

[search for examples] [view on GitHub] [view on old javadoc] [view source]

getIdentifierBlock( org.das2.jythoncompletion.nbadapt.BaseDocument doc, int pos ) → int[]

isMac

isMac( ) → boolean

from NETBEANS/openide/util/src/org/openide/util/Utilities.java

Returns:

boolean

[search for examples] [view on GitHub] [view on old javadoc] [view source]


openBrowser

openBrowser( String url ) → void

open the URL in a browser. Borrowed from http://www.centerkey.com/java/browser/.

Parameters

url - a String

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]