Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 212763
Collapse All | Expand All

(-)src/org/eclipse/pde/internal/ui/wizards/imports/PluginImportWizard.java (-10 / +12 lines)
Lines 10-16 Link Here
10
 *******************************************************************************/
10
 *******************************************************************************/
11
package org.eclipse.pde.internal.ui.wizards.imports;
11
package org.eclipse.pde.internal.ui.wizards.imports;
12
12
13
import java.util.*;
13
import java.util.HashSet;
14
import org.eclipse.core.runtime.*;
14
import org.eclipse.core.runtime.*;
15
import org.eclipse.core.runtime.jobs.Job;
15
import org.eclipse.core.runtime.jobs.Job;
16
import org.eclipse.debug.core.*;
16
import org.eclipse.debug.core.*;
Lines 108-124 Link Here
108
				if (configuration == null)
108
				if (configuration == null)
109
					continue;
109
					continue;
110
				try {
110
				try {
111
					Map workspaceBundleMap = BundleLauncherHelper.getWorkspaceBundleMap(configuration, null);
111
					ILaunchConfigurationType type = configuration.getType();
112
					for (Iterator iter = workspaceBundleMap.keySet().iterator(); iter.hasNext();) {
112
					if (type.getIdentifier().startsWith("org.eclipse.pde.ui")) { //$NON-NLS-1$
113
						IPluginModelBase bm = (IPluginModelBase) iter.next();
113
						IPluginModelBase[] bundles = BundleLauncherHelper.getWorkspaceBundles(configuration);
114
						BundleDescription description = bm.getBundleDescription();
114
						for (int j = 0; j < bundles.length; ++j) {
115
						if (description != null) {
115
							BundleDescription description = bundles[j].getBundleDescription();
116
							if (imported.contains(description.getSymbolicName())) {
116
							if (description != null) {
117
								++count;
117
								if (imported.contains(description.getSymbolicName())) {
118
								break;
118
									++count;
119
									break;
120
								}
119
							}
121
							}
120
						}
121
122
123
						}
122
					}
124
					}
123
				} catch (CoreException e) {
125
				} catch (CoreException e) {
124
					++count;
126
					++count;

Return to bug 212763