use of org.eclipse.ui.internal.dialogs.AboutPluginsDialog in project eclipse.platform.ui by eclipse-platform.
the class UIDialogsAuto method testAboutPlugins.
@Test
public void testAboutPlugins() {
Dialog dialog = null;
dialog = new AboutPluginsDialog(getShell(), "", new Bundle[] { WorkbenchPlugin.getDefault().getBundle() }, WorkbenchMessages.AboutFeaturesDialog_pluginInfoTitle, "Title", IWorkbenchHelpContextIds.ABOUT_FEATURES_PLUGINS_DIALOG);
DialogCheck.assertDialogTexts(dialog);
}
use of org.eclipse.ui.internal.dialogs.AboutPluginsDialog in project eclipse.platform.ui by eclipse-platform.
the class AboutFeaturesPage method handlePluginInfoPressed.
/**
* The Plugins button was pressed. Open an about dialog on the plugins for the
* selected feature.
*/
private void handlePluginInfoPressed() {
TableItem[] items = table.getSelection();
if (items.length <= 0) {
return;
}
AboutBundleGroupData info = (AboutBundleGroupData) items[0].getData();
IBundleGroup bundleGroup = info.getBundleGroup();
Bundle[] bundles = bundleGroup == null ? new Bundle[0] : bundleGroup.getBundles();
AboutPluginsDialog d = new AboutPluginsDialog(getShell(), getProductName(), bundles, WorkbenchMessages.AboutFeaturesDialog_pluginInfoTitle, NLS.bind(WorkbenchMessages.AboutFeaturesDialog_pluginInfoMessage, bundleGroup.getIdentifier()), IWorkbenchHelpContextIds.ABOUT_FEATURES_PLUGINS_DIALOG);
d.open();
}
Aggregations