Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361572 - XtendImportImplCustom
Summary: XtendImportImplCustom
Status: CLOSED FIXED
Alias: None
Product: Xtend
Classification: Tools
Component: Core (show other bugs)
Version: 2.3.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: M5   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-20 12:05 EDT by Ed Merks CLA
Modified: 2017-10-31 11:19 EDT (History)
3 users (show)

See Also:
sven.efftinge: kepler+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Merks CLA 2011-10-20 12:05:38 EDT
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.
Comment 1 Jan Koehnlein CLA 2013-01-23 07:57:13 EST
This has been fixed in the meantime. The respective code is now in XImportDeclarationImplCustom.
Comment 2 Eclipse Webmaster CLA 2017-10-31 11:07:40 EDT
Requested via bug 522520.

-M.
Comment 3 Eclipse Webmaster CLA 2017-10-31 11:19:09 EDT
Requested via bug 522520.

-M.