Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360739 - getter for the field importedNamespacePrefix in ImportNormalizer
Summary: getter for the field importedNamespacePrefix in ImportNormalizer
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.1   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: SR2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-12 17:59 EDT by Missing name CLA
Modified: 2017-09-19 18:12 EDT (History)
2 users (show)

See Also:
sebastian.zarnekow: indigo+


Attachments

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