debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/wizard/TRKConnectionWizardPage.java
equal
deleted
inserted
replaced
21 import com.nokia.carbide.remoteconnections.interfaces.IClientServiceSiteUI2; |
21 import com.nokia.carbide.remoteconnections.interfaces.IClientServiceSiteUI2; |
22 import com.nokia.carbide.remoteconnections.interfaces.IClientServiceSiteUI2.IListener; |
22 import com.nokia.carbide.remoteconnections.interfaces.IClientServiceSiteUI2.IListener; |
23 import com.nokia.cdt.internal.debug.launch.LaunchPlugin; |
23 import com.nokia.cdt.internal.debug.launch.LaunchPlugin; |
24 import com.nokia.cpp.internal.api.utils.core.Check; |
24 import com.nokia.cpp.internal.api.utils.core.Check; |
25 |
25 |
|
26 import org.eclipse.core.runtime.IStatus; |
26 import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy; |
27 import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy; |
27 import org.eclipse.jface.dialogs.Dialog; |
28 import org.eclipse.jface.dialogs.Dialog; |
28 import org.eclipse.jface.wizard.WizardPage; |
29 import org.eclipse.jface.wizard.WizardPage; |
29 import org.eclipse.swt.SWT; |
30 import org.eclipse.swt.SWT; |
30 import org.eclipse.swt.layout.GridLayout; |
31 import org.eclipse.swt.layout.GridLayout; |
85 } |
86 } |
86 } |
87 } |
87 |
88 |
88 protected void validatePage() { |
89 protected void validatePage() { |
89 setErrorMessage(null); |
90 setErrorMessage(null); |
|
91 setMessage(null); |
90 setPageComplete(true); |
92 setPageComplete(true); |
91 connection = clientSiteUI.getSelectedConnection(); |
93 IStatus status = clientSiteUI.getSelectionStatus(); |
92 if (connection == null) { |
94 if (!status.isOK()) { |
93 setErrorMessage(Messages.getString("TRKConnectionWizardPage.NoConnectionError")); //$NON-NLS-1$ |
95 if (status.getSeverity() == IStatus.ERROR) { |
94 setPageComplete(false); |
96 setErrorMessage(status.getMessage()); |
|
97 setPageComplete(false); |
|
98 } else { |
|
99 setMessage(status.getMessage(), |
|
100 status.getSeverity() == IStatus.WARNING ? WARNING : INFORMATION); |
|
101 } |
95 } |
102 } |
96 } |
103 } |
97 |
104 |
98 @Override |
105 @Override |
99 public void performHelp() { |
106 public void performHelp() { |