org.eclipse.ui.IPerspectiveListener Java Examples
The following examples show how to use
org.eclipse.ui.IPerspectiveListener.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: UIHelper.java From tlaplus with MIT License | 4 votes |
/** * Attaches the perspective listener to active window * * @param listener */ public static void addPerspectiveListener(IPerspectiveListener listener) { IWorkbench workbench = Activator.getDefault().getWorkbench(); IWorkbenchWindow window = workbench.getActiveWorkbenchWindow(); window.addPerspectiveListener(listener); }