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

(-)src/org/eclipse/tptp/trace/ui/internal/launcher/deleg/application/PIDelegateHelper.java (-13 / +3 lines)
Lines 363-372 Link Here
363
	{		
363
	{		
364
		private String host;
364
		private String host;
365
		private int port;
365
		private int port;
366
		private boolean complete;
366
		private boolean complete;		
367
		
367
		private String version;
368
		private static Node node;
369
		private static String version;
370
		
368
		
371
		class JVMVersionProcessor implements DataProcessor
369
		class JVMVersionProcessor implements DataProcessor
372
		{
370
		{
Lines 473-487 Link Here
473
				
471
				
474
				JVMVersionProcessor jvmProcessor = new JVMVersionProcessor();
472
				JVMVersionProcessor jvmProcessor = new JVMVersionProcessor();
475
				host = CommonUITraceConstants.LOCAL_HOST.equals(host) ? InetAddress.getLocalHost().getHostName() : host;
473
				host = CommonUITraceConstants.LOCAL_HOST.equals(host) ? InetAddress.getLocalHost().getHostName() : host;
476
				
474
				Node node = PDCoreUtil.profileConnect(host, String.valueOf(port), false);
477
				/* Return cached version, if one is available */
478
				if (node != null && node.isConnected() && 
479
					node.getConnection().getPort() == port && host.equals(node.getName()) && 
480
					version != null)
481
				{					
482
					return;
483
				}
484
				node = PDCoreUtil.profileConnect(host, String.valueOf(port), false);
485
				
475
				
486
				if (node == null)
476
				if (node == null)
487
				{
477
				{
(-)src/org/eclipse/hyades/trace/ui/internal/core/TraceProfileUI.java (-2 / +9 lines)
Lines 547-554 Link Here
547
			destinationTab.initializeFrom(conf);
547
			destinationTab.initializeFrom(conf);
548
	
548
	
549
		this.launchConfiguration = conf;
549
		this.launchConfiguration = conf;
550
		checkBoxTreeViewer.setInput(new DataCollectorTreeInput(conf));		
550
				
551
		initialized = false;
551
		if (!(checkBoxTreeViewer.getInput() instanceof DataCollectorTreeInput) || 
552
			!((DataCollectorTreeInput)checkBoxTreeViewer.getInput()).getConfiguration().equals(conf))
553
		{
554
			
555
			checkBoxTreeViewer.setInput(new DataCollectorTreeInput(conf));
556
			initialized = false;
557
		}
558
		
552
	}
559
	}
553
		
560
		
554
	
561
	
(-)src/org/eclipse/tptp/trace/ui/internal/launcher/core/DataCollectorTreeContentProvider.java (-1 / +13 lines)
Lines 261-267 Link Here
261
			this.configuration = configuration;
261
			this.configuration = configuration;
262
		}		
262
		}		
263
		
263
		
264
		
264
		/**
265
		 * @see java.lang.Object#equals(java.lang.Object)
266
		 */
267
		public boolean equals(Object o)
268
		{
269
			if (!(o instanceof DataCollectorTreeInput))
270
				return false;
271
			
272
			if (configuration != null)
273
				return configuration.equals(((DataCollectorTreeInput)o).configuration);
274
			
275
			return this == o;
276
		}
265
	}
277
	}
266
	
278
	
267
	
279
	

Return to bug 186639