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 - Patch for: [Call hierarchy] Enable go to source on the root of hierarchy tree
Summary: Patch for: [Call hierarchy] Enable go to source on the root of hierarchy tree
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-25 12:27 UTC by Jiri Prox
Modified: 2012-10-31 02:57 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Contributed patch (1022 bytes, patch)
2012-10-26 12:24 UTC, markiewb
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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