use of org.eclipse.n4js.ts.types.TExportableElement in project n4js by eclipse.
the class ImportsFactory method addDefaultImport.
private ImportDeclaration addDefaultImport(String name, ImportDeclaration importDeclaration) {
DefaultImportSpecifier defaultImportSpec = N4JS_FACTORY.createDefaultImportSpecifier();
TExportableElement importetElement = TYPES_FACTORY.createTExportableElement();
importetElement.setName(name);
defaultImportSpec.setImportedElement(importetElement);
importDeclaration.getImportSpecifiers().add(defaultImportSpec);
return importDeclaration;
}
use of org.eclipse.n4js.ts.types.TExportableElement in project n4js by eclipse.
the class NamedImportSpecifierImpl method setImportedElement.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setImportedElement(TExportableElement newImportedElement) {
TExportableElement oldImportedElement = importedElement;
importedElement = newImportedElement;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, N4JSPackage.NAMED_IMPORT_SPECIFIER__IMPORTED_ELEMENT, oldImportedElement, importedElement));
}
Aggregations