Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Tanasenko2016-02-21 20:06:56 +0000
committerAnton Tanasenko2016-02-21 20:06:56 +0000
commit79702b96c741a33db4cb64977b0ef8b05bbd2829 (patch)
tree3894c05b593491973118407fad734f32b73833fe /org.eclipse.m2e.editor
parentfdff39e0396a4c8501ef8c2cddbaaf73c8069990 (diff)
downloadm2e-core-79702b96c741a33db4cb64977b0ef8b05bbd2829.tar.gz
m2e-core-79702b96c741a33db4cb64977b0ef8b05bbd2829.tar.xz
m2e-core-79702b96c741a33db4cb64977b0ef8b05bbd2829.zip
479296 LabelProvider cannot be cast to DependencyListLabelProvider
Change-Id: Id9f2b615dfe759c95053badbdca02300fb72044c Signed-off-by: Anton Tanasenko <atg.sleepless@gmail.com>
Diffstat (limited to 'org.eclipse.m2e.editor')
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/DependencyTreePage.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/DependencyTreePage.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/DependencyTreePage.java
index 3809d85e..5b1fa25c 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/DependencyTreePage.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/DependencyTreePage.java
@@ -588,11 +588,13 @@ public class DependencyTreePage extends FormPage implements IMavenProjectChanged
// defer updating the field while the user is typing.
final Job updateJob = new WorkbenchJob("Update Maven Dependency Viewers") {
public IStatus runInUIThread(IProgressMonitor monitor) {
- isSettingSelection = true;
- selectListElements(searchMatcher);
- selectTreeElements(searchMatcher);
- setTreeFilter(searchFilter, false);
- isSettingSelection = false;
+ if(!listViewer.getTable().isDisposed()) {
+ isSettingSelection = true;
+ selectListElements(searchMatcher);
+ selectTreeElements(searchMatcher);
+ setTreeFilter(searchFilter, false);
+ isSettingSelection = false;
+ }
return Status.OK_STATUS;
}
};

Back to the top