use of org.eclipse.ui.activities.IIdentifier in project dbeaver by dbeaver.
the class DatabaseLaunchContributionFactory method createContributionItems.
@Override
public void createContributionItems(IServiceLocator serviceLocator, IContributionRoot additions) {
IWorkbenchActivitySupport activitySupport = PlatformUI.getWorkbench().getActivitySupport();
String identifierId = createContributionIdentifier();
IIdentifier identifier = activitySupport.getActivityManager().getIdentifier(identifierId);
if (!identifier.isEnabled()) {
return;
}
MenuManager menuManager = new MenuManager(text, imageDescriptor, id);
DatabaseLaunchContributionItem item = createContributionItem();
item.setVisible(true);
menuManager.add(item);
additions.addContributionItem(menuManager, null);
}
use of org.eclipse.ui.activities.IIdentifier in project dbeaver by serge-rider.
the class DatabaseLaunchContributionFactory method createContributionItems.
@Override
public void createContributionItems(IServiceLocator serviceLocator, IContributionRoot additions) {
IWorkbenchActivitySupport activitySupport = PlatformUI.getWorkbench().getActivitySupport();
String identifierId = createContributionIdentifier();
IIdentifier identifier = activitySupport.getActivityManager().getIdentifier(identifierId);
if (!identifier.isEnabled()) {
return;
}
MenuManager menuManager = new MenuManager(text, imageDescriptor, id);
DatabaseLaunchContributionItem item = createContributionItem();
item.setVisible(true);
menuManager.add(item);
additions.addContributionItem(menuManager, null);
}
Aggregations