|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fife.ui.autocomplete.CompletionProviderBase
org.fife.ui.autocomplete.LanguageAwareCompletionProvider
org.fife.rsta.ac.java.JavaCompletionProvider
public class JavaCompletionProvider
Completion provider for the Java programming language.
| Field Summary |
|---|
| Fields inherited from class org.fife.ui.autocomplete.CompletionProviderBase |
|---|
EMPTY_STRING |
| Constructor Summary | |
|---|---|
JavaCompletionProvider()
Constructor. |
|
JavaCompletionProvider(JarManager jarManager)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addJar(JarInfo info)
Adds a jar to the "build path." |
void |
clearJars()
Removes all jars from the "build path." |
String |
getAlreadyEnteredText(JTextComponent comp)
Defers to the source-analyzing completion provider. |
CompilationUnit |
getCompilationUnit()
|
List |
getCompletionsAt(JTextComponent tc,
Point p)
|
List |
getJars()
Returns the jars on the "build path." |
List |
getParameterizedCompletions(JTextComponent tc)
|
boolean |
removeJar(File jar)
Removes a jar from the "build path." |
void |
setCompilationUnit(CompilationUnit cu)
|
| Methods inherited from class org.fife.ui.autocomplete.CompletionProviderBase |
|---|
getCompletions, getListCellRenderer, getParameterChoicesProvider, getParent, setAutoActivationRules, setListCellRenderer, setParameterChoicesProvider, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavaCompletionProvider()
public JavaCompletionProvider(JarManager jarManager)
jarManager - The jar manager to use when looking up completion
choices. This can be passed in to share a single jar manager
across multiple RSyntaxTextAreas. This may also be
null, in which case this completion provider will
have a unique JarManager.| Method Detail |
|---|
public void addJar(JarInfo info)
throws IOException
info - The jar to add. If this is null, then
the current JVM's main JRE jar (rt.jar, or classes.jar on OS X)
will be added. If this jar has already been added, adding it
again will do nothing (except possibly update its attached source
location).
IOException - If an IO error occurs.removeJar(File),
getJars()public void clearJars()
removeJar(File),
addJar(JarInfo),
getJars()public String getAlreadyEnteredText(JTextComponent comp)
getAlreadyEnteredText in interface CompletionProvidergetAlreadyEnteredText in class LanguageAwareCompletionProviderpublic CompilationUnit getCompilationUnit()
public List getCompletionsAt(JTextComponent tc,
Point p)
getCompletionsAt in interface CompletionProvidergetCompletionsAt in class LanguageAwareCompletionProviderpublic List getJars()
JarInfos. Modifying a JarInfo in
this list will have no effect on this completion provider; in
order to do that, you must re-add the jar via
addJar(JarInfo). If there are no jars on the
"build path," this will be an empty list.addJar(JarInfo)public List getParameterizedCompletions(JTextComponent tc)
getParameterizedCompletions in interface CompletionProvidergetParameterizedCompletions in class LanguageAwareCompletionProviderpublic boolean removeJar(File jar)
jar - The jar to remove.
false
if the jar was not on the build path.addJar(JarInfo)public void setCompilationUnit(CompilationUnit cu)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||