Summary: | NPE restoring TypeHierarchy | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Nick Edgar <n.a.edgar> |
Component: | UI | Assignee: | Dani Megert <daniel_megert> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P1 | CC: | mkamp |
Version: | 2.0 | ||
Target Milestone: | 2.0 M6 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Nick Edgar
2002-04-19 00:18:40 EDT
Here's a clue for why restore may have failed. In the workbench.xml was the following memento for the hierarchy view: - <view id="org.eclipse.jdt.ui.TypeHierarchy"> <viewState hidefields="false" hidenonpublic="false" hidestatic="false" input="=org.eclipse.jdt.ui/ui<org.eclipse.jdt.internal.ui.dialogs {TwoPaneElementSelector.java[TwoPaneElementSelector" mv_vertical_scroll="0" orientation="0" ratio="350" selection="=org.eclipse.jdt.junit//org.eclipse.jdt.junit/junitsupport.jar<org.e clipse.jdt.internal.junit.launcher(TestSelectionDialog.class [TestSelectionDialog" showinherited="false" vertical_scroll="0" view="2" /> </view> It refers to TwoPaneElementSelector.java which I had been working on last night (with JDT UI source in my workspace). As bug 14191 describes, tonight I had imported all projects as binary except for org.eclipse.ui, so this overwrote JDT UI. Eclipse then crashed. So, on subsequent restore, the CU referred to by the memento no longer existed in the workspace. restoring from a memento has to handle the case that an element stored in the memento no longer exists. I will check in our other views as well. Packages view has a similar problem and it will result in null elements in the selection. Martin please move bug back to inbox when done. fixed in TypeHierarchyViewPart > 20020418 *** Bug 14990 has been marked as a duplicate of this bug. *** fixed packages view. Dani pls check the Java Browsing views. Ok for Java Browsing views. Closing the BR. |