public class Utilities
extends java.lang.Object
| Constructor and Description |
|---|
Utilities() |
| Modifier and Type | Method and Description |
|---|---|
static int[] |
getIdentifierBlock(BaseDocument doc,
int pos)
jbf simple implementation
|
static int[] |
getIdentifierBlock(javax.swing.text.JTextComponent c,
int offset)
Get the identifier around the given position or null if there's no identifier
around the given position.
|
static boolean |
isMac()
from NETBEANS/openide/util/src/org/openide/util/Utilities.java
|
static void |
openBrowser(java.lang.String url)
open the URL in a browser.
|
public static boolean isMac()
public static void openBrowser(java.lang.String url)
public static int[] getIdentifierBlock(javax.swing.text.JTextComponent c,
int offset)
throws javax.swing.text.BadLocationException
c - JTextComponent to work onoffset - position in document - usually the caret.getDot()javax.swing.text.BadLocationExceptionpublic static int[] getIdentifierBlock(BaseDocument doc, int pos) throws javax.swing.text.BadLocationException
doc - pos - javax.swing.text.BadLocationException