|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openide.TopManager
Heart of the whole IDE.
Provides initial access to all features in the system.
Use getDefault()
to obtain the default instance in the system.
Inner Class Summary | |
static class |
TopManager.NodeOperation
Provides common operations on nodes. |
Field Summary | |
static String |
PROP_DEBUGGER
Name of property for the debugger. |
static String |
PROP_GLOBAL_KEYMAP
Name of property for the global keymap. |
static String |
PROP_PLACES
Name of property for the Places object. |
Constructor Summary | |
TopManager()
|
Method Summary | |
abstract void |
addPropertyChangeListener(PropertyChangeListener l)
Add a listener to property changes in the TopManager. |
abstract Dialog |
createDialog(DialogDescriptor descriptor)
Get a new standard dialog. |
abstract ClassLoader |
currentClassLoader()
Provide access to the user class loader. |
abstract void |
exit()
Exit the IDE. |
abstract ActionManager |
getActionManager()
Specialized manager that provides information about actions. |
abstract ExClipboard |
getClipboard()
Get global system clipboard. |
abstract CompilationEngine |
getCompilationEngine()
Get default compilation engine. |
abstract ControlPanel |
getControlPanel()
Deprecated. Not useful. |
abstract Debugger |
getDebugger()
Get the default debugger. |
static TopManager |
getDefault()
Get the default top manager for the system. |
abstract ErrorManager |
getErrorManager()
Get the exception manager for the IDE. |
abstract ExecutionEngine |
getExecutionEngine()
Get default execution engine. |
abstract Keymap |
getGlobalKeymap()
Get global keyboard-shortcut map. |
InputOutput |
getIO(String name)
Support reading from and writing to a specific tab on the Output Window. |
abstract InputOutput |
getIO(String name,
boolean newIO)
Support reading from and writing to a specific tab on the Output Window. |
abstract DataLoaderPool |
getLoaderPool()
Get default data loader pool. |
abstract TopManager.NodeOperation |
getNodeOperation()
Get default handler for node customization and exploration. |
abstract Places |
getPlaces()
Get object providing locations of important places in the system. |
abstract Repository |
getRepository()
Get the Repository of user and system files. |
abstract ServiceType.Registry |
getServices()
Getter for registry of services registered to the system. |
abstract OutputWriter |
getStdOut()
Support writing to the Output Window on the main tab. |
abstract WindowManager |
getWindowManager()
Get the window manager for the IDE. |
static boolean |
isInitialized()
Test to check whether the top manager is initilized or not. |
abstract Object |
notify(NotifyDescriptor descriptor)
Notify the user of something in a message box, possibly with feedback. |
void |
notifyException(Throwable ex)
Notify the user of an otherwise unhandled Java exception. |
abstract void |
openProject(ProjectCookie project)
Opens specified project. |
abstract void |
removePropertyChangeListener(PropertyChangeListener l)
Remove a listener to property changes in the TopManager. |
abstract void |
saveAll()
Save all opened objects. |
static void |
setDefault(TopManager tm)
Deprecated. Useless. |
abstract void |
setStatusText(String text)
Show text in the IDE's status line. |
abstract void |
showHelp(HelpCtx helpCtx)
Display help. |
abstract void |
showUrl(URL url)
Browse a document named by some URL. |
abstract ClassLoader |
systemClassLoader()
Provide access to the system class loader. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String PROP_DEBUGGER
public static final String PROP_GLOBAL_KEYMAP
public static final String PROP_PLACES
Constructor Detail |
public TopManager()
Method Detail |
public static TopManager getDefault()
public static void setDefault(TopManager tm) throws SecurityException
public static boolean isInitialized()
public abstract Repository getRepository()
public abstract void showHelp(HelpCtx helpCtx)
helpCtx
- help context to be displayed in help windowpublic abstract void showUrl(URL url)
HtmlBrowser
provides more control in certain cases.url
- URL of WWW or local document to be shownHtmlBrowser
public abstract OutputWriter getStdOut()
public InputOutput getIO(String name)
name
- desired name of the tabInputOutput
class for accessing the new tabpublic abstract InputOutput getIO(String name, boolean newIO)
name
- desired name of the tabnewIO
- if true new InputOutput
is returned else already used InputOutput
is returned.InputOutput
class for accessing the new tabpublic abstract ExClipboard getClipboard()
public abstract ControlPanel getControlPanel()
public abstract ServiceType.Registry getServices()
public abstract ActionManager getActionManager()
public void notifyException(Throwable ex)
The default implementation uses notify(org.openide.NotifyDescriptor)
to alert the user at a critical level.
ex
- the exceptionpublic abstract Object notify(NotifyDescriptor descriptor)
To support both GUI and non-GUI use, this method may be called from any thread (providing you are not holding any locks), and will block the caller's thread. In GUI mode, it will be run in the AWT event thread automatically. If you wish to hold locks, or do not need the result object immediately or at all, please make this call asynchronously (e.g. from the request processor).
nd
- description of the notificationpublic abstract Dialog createDialog(DialogDescriptor descriptor)
Do not cache the resulting dialog if it is modal and try to reuse it! Always create a new dialog using this method if you need to show a dialog again. Otherwise previously closed windows can reappear.
descriptor
- general description of the dialogpublic abstract void setStatusText(String text)
text
- the text to be shownpublic abstract Keymap getGlobalKeymap()
public abstract CompilationEngine getCompilationEngine()
public abstract ExecutionEngine getExecutionEngine()
public abstract Debugger getDebugger() throws DebuggerNotFoundException
null
)DebuggerNotFoundException
- in case of a problem (for example, there is no debugger installed)public abstract void saveAll()
public abstract void exit()
java.lang.System#exit
fails, or if at least one component of the
system refuses to exit (because it cannot be properly shut down).public abstract DataLoaderPool getLoaderPool()
public abstract TopManager.NodeOperation getNodeOperation()
public abstract Places getPlaces()
public abstract void openProject(ProjectCookie project) throws IOException, UserCancelException
IOException
- if error occurs accessing the projectUserCancelException
- if the selection is interrupted by the userpublic abstract ErrorManager getErrorManager()
public abstract WindowManager getWindowManager()
TopComponent
s.
It is usually used only from the org.openide.windows package.
public abstract ClassLoader systemClassLoader()
The class loader may change from call to call, for example due to a module installation.
public abstract ClassLoader currentClassLoader()
system one
, as
well as user classes in the Repository
.
The class loader may change from call to call, as it is affected by module and repository operations.
The returned classloader will reflect the current state of the
filesystem, taking into account modifications of .class
files.
public abstract void addPropertyChangeListener(PropertyChangeListener l)
l
- the listener to addpublic abstract void removePropertyChangeListener(PropertyChangeListener l)
l
- the listener to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |