Bug 323661

Summary: F3 computes wrong hiperlinks when separate projects have same FQNs for .ext files with the same extension
Product: [Modeling] M2T Reporter: Piotr Szczepanik <piter75>
Component: XpandAssignee: Darius Jockel <darius.jockel>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3 CC: darius.jockel
Version: 2.0.0Keywords: ui
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

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.