public interface IStartup
Modifier and Type | Method and Description |
---|---|
void |
earlyStartup()
Will be called in a separate thread after the workbench initializes.
|
void earlyStartup()
Note that most workbench methods must be called in the UI thread
since they may access SWT. For example, to obtain the current workbench
window, use:
final IWorkbench workbench = PlatformUI.getWorkbench();
workbench.getDisplay().asyncExec(new Runnable() {
public void run() {
IWorkbenchWindow window = workbench.getActiveWorkbenchWindow();
if (window != null) {
// do something
}
}
});
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.