public class BrowserConfig extends Object implements ClasspathComponent
Constructor and Description |
---|
BrowserConfig() |
Modifier and Type | Method and Description |
---|---|
void |
addClasspathArchive(String archiveName)
Add a classpath entry for an archive.
|
void |
addClasspathChangeListener(ClasspathChangeListener listener)
Add a ClasspathChangeListener.
|
void |
addClasspathDirectory(String directoryName)
Add a classpath entry for a directory.
|
void |
addClasspathEntry(ClasspathEntry entry)
Add a classpath entry.
|
void |
addRuntimeLib()
Add the rt.jar archive of the JRE used by the bytecode browser to the classpath.
|
FindResult |
findClass(String className)
Find a class by name within thsi classpath component.
|
List |
getClasspath()
Get the list of ClasspathEntry objects that define the classpath.
|
MDIConfig |
getMDIConfig()
Get the associated MDI configuration object.
|
void |
mergeClassesIntoTree(DefaultTreeModel model,
boolean reset)
Merge all classes in this classpath component into the supplied tree.
|
void |
removeClasspathChangeListener(ClasspathChangeListener listener)
Remove a ClasspathChangeListener.
|
void |
removeClasspathEntry(ClasspathEntry entry)
Remove a classpath entry.
|
void |
setClasspath(List classpath)
Set the list of ClasspathEntry objects that define the classpath.
|
void |
setMDIConfig(MDIConfig mdiConfig)
Set the associated MDI configuration object.
|
public MDIConfig getMDIConfig()
public void setMDIConfig(MDIConfig mdiConfig)
mdiConfig
- the MDIConfig object.public List getClasspath()
public void setClasspath(List classpath)
classpath
- the listpublic void addClasspathChangeListener(ClasspathChangeListener listener)
ClasspathComponent
addClasspathChangeListener
in interface ClasspathComponent
listener
- the listenerpublic void removeClasspathChangeListener(ClasspathChangeListener listener)
ClasspathComponent
removeClasspathChangeListener
in interface ClasspathComponent
listener
- the listenerpublic void addClasspathDirectory(String directoryName)
directoryName
- the name of the directory.public void addClasspathArchive(String archiveName)
archiveName
- the path of he archive.public void addClasspathEntry(ClasspathEntry entry)
entry
- the entry.public void removeClasspathEntry(ClasspathEntry entry)
entry
- the entry.public void addRuntimeLib()
public FindResult findClass(String className)
ClasspathComponent
findClass
in interface ClasspathComponent
className
- the name of the classpublic void mergeClassesIntoTree(DefaultTreeModel model, boolean reset)
ClasspathComponent
mergeClassesIntoTree
in interface ClasspathComponent
model
- the tree model.reset
- whether this is an incremental operation or part of a reset.
For a reset, no change events will be fired on the tree model.