Browse files

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

Runtime Environments preferences page
  • Loading branch information...
1 parent 0af7bba commit b99a70b2fa4da6738bb87f6bf58dd4b5e118aaff @elsony elsony committed Aug 21, 2012
View
8 ...ipse.wst.server.ui/serverui/org/eclipse/wst/server/ui/internal/RuntimePreferencePage.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2003, 2011 IBM Corporation and others.
+ * Copyright (c) 2003, 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -281,7 +281,7 @@ public void run(IProgressMonitor monitor2) {
Trace.trace(Trace.STRING_SEVERE, "Error finding runtimes", ex);
}
}
- runtimeComp.refresh();
+ runtimeComp2.refresh();
}
});
@@ -434,15 +434,15 @@ public void runtimeAdded(final IRuntime runtime) {
final RuntimeComposite runtimeComp2 = this.runtimeComp;
Display.getDefault().asyncExec(new Runnable(){
public void run(){
- runtimeComp2.add(runtime);
+ runtimeComp2.refresh();
}
});
}
public void runtimeRemoved(final IRuntime runtime) {
final RuntimeComposite runtimeComp2 = this.runtimeComp;
Display.getDefault().asyncExec(new Runnable(){
public void run(){
- runtimeComp2.remove(runtime);
+ runtimeComp2.refresh();
}
});
}

0 comments on commit b99a70b

Please sign in to comment.