Пример #1
0
 public boolean addStaticImport(JvmDeclaredType type, String memberName) {
   if (hasStaticImport(staticImports, type, memberName)) {
     return false;
   }
   Maps2.putIntoSetMap(type, memberName, staticImports);
   XImportDeclaration importDeclaration = XtypeFactory.eINSTANCE.createXImportDeclaration();
   importDeclaration.setImportedType(type);
   importDeclaration.setStatic(true);
   if (memberName == null) {
     importDeclaration.setWildcard(true);
   } else {
     importDeclaration.setMemberName(memberName);
   }
   addedImportDeclarations.add(importDeclaration);
   return true;
 }