Community
Participate
Working Groups
Steps: 1 Select any class in ScriptExplorer 2. Expand class in SCriptExplore 3. Righ click on a method and select action "Open Call Hierarchy" Thows NPE in run method. Simple patch: public void run(IModelElement[] elements) { if (elements.length == 0) { getShell().getDisplay().beep(); return; } //REPLACE this //CallHierarchyUI.open(elements, getSite().getWorkbenchWindow(), fEditor.getCallHierarchyID()); //WITH this CallHierarchyUI.open(elements, getSite().getWorkbenchWindow(), getCallHierarchyID()); } //Add method. this view is specifed in subclasses of ScriptExplorer but the //only place it's used is in this class, so makes sense to put it in here //(probably remove from ScriptExplorer as well, since it won't be used there //anymore public String getCallHierarchyID() { return "org.eclipse.dltk.callhierarchy.view"; }
fixed
bulk change: fixed in 0.95