Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[381097] Runtime search function results in duplicate entries on Server

Runtime Environments preferences page
  • Loading branch information...
commit b99a70b2fa4da6738bb87f6bf58dd4b5e118aaff 1 parent 0af7bba
elsony elsony authored
8 plugins/org.eclipse.wst.server.ui/serverui/org/eclipse/wst/server/ui/internal/RuntimePreferencePage.java
... ... @@ -1,5 +1,5 @@
1 1 /*******************************************************************************
2   - * Copyright (c) 2003, 2011 IBM Corporation and others.
  2 + * Copyright (c) 2003, 2012 IBM Corporation and others.
3 3 * All rights reserved. This program and the accompanying materials
4 4 * are made available under the terms of the Eclipse Public License v1.0
5 5 * which accompanies this distribution, and is available at
@@ -281,7 +281,7 @@ public void run(IProgressMonitor monitor2) {
281 281 Trace.trace(Trace.STRING_SEVERE, "Error finding runtimes", ex);
282 282 }
283 283 }
284   - runtimeComp.refresh();
  284 + runtimeComp2.refresh();
285 285 }
286 286 });
287 287
@@ -434,7 +434,7 @@ public void runtimeAdded(final IRuntime runtime) {
434 434 final RuntimeComposite runtimeComp2 = this.runtimeComp;
435 435 Display.getDefault().asyncExec(new Runnable(){
436 436 public void run(){
437   - runtimeComp2.add(runtime);
  437 + runtimeComp2.refresh();
438 438 }
439 439 });
440 440 }
@@ -442,7 +442,7 @@ public void runtimeRemoved(final IRuntime runtime) {
442 442 final RuntimeComposite runtimeComp2 = this.runtimeComp;
443 443 Display.getDefault().asyncExec(new Runnable(){
444 444 public void run(){
445   - runtimeComp2.remove(runtime);
  445 + runtimeComp2.refresh();
446 446 }
447 447 });
448 448 }

0 comments on commit b99a70b

Please sign in to comment.
Something went wrong with that request. Please try again.