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 262840
Collapse All | Expand All

(-)ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationPresentationManager.java (-10 / +7 lines)
Lines 238-258 Link Here
238
					delegate = config.getType().getPreferredDelegate(modes);
238
					delegate = config.getType().getPreferredDelegate(modes);
239
				}
239
				}
240
				Set delegateSet = tabs[i].getDelegateSet();
240
				Set delegateSet = tabs[i].getDelegateSet();
241
				if (delegate == null) {
242
                    ILaunchDelegate[] delegates = config.getType().getDelegates(modes);
243
                    if (delegates.length == 1) {
244
                        delegate = delegates[0];
245
                    }
246
				}
247
				
241
				if(delegate != null) {
248
				if(delegate != null) {
242
					if(delegateSet.isEmpty() || delegateSet.contains(delegate.getId())) {
249
					if(delegateSet.isEmpty() || delegateSet.contains(delegate.getId())) {
243
						set.add(tabs[i]);
250
						set.add(tabs[i]);
244
					}
251
					}
245
				}
252
				}
246
				else {
247
					//otherwise filter based on the collection of delegates for the modes
248
					ILaunchDelegate[] delegates = config.getType().getDelegates(modes);
249
					for(int j = 0; j < delegates.length; j++) {
250
						if(delegateSet.size() == 0 || delegateSet.contains(delegates[j].getId())) {
251
							//associated with all modes and tab groups or only specific ones if indicated
252
							set.add(tabs[i]);
253
						}
254
					}
255
				}
256
			}
253
			}
257
		}
254
		}
258
		return (LaunchConfigurationTabExtension[]) set.toArray(new LaunchConfigurationTabExtension[set.size()]);
255
		return (LaunchConfigurationTabExtension[]) set.toArray(new LaunchConfigurationTabExtension[set.size()]);

Return to bug 262840