Bug 2073 - On restart of WRT tools - its hard to know which project the open file is in
--- a/org.symbian.tools.wrttools/src/org/symbian/tools/wrttools/navigator/WRTNavigatorContentProvider.java Mon Mar 15 17:19:53 2010 -0700
+++ b/org.symbian.tools.wrttools/src/org/symbian/tools/wrttools/navigator/WRTNavigatorContentProvider.java Mon Mar 15 17:36:40 2010 -0700
@@ -180,14 +180,11 @@
@Override
public Object getParent(Object element) {
Object parent = super.getParent(element);
- if (element instanceof IJavaScriptElement && parent instanceof IJavaScriptElement) {
- IJavaScriptElement jsChild = (IJavaScriptElement) element;
+ if (parent instanceof IJavaScriptElement) {
IJavaScriptElement jsParent = (IJavaScriptElement) parent;
-
try {
- IResource childResource = jsChild.getCorrespondingResource();
IResource parentResource = jsParent.getCorrespondingResource();
- if (childResource == null && parentResource != null) {
+ if (parentResource != null) {
return parentResource;
}
} catch (JavaScriptModelException e) {