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

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


      SimpleValueProperty p = (SimpleValueProperty) property.getValue();
      s.append(" : " + getSimplePropertValue(p), StyledString.QUALIFIER_STYLER);
      return s;
    } else if( property.getValue() instanceof ControllerHandledValueProperty ) {
      StyledString s = new StyledString(property.getName());
      ControllerHandledValueProperty p = (ControllerHandledValueProperty) property.getValue();
      s.append( " : " + p.getMethodname(),StyledString.QUALIFIER_STYLER);
      return s;
    } else if( property.getValue() instanceof ReferenceValueProperty ) {
      StyledString s = new StyledString(property.getName());
      ReferenceValueProperty p = (ReferenceValueProperty) property.getValue();
     
      if( p.getReference() != null ) {
        s.append(" : " + (p.getReference() instanceof Element ? ((Element)p.getReference()).getName() : ((IncludeValueProperty)p.getReference()).getName()),StyledString.QUALIFIER_STYLER)
      }
     
      return s;
    } else if( property.getValue() instanceof ResourceValueProperty ) {
      StyledString s = new StyledString(property.getName());
View Full Code Here


          }
        }
      }
    } else if( object instanceof ValueProperty ) {
      if( object instanceof ControllerHandledValueProperty ) {
        ControllerHandledValueProperty cp = (ControllerHandledValueProperty) object;
       
        Model m = (Model) object.eResource().getContents().get(0);
       
        if( m != null ) {
          ComponentDefinition def = m.getComponentDef();
          if( def != null ) {
            if( def.getController() != null && def.getController().getType() != null) {
              IType t = getJDTType(def.getController().getType());
              if( t != null ) {
                IFXCtrlClass fxClass = FXPlugin.getClassmodel().findCtrlClass(t.getJavaProject(), t);
                if( fxClass != null ) {
                  IFXCtrlEventMethod fxp = fxClass.getAllEventMethods().get(cp.getMethodname());
                  if( fxp != null ) {
                    return createHover(fxp.getJavaElement(), object, viewer, region);
                  }
                }
              }
View Full Code Here

    private ValueProperty createValueProperty(Property p, String qName,
        String value) {
      // actions
      if (qName.startsWith("on")) {
        ControllerHandledValueProperty cp = FXGraphFactory.eINSTANCE
            .createControllerHandledValueProperty();
        String methodName = null;
        if (value != null && value.startsWith("#")) {
          methodName = value.replaceFirst("#", "");
        }
        cp.setMethodname(methodName);
        return cp;
      }
      // static call
      else if (value != null && value.startsWith("${")
          && value.endsWith("}")) {
View Full Code Here

TOP

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

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.