Skip to content
Snippets Groups Projects
Commit eaa3bb73 authored by Simon Barner's avatar Simon Barner
Browse files

- Avoid java.lang.IllegalStateException because EditorActivationListener tries...

- Avoid java.lang.IllegalStateException because EditorActivationListener tries to update the input of LibraryView's TreeViewer widget after it has been closed (disposed)
parent 10b8e517
Branches
Tags
No related merge requests found
......@@ -58,7 +58,7 @@ import org.fortiss.tooling.kernel.ui.service.IModelElementHandlerService;
* @author eder
* @author $Author: hoelzl $
* @version $Rev: 18709 $
* @ConQAT.Rating GREEN Hash: F0CC5ADB2855C236015E6A44FD8E8BBB
* @ConQAT.Rating YELLOW Hash: 5D43FE856C34B7875FF0565CCD63F311
*/
public class LibraryView extends ViewPart {
......@@ -266,5 +266,12 @@ public class LibraryView extends ViewPart {
viewer.setInput(IPrototypeService.INSTANCE.getAllTopLevelPrototypesCategories());
switchWorkbenchEditor(part);
}
/** {@inheritDoc} */
@Override
public void partClosed(IWorkbenchPart part) {
getSite().getWorkbenchWindow().getPartService()
.removePartListener(editorActivationListener);
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment