Package org.eclipse.xtext.common.types.xtext.ui.ITypesProposalProvider

Examples of org.eclipse.xtext.common.types.xtext.ui.ITypesProposalProvider.Filter


  private void createCollectionClassProposals(IFXCollectionProperty prop, final EObject model, ContentAssistContext context, EReference typeReference, ICompletionProposalAcceptor acceptor) {
    IType jdtSuperType = prop.getElementType();
    if (jdtSuperType != null) {
      JvmType superType = jdtTypeProvider.findOrCreateTypeProvider(model.eResource().getResourceSet()).findTypeByName(jdtSuperType.getFullyQualifiedName());
      Filter f = new FXClassFilter(projectProvider.getJavaProject(model.eResource().getResourceSet()));
      typeProposalProviders.createSubTypeProposals(superType, this, context, typeReference, f, acceptor);
    }
  }
View Full Code Here


      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

 
  @Override
  public void completeStaticCallValueProperty_Type(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    //TODO Should we should all classes?
    JvmType superType = jdtTypeProvider.findOrCreateTypeProvider(model.eResource().getResourceSet()).findTypeByName("javafx.scene.Parent");
    Filter f = new FXClassFilter(projectProvider.getJavaProject(model.eResource().getResourceSet()));
    typeProposalProviders.createSubTypeProposals(superType, this, context, FXGraphPackage.Literals.STATIC_CALL_VALUE_PROPERTY__TYPE, f, acceptor);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.xtext.common.types.xtext.ui.ITypesProposalProvider.Filter

Copyright © 2018 www.massapicom. 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.