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

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


  }
 
  @Override
  public void completeListValueProperty_Value(EObject m, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
   
    ListValueProperty listProp = null;
   
    if( m instanceof ListValueProperty ) {
      listProp = (ListValueProperty) m;
    } else if( m instanceof Element && m.eContainer() instanceof ListValueProperty ) {
      // If at least one char is already typed
      listProp = (ListValueProperty) m.eContainer();
    }
   
    if( listProp != null ) {
      if( listProp.eContainer() instanceof Property ) {
        Property property = (Property) listProp.eContainer();
        if( property.eContainer() instanceof Element ) {
          try {
            Element element = (Element) property.eContainer();
            IJavaProject javaProject = projectProvider.getJavaProject(element.eResource().getResourceSet());
            IType ownerType = javaProject.findType(element.getType().getQualifiedName());
View Full Code Here


                  }
                }
              } else if( rp.eContainer() instanceof StaticCallValueProperty ) {
                LOGGER.warn("Unable to extract type for " + rp.eContainer());
              } else if( rp.eContainer() instanceof ListValueProperty ) {
                ListValueProperty lvp = (ListValueProperty) rp.eContainer();
                if( lvp.eContainer() instanceof Property ) {
                  Property p = (Property) lvp.eContainer();
                  if( p.eContainer() instanceof Element ) {
                    Element e = (Element) p.eContainer();
                    IType ownerType = javaProject.findType(e.getType().getQualifiedName());
                    IFXClass ownerClass = FXPlugin.getClassmodel().findClass(javaProject, ownerType);
                    IFXProperty ownerProp = ownerClass.getProperty(p.getName());
View Full Code Here

    } else if( modelElement instanceof Property ) {
      Property p = (Property) modelElement;
      if( p.getValue() instanceof SimpleValueProperty ) {
        return;
      } else if( p.getValue() instanceof ListValueProperty ) {
        ListValueProperty lp = (ListValueProperty) p.getValue();
        for( ListValueElement e : lp.getValue() ) {
          if( lp.getValue() != null ) {
            createNode(parentNode, e);
          }
        }
        return
      } else if( p.getValue() instanceof ResourceValueProperty ) {
View Full Code Here

                        getStructuralParent(),
                        FXGraphFactory.eINSTANCE
                            .createListValueProperty());
                  }
                  if (p.getValue() instanceof ListValueProperty) {
                    ListValueProperty list = (ListValueProperty) p
                        .getValue();
                    list.getValue().add(e);
                  } else if ((p.getValue() instanceof ListValueProperty)) {
                    System.err.println("TODO");
                  }
                  parent.getProperties().add(p);
                } else if ("fx:define"
View Full Code Here

 
  public CharSequence generateListValueProperty(final Property p) {
    StringConcatenation _builder = new StringConcatenation();
    CastHelper _castHelper = new CastHelper();
    ValueProperty _value = p.getValue();
    final ListValueProperty list = _castHelper.castToListValueProperty(_value);
    _builder.newLineIfNotEmpty();
    String _name = p.getName();
    _builder.append(_name, "");
    _builder.append(" : [");
    _builder.newLineIfNotEmpty();
    Boolean comma = Boolean.valueOf(false);
    _builder.newLineIfNotEmpty();
    {
      EList<ListValueElement> _value_1 = list.getValue();
      for(final ListValueElement e : _value_1) {
        {
          if ((comma).booleanValue()) {
            _builder.append(",");
          }
View Full Code Here

TOP

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

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.