Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 360739

Summary: getter for the field importedNamespacePrefix in ImportNormalizer
Product: [Modeling] TMF Reporter: Missing name <eecolor>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: eecolor, sebastian.zarnekow
Version: 2.0.1Flags: sebastian.zarnekow: indigo+
Target Milestone: SR2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Missing name CLA 2011-10-12 17:59:07 EDT
Build Identifier: M20110909-1335

In my code I need access to the importedNamespacePrefix field of org.eclipse.xtext.scoping.impl.ImportNormalizer

It would be nice if a getter method would be created.

More information here: http://www.eclipse.org/forums/index.php/m/735845/

Workaround:

Field field = ImportNormalizer.class.getDeclaredField("importedNamespacePrefix");
field.setAccessible(true);
QualifiedName qn = (QualifiedName) field.get(instance);
field.setAccessible(false);

Reproducible: Always
Comment 1 Missing name CLA 2011-10-12 18:00:44 EDT
Installed software: Xtext SDK 2.0.1.v201108020636
Comment 2 Sebastian Zarnekow CLA 2011-10-13 04:20:21 EDT
We need this for Xtend, too.
See NestedTypeAwareImportNormalizer
Comment 3 Sebastian Zarnekow CLA 2011-10-13 06:11:43 EDT
Pushed to master.
Comment 4 Karsten Thoms CLA 2017-09-19 18:02:09 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 5 Karsten Thoms CLA 2017-09-19 18:12:29 EDT
Closing all bugs that were set to RESOLVED before Neon.0