Package at.bestsolution.efxclipse.tooling.fxgraph.fXGraph

Examples of at.bestsolution.efxclipse.tooling.fxgraph.fXGraph.ConstValueProperty


  }
 
  @Override
  public void completeConstValueProperty_Field(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    if( model instanceof ConstValueProperty ) {
      ConstValueProperty constProp = (ConstValueProperty) model;
      IJavaProject javaProject = projectProvider.getJavaProject(constProp.eResource().getResourceSet());
      try {
        IType type = javaProject.findType(constProp.getType().getQualifiedName());
        List<IField> fields = new ArrayList<IField>();
        collectStaticFields(fields, type);
       
        for( IField f : fields ) {
          StyledString s = new StyledString(f.getElementName() + " : " + Signature.getSimpleName(Signature.toString(f.getTypeSignature())));
View Full Code Here


          + p.getName() + " : ");
      sb.append(new ValuePropertyFormatter(p.getValue())
          .getFormattedValue());
      formattedValue = sb.toString();
    } else if (value instanceof ConstValueProperty) {
      ConstValueProperty p = (ConstValueProperty) value;
      StringBuffer sb = new StringBuffer();
      sb.append("const " + p.getType().getSimpleName() + "#"
          + p.getField());
      formattedValue = sb.toString();
    } else if (value instanceof IncludeValueProperty) {
      IncludeValueProperty inc = (IncludeValueProperty) value;
      formattedValue = "include " + "source=" + inc.getSource()
          + " name=" + inc.getName(); // TODO
View Full Code Here

            }
          }
        } else {
          if (!localName.contains(".")) {
            if (checkConstant(localName, attributes)) {
              ConstValueProperty c = createConstValueProperty(
                  localName, attributes);
              boolean found = false;
              for (Property p : elementStack.peek()
                  .getProperties()) {
                if (p.getName().equals(getStructuralParent())) {
View Full Code Here

     * @param attributes
     * @return
     */
    private ConstValueProperty createConstValueProperty(String localName,
        Attributes attributes) {
      ConstValueProperty c = FXGraphFactory.eINSTANCE
          .createConstValueProperty();
      c.setField(attributes.getValue("fx:constant"));
      JvmParameterizedTypeReference constType = createJvmParameterizedTypeReference(localName);
      c.setType(constType);
      return c;
    }
View Full Code Here

TOP

Related Classes of at.bestsolution.efxclipse.tooling.fxgraph.fXGraph.ConstValueProperty

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.