diff options
| author | Lars Vogel | 2014-11-14 11:19:29 +0000 |
|---|---|---|
| committer | Lars Vogel | 2014-11-17 11:55:22 +0000 |
| commit | c0269496de051b9ebfdd85bfba470669a0365eea (patch) | |
| tree | 7494c60be3ab418466853d8a4622b5cd5a475f2e | |
| parent | dc17140c04334851f053446666f0d0f8033b90cb (diff) | |
| download | eclipse.platform.ui-c0269496de051b9ebfdd85bfba470669a0365eea.tar.gz eclipse.platform.ui-c0269496de051b9ebfdd85bfba470669a0365eea.tar.xz eclipse.platform.ui-c0269496de051b9ebfdd85bfba470669a0365eea.zip | |
Bug 418661 - [Metadata] Get rid of compile warnings in platform projects
in official build
Mini patch to fix warnings in getEarlyActivatedPlugins()
Change-Id: Ifddafed649f6fbc12c5d526d02a9e964b12622ff
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
| -rw-r--r-- | bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java index c71ef1a3f8e..ad562a65dd5 100644 --- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java +++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java @@ -12,7 +12,7 @@ * Tristan Hume - <trishume@gmail.com> - * Fix for Bug 2369 [Workbench] Would like to be able to save workspace without exiting * Implemented workbench auto-save to correctly restore state in case of crash. - * Lars Vogel <Lars.Vogel@vogella.com> - Bug 422533, 440136, 445724, 366708 + * Lars Vogel <Lars.Vogel@vogella.com> - Bug 422533, 440136, 445724, 366708, 418661 * Terry Parker <tparker@google.com> - Bug 416673 * Sergey Prigogin <eclipse.sprigogin@gmail.com> - Bug 438324 *******************************************************************************/ @@ -2629,16 +2629,16 @@ UIEvents.Context.TOPIC_CONTEXT, IExtensionPoint point = Platform.getExtensionRegistry().getExtensionPoint( PlatformUI.PLUGIN_ID, IWorkbenchRegistryConstants.PL_STARTUP); IExtension[] extensions = point.getExtensions(); - ArrayList pluginIds = new ArrayList(extensions.length); + ArrayList<String> pluginIds = new ArrayList<String>(extensions.length); for (int i = 0; i < extensions.length; i++) { - String id = extensions[i].getNamespace(); + String id = extensions[i].getNamespaceIdentifier(); if (!pluginIds.contains(id)) { pluginIds.add(id); } } ContributionInfo[] result = new ContributionInfo[pluginIds.size()]; for (int i = 0; i < result.length; i++) { - result[i] = new ContributionInfo((String) pluginIds.get(i), + result[i] = new ContributionInfo(pluginIds.get(i), ContributionInfoMessages.ContributionInfo_EarlyStartupPlugin, null); } |
