Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 250481 - open declaration doesn't resolve references across projects
Summary: open declaration doesn't resolve references across projects
Status: RESOLVED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: RDT (show other bugs)
Version: 2.1RC1   Edit
Hardware: All All
: P1 major (vote)
Target Milestone: 2.1RC2   Edit
Assignee: Mike Kucera CLA
QA Contact: Greg Watson CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-10 15:59 EDT by Chris Recoskie CLA
Modified: 2011-05-14 06:39 EDT (History)
0 users

See Also:


Attachments
proposed patch (1.45 KB, patch)
2008-10-14 11:09 EDT, Mike Kucera CLA
g.watson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Recoskie CLA 2008-10-10 15:59:48 EDT
Create a project A, which has a function in it called foo().  Then, create a project B, which in one of its source files, calls foo().  Then highlight the call to foo() in B and try to use either F3 or the Open Declaration menu item.  You cannot get to the declaration of foo() in A as expected.
Comment 1 Mike Kucera CLA 2008-10-14 11:09:35 EDT
Created attachment 115046 [details]
proposed patch

The problem was that the index used only consisted of one index fragment for the current project scope. I have made a simple change to use the workspace scope.
Comment 2 Chris Recoskie CLA 2008-10-14 14:34:28 EDT
Applied to HEAD.  Thanks Mike.