aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacek Pospychala2013-01-17 08:37:31 (EST)
committerJacek Pospychala2013-01-17 08:37:31 (EST)
commit9c419dbfa7c92d2be54253855c88fa3514be6d78 (patch)
treeb52af0aecb570683fc54deba49ca90c836bd13e0
parentac5a075879ca668001c0e2ec7e3415ca02af358c (diff)
downloadorg.eclipse.pdt-9c419dbfa7c92d2be54253855c88fa3514be6d78.zip
org.eclipse.pdt-9c419dbfa7c92d2be54253855c88fa3514be6d78.tar.gz
org.eclipse.pdt-9c419dbfa7c92d2be54253855c88fa3514be6d78.tar.bz2
https://bugs.eclipse.org/bugs/show_bug.cgi?id=398379
-rw-r--r--plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/outline/PHPOutlineContentProvider.java13
1 files changed, 6 insertions, 7 deletions
diff --git a/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/outline/PHPOutlineContentProvider.java b/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/outline/PHPOutlineContentProvider.java
index c725603..fb4123e 100644
--- a/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/outline/PHPOutlineContentProvider.java
+++ b/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/outline/PHPOutlineContentProvider.java
@@ -232,17 +232,16 @@ public class PHPOutlineContentProvider implements ITreeContentProvider {
}
IModelElementDelta delta = findElement(fSourceModule,
e.getDelta());
- if ((delta != null || e.getType() == ElementChangedEvent.POST_CHANGE)) {
+ if ((delta != null || e.getType() == ElementChangedEvent.POST_CHANGE)
+ && fOutlineViewer != null
+ && fOutlineViewer.getControl() != null
+ && !fOutlineViewer.getControl()
+ .isDisposed()) {
Display d = control.getDisplay();
if (d != null) {
d.asyncExec(new Runnable() {
public void run() {
- if (fOutlineViewer != null
- && fOutlineViewer.getControl() != null
- && !fOutlineViewer.getControl()
- .isDisposed()) {
- fOutlineViewer.refresh();
- }
+ fOutlineViewer.refresh();
}
});
}