| Summary: | XtendImportImplCustom | ||
|---|---|---|---|
| Product: | [Tools] Xtend | Reporter: | Ed Merks <Ed.Merks> |
| Component: | Core | Assignee: | Project Inbox <xtend-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jan, sebastian.zarnekow, sven.efftinge |
| Version: | 2.3.0 | Flags: | sven.efftinge:
kepler+
|
| Target Milestone: | M5 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
This has been fixed in the meantime. The respective code is now in XImportDeclarationImplCustom. Requested via bug 522520. -M. Requested via bug 522520. -M. |
In here @Override public String getImportedTypeName() { String result = getImportedNamespace(); if (result == null) { if (this.eIsSet(Xtend2Package.Literals.XTEND_IMPORT__IMPORTED_TYPE)) { List<INode> list = NodeModelUtils.findNodesForFeature(this, Xtend2Package.Literals.XTEND_IMPORT__IMPORTED_TYPE); StringBuilder sb = new StringBuilder(); for (INode iNode : list) { sb.append(NodeModelUtils.getTokenText(iNode)); } return sb.toString().replace(" ", ""); } return null; } if (isWildcard()) { if (result.length() > 2) return result.substring(0, result.length() - 2); return null; } return result; } the node value you pull out won't replace the escape (^) character extracted from the node.