Examples of IJvmTypeProvider


Examples of org.eclipse.xtext.common.types.access.IJvmTypeProvider

  }
 
  private Collection<? extends IEObjectDescription> createTypeFeatures(ResourceSet rs) {
       
    List<IEObjectDescription> descriptions = new ArrayList<IEObjectDescription>();
    IJvmTypeProvider provider = typeProviderFactory.findOrCreateTypeProvider(rs);
    for(Type type : stateAndCommandProvider.getAllTypes()) {
      descriptions.add(EObjectDescription.create(type.toString(), provider.findTypeByName(type.getClass().getCanonicalName())));
    }
   
    return descriptions;
  }
View Full Code Here

Examples of org.eclipse.xtext.common.types.access.IJvmTypeProvider

   
    return descriptions;
  }

  private List<IEObjectDescription> createItemFeatures(ResourceSet rs) {
    IJvmTypeProvider provider = typeProviderFactory.findOrCreateTypeProvider(rs);
    List<IEObjectDescription> descriptions = new ArrayList<IEObjectDescription>();
    ItemRegistry itemRegistry = itemRegistryProvider.get();
    if(itemRegistry!=null) {
      for(Item item : itemRegistry.getItems()) {
        descriptions.add(EObjectDescription.create(item.getName(), provider.findTypeByName(item.getClass().getCanonicalName())));
      }
    }
    return descriptions;
  }
View Full Code Here

Examples of org.eclipse.xtext.common.types.access.IJvmTypeProvider

       
      }

      IType jdtSuperType = prop.getElementType();
      if (jdtSuperType != null) {
        final IJvmTypeProvider tProvider = jdtTypeProvider.findOrCreateTypeProvider(model.eResource().getResourceSet());
        JvmType superType = tProvider.findTypeByName(jdtSuperType.getFullyQualifiedName());
        Filter f = new FXClassFilter(projectProvider.getJavaProject(model.eResource().getResourceSet()));
        typeProposalProviders.createSubTypeProposals(superType, this, context, typeReference, f, acceptor);
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.