Bug 323661 - F3 computes wrong hiperlinks when separate projects have same FQNs for .ext files with the same extension
Summary: F3 computes wrong hiperlinks when separate projects have same FQNs for .ext f...
Status: CLOSED FIXED
Alias: None
Product: M2T
Classification: Modeling
Component: Xpand (show other bugs)
Version: 2.0.0   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Darius Jockel CLA
QA Contact:
URL:
Whiteboard:
Keywords: ui
Depends on:
Blocks:
 
Reported: 2010-08-25 17:41 EDT by Piotr Szczepanik CLA
Modified: 2017-10-31 11:26 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Szczepanik CLA 2010-08-25 17:41:57 EDT
Build Identifier: 1.0.1

The issue is that F3 should only open extension files that are on the "classpath" of the current project.

It is probably situated in
org.eclipse.xtend.shared.ui.editor.navigation.AbstractHyperlinkDetector#getXXResourceByName(..)
in which when matching resource is not found in the cache (and it will probably never match because "_xxresource.getFullyQualifiedName()" has "/" as NS_DELIM and "fqName" which is method's parameter uses "::" (line 197)) then it is searched in _ALL_ the projects by XtendXpandModelManager class. It should be searched only in the referenced projects.

Reproducible: Always

Steps to Reproduce:
1. Create two xpand projects (DON'T ADD THEM AS REFERENCES BETWEEN EACH OTHER)
2. Create two "Example.ext" files with the same extensions in both projects
3. Create two Example.xpt files with reference to one of the extensions in the Example.ext file
4. Ctrl+Click (or F3) the extension reference
5. The Example.ext file is opened but it is not always the right one
Comment 1 Darius Jockel CLA 2014-05-30 08:07:06 EDT
Fixed in V2.0.0
Comment 2 Eclipse Webmaster CLA 2017-10-31 11:26:56 EDT
Requested via bug 522520.

-M.