Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 257328 Details for
Bug 472778
Launch validation doesn't find plugin needed in two versions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Updated patch
472778_launch_val2.patch (text/plain), 2.16 KB, created by
Vikas Chandra
on 2015-10-17 06:53:19 EDT
(
hide
)
Description:
Updated patch
Filename:
MIME Type:
Creator:
Vikas Chandra
Created:
2015-10-17 06:53:19 EDT
Size:
2.16 KB
patch
obsolete
>diff --git a/ui/org.eclipse.pde.launching/src/org/eclipse/pde/internal/launching/launcher/BundleLauncherHelper.java b/ui/org.eclipse.pde.launching/src/org/eclipse/pde/internal/launching/launcher/BundleLauncherHelper.java >index 876ff69..66908c2 100644 >--- a/ui/org.eclipse.pde.launching/src/org/eclipse/pde/internal/launching/launcher/BundleLauncherHelper.java >+++ b/ui/org.eclipse.pde.launching/src/org/eclipse/pde/internal/launching/launcher/BundleLauncherHelper.java >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2007, 2013 IBM Corporation and others. >+ * Copyright (c) 2007, 2015 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -177,6 +177,7 @@ > > //remove conflicting duplicates - if they have same version or both are singleton > HashMap<String, IPluginModelBase> pluginMap = new HashMap<String, IPluginModelBase>(); >+ Set<IPluginModelBase> pluginSet = new HashSet<IPluginModelBase>(); > List<IPluginModelBase> workspaceModels = null; > for (Iterator<IPluginModelBase> iterator = launchPlugins.iterator(); iterator.hasNext();) { > IPluginModelBase model = iterator.next(); >@@ -187,16 +188,17 @@ > if (workspaceModels == null) > workspaceModels = Arrays.asList(PluginRegistry.getWorkspaceModels()); > if (!workspaceModels.contains(existing)) { //if existing model is external >- pluginMap.put(id, model); // launch the workspace model >+ pluginSet.add(model);// launch the workspace model > continue; > } > } > } >- pluginMap.put(id, model); >+ pluginSet.add(model); > } >+ pluginMap.clear(); > > // Create the start levels for the selected plugins and add them to the map >- for (Iterator<IPluginModelBase> iterator = pluginMap.values().iterator(); iterator.hasNext();) { >+ for (Iterator<IPluginModelBase> iterator = pluginSet.iterator(); iterator.hasNext();) { > IPluginModelBase model = iterator.next(); > addBundleToMap(map, model, "default:default"); //$NON-NLS-1$ > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 472778
:
255584
|
257296
| 257328