This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 138209

Summary: Patch for: [Call hierarchy] Enable go to source on the root of hierarchy tree
Product: java Reporter: Jiri Prox <jiriprox>
Component: RefactoringAssignee: Ralph Ruijs <ralphbenjamin>
Status: RESOLVED FIXED    
Severity: blocker CC: jkovalsky, markiewb
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Contributed patch

Description Jiri Prox 2008-06-25 12:27:33 UTC
Product Version: NetBeans IDE Dev (Build 080625)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b12
System: Linux version 2.6.22-15-generic running on i386; UTF-8; en_US (nb)

Double click on the root of call hierarchy tree does nothing (context menu is also disabled). It would be useful if
double click moves caret to the position where the call hierarchy was called.
Comment 1 markiewb 2012-10-26 12:24:59 UTC
Created attachment 126613 [details]
Contributed patch

I like to contribute this little patch to solve the issue. 

Changes: The TreePath of the root is now used also as an occurence and this way the "go to source"-action will be shown and used as default action when doubleclicking. 

@NetBeans-Devs: Please review, discuss with me and commit.
Comment 2 Ralph Ruijs 2012-10-30 13:35:24 UTC
Thank you for the patch. I will commit it right now.
Comment 3 Ralph Ruijs 2012-10-30 13:36:18 UTC
Changeset: 54d1b087953d
Author:    Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Date:      2012-10-30 14:32
Comment 4 Quality Engineering 2012-10-31 02:57:12 UTC
Integrated into 'main-golden', will be available in build *201210310001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/54d1b087953d
User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Log: Issue #138209 - Patch for: [Call hierarchy] Enable go to source on the root of hierarchy tree