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 87075 Details for
Bug 194619
The monitor tab should display an error when an unknown/invalid host is selected
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]
Patch
194619 Patch.txt (text/plain), 2.79 KB, created by
Bing Xu
on 2008-01-16 13:26:17 EST
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Bing Xu
Created:
2008-01-16 13:26:17 EST
Size:
2.79 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.hyades.trace.ui >Index: src/org/eclipse/hyades/trace/ui/internal/core/TraceProfileUI.java >=================================================================== >RCS file: /cvsroot/tptp/platform/org.eclipse.hyades.trace.ui/src/org/eclipse/hyades/trace/ui/internal/core/TraceProfileUI.java,v >retrieving revision 1.23 >diff -u -r1.23 TraceProfileUI.java >--- src/org/eclipse/hyades/trace/ui/internal/core/TraceProfileUI.java 11 Jul 2007 14:27:08 -0000 1.23 >+++ src/org/eclipse/hyades/trace/ui/internal/core/TraceProfileUI.java 16 Jan 2008 18:23:34 -0000 >@@ -21,6 +21,7 @@ > import org.eclipse.core.runtime.IStatus; > import org.eclipse.debug.core.ILaunchConfiguration; > import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy; >+import org.eclipse.hyades.security.internal.util.ConnectUtil; > import org.eclipse.hyades.trace.internal.ui.PDPluginImages; > import org.eclipse.hyades.trace.ui.UIPlugin; > import org.eclipse.hyades.trace.ui.internal.launcher.ILaunchConfigurationTabUpdater; >@@ -52,6 +53,7 @@ > import org.eclipse.swt.layout.GridLayout; > import org.eclipse.swt.widgets.Button; > import org.eclipse.swt.widgets.Composite; >+import org.eclipse.swt.widgets.Control; > import org.eclipse.swt.widgets.Display; > import org.eclipse.swt.widgets.Label; > import org.eclipse.swt.widgets.Shell; >@@ -546,6 +548,7 @@ > this.launchConfiguration = conf; > > if (!(checkBoxTreeViewer.getInput() instanceof DataCollectorTreeInput) || >+ ((DataCollectorTreeInput)checkBoxTreeViewer.getInput()).getConfiguration() == null || > !((DataCollectorTreeInput)checkBoxTreeViewer.getInput()).getConfiguration().equals(conf)) > { > >@@ -566,6 +569,25 @@ > { > String currentHost = conf.getAttribute(IProfileLaunchConfigurationConstants.ATTR_HOSTNAME, CommonUITraceConstants.LOCAL_HOST); > int currentPort = conf.getAttribute(IProfileLaunchConfigurationConstants.ATTR_PORT, UIPlugin.getDefault().getPreferenceStore().getDefaultInt(CommonUIConstants.LOCALHOST_PORT)); >+ >+ >+ ConnectUtil connect = new ConnectUtil( currentHost, ""+currentPort,null); >+ Control[] controls= checkBoxTreeViewer.getTree().getParent().getParent().getChildren(); >+ Label label = (Label) controls[0]; >+ if(connect.connect(false) != ConnectUtil.CONNECTION_SUCCESS){ >+ label.setForeground(new Color(null,255, 0, 0)); >+ label.setText(TraceMessages.CONH_ERROR_); >+ >+ checkBoxTreeViewer.setInput(null); >+ errorMessage = TraceMessages.CONH_ERROR_; >+ >+ return; >+ }else{ >+ label.setForeground(new Color(null,0, 0, 0)); >+ label.setText(TraceMessages.LAUNCH_INSTRUCTION); >+ } >+ >+ > if (lastHost != null && (!lastHost.equals(currentHost) || lastPort != currentPort)) > { > checkBoxTreeViewer.setInput(new DataCollectorTreeInput(conf));
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 194619
:
87075
|
88049