org.eclipse.ui.activities.IWorkbenchActivitySupport Java Examples

The following examples show how to use org.eclipse.ui.activities.IWorkbenchActivitySupport. 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: CoolbarToolControl.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
@PreDestroy
public void dispose(final IWorkbenchActivitySupport activitySupport) {
    isRegistered = false;
    if (toolbarContainer != null) {
        toolbarContainer.dispose();
    }
}
 
Example #2
Source File: CleanupHelper.java    From gama with GNU General Public License v3.0 4 votes vote down vote up
static void run() {
	final IWorkbenchActivitySupport was = PlatformUI.getWorkbench().getActivitySupport();
	was.setEnabledActivityIds(new HashSet<>());
}
 
Example #3
Source File: ActivityPropertyTester.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
protected IActivityManager getActivityManager(final IWorkbench workbench) {
    final IWorkbenchActivitySupport workbenchActivitySupport = workbench.getActivitySupport();
    final IActivityManager activityManager = workbenchActivitySupport.getActivityManager();
    return activityManager;
}