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

Bug 346731

Summary: Import statement enhancements
Product: [Modeling] M2T Reporter: Lan Phan <quoclan>
Component: XpandAssignee: Project Inbox <m2t.xpand-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: karsten.thoms
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Lan Phan CLA 2011-05-20 12:25:29 EDT
Build Identifier: Eclipse 3.6.2

For Xpand/Xtend/Check editor, user must firstly provide import statements. Our program have a long list of import statements such as:
import X::Y;
import X::Y::Z;
import X::Y::Z::T;
import X::Y::Z::T::K;
...
Is it possible to provide better way below?
import X::Y::*;

Reproducible: Always
Comment 1 Karsten Thoms CLA 2011-08-22 15:41:24 EDT
This won't be possible, sorry. Import statements are internally just handled like prefixes. If Xpand accesses some definition and could not resolve it from the local namespace, it tries to prefix all import statements until it can resolve it. There is no way to know about sub-namespaces.
Comment 2 Karsten Thoms CLA 2013-02-21 08:13:43 EST
Bug resolved before Xpand 1.2 release date => Closing