Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/wizards/AbstractConfigWizard.java')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/wizards/AbstractConfigWizard.java20
1 files changed, 13 insertions, 7 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/wizards/AbstractConfigWizard.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/wizards/AbstractConfigWizard.java
index 63dca42bb..ea8a1c17a 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/wizards/AbstractConfigWizard.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/wizards/AbstractConfigWizard.java
@@ -12,8 +12,8 @@ package org.eclipse.tcf.te.tcf.ui.wizards;
import org.eclipse.core.runtime.Assert;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.tcf.te.runtime.interfaces.properties.IPropertiesContainer;
-import org.eclipse.tcf.te.runtime.properties.PropertiesContainer;
import org.eclipse.tcf.te.runtime.services.ServiceManager;
+import org.eclipse.tcf.te.runtime.services.interfaces.IService;
import org.eclipse.tcf.te.runtime.stepper.interfaces.IStepContext;
import org.eclipse.tcf.te.runtime.stepper.interfaces.IStepperService;
import org.eclipse.tcf.te.runtime.stepper.job.StepperJob;
@@ -74,14 +74,20 @@ public abstract class AbstractConfigWizard extends NewTargetWizard {
if (!autoConnect) return;
// Connect the connection
- IStepperService service = ServiceManager.getInstance().getService(peerModel, IStepperService.class);
- if (service != null) {
- String stepGroupId = service.getStepGroupId(peerModel, IStepperServiceOperations.CONNECT);
- IStepContext stepContext = service.getStepContext(peerModel, IStepperServiceOperations.CONNECT);
- String name = service.getStepGroupName(peerModel, IStepperServiceOperations.CONNECT);
+ IService[] services = ServiceManager.getInstance().getServices(peerModel, IStepperService.class, false);
+ IStepperService stepperService = null;
+ for (IService service : services) {
+ if (service instanceof IStepperService && ((IStepperService)service).isHandledOperation(peerModel, IStepperServiceOperations.CONNECT)) {
+ stepperService = (IStepperService)service;
+ }
+ }
+ if (stepperService != null) {
+ String stepGroupId = stepperService.getStepGroupId(peerModel, IStepperServiceOperations.CONNECT);
+ IStepContext stepContext = stepperService.getStepContext(peerModel, IStepperServiceOperations.CONNECT);
+ String name = stepperService.getStepGroupName(peerModel, IStepperServiceOperations.CONNECT);
+ IPropertiesContainer data = stepperService.getStepData(peerModel, IStepperServiceOperations.CONNECT);
if (stepGroupId != null && stepContext != null) {
- IPropertiesContainer data = new PropertiesContainer();
StepperJob job = new StepperJob(name != null ? name : "", //$NON-NLS-1$
stepContext,
data,

Back to the top