Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forums[Xpand] TypeProposalComputer.computeProposals()
https://www.eclipse.org/forums/index.php/mv/msg/161054/508928/#msg_508928
if your metamodel types (MyType extends org.eclipse.xtend.typesystem.AbstractTypeImpl) use qualified names and you import a long namespace in a Xpand template (e.g. «IMPORT de::my::namespace::sometypes» the proposals for the following example are not shown (at the position of "|"):
«DEFINE testDef FOR My|»
....
«ENDDEFINE»
But if you try it without a prefix (at the position of "|") they are shown correctly:
«DEFINE testDef FOR |»
....
«ENDDEFINE»
The method TypeProposalComputer.computeProposals() uses TypeNameUtil.getPackage(insertString) which only returns the first segment of the package (in our example only "de" instead of "de::my::namespace::sometypes"). Can this be reason for the explained behaviour of the Xpand editor?