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

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


      }
     
      return s;
    } else if( property.getValue() instanceof ResourceValueProperty ) {
      StyledString s = new StyledString(property.getName());
      ResourceValueProperty rp = (ResourceValueProperty) property.getValue();
      if( rp.getValue() != null ) {
        s.append(" : " + rp.getValue().getValue(), StyledString.QUALIFIER_STYLER);
      }
      return s;
    }
   
    return property.getName();
View Full Code Here


        LocationValueProperty l = FXGraphFactory.eINSTANCE
            .createLocationValueProperty();
        l.setValue(value.replaceFirst("@", ""));
        return l;
      } else if (value != null && value.startsWith("%")) {
        ResourceValueProperty l = FXGraphFactory.eINSTANCE
            .createResourceValueProperty();
        StringValue sv = FXGraphFactory.eINSTANCE.createStringValue();
        sv.setValue(value.replaceFirst("%", ""));
        l.setValue(sv);
        return l;
      } else {
        // static call
        SimpleValueProperty vp = createStaticCallProperty(p, qName,
            value);
View Full Code Here

        sb.append(new ValuePropertyFormatter(p.getValue())
            .getFormattedValue());
      }
      formattedValue = sb.toString();
    } else if (value instanceof ResourceValueProperty) {
      ResourceValueProperty p = (ResourceValueProperty) value;
      formattedValue = "rstring \"" + p.getValue().getValue() + "\"";
    } else if (value instanceof LocationValueProperty) {
      LocationValueProperty p = (LocationValueProperty) value;
      formattedValue = "location \"" + p.getValue() + "\"";
    } else if (value instanceof BindValueProperty) {
      BindValueProperty p = (BindValueProperty) value;
      formattedValue = "bind " + p.getElementReference().getName() + "#"
          + p.getAttribute();
    } else if (value instanceof ControllerHandledValueProperty) {
      formattedValue = "controllermethod "
          + ((ControllerHandledValueProperty) value).getMethodname();
    } else if (value instanceof ScriptHandlerHandledValueProperty) {
      formattedValue = "scriptmethod "
          + ((ScriptHandlerHandledValueProperty) value)
              .getFunctionname();
    } else if (value instanceof ScriptValueExpression) {
      formattedValue = "scriptexpression "
          + ((ScriptValueExpression) value).getSourcecode();
    } else if (value instanceof ScriptValueReference) {
      formattedValue = "scriptvalue "
          + ((ScriptValueReference) value).getReference();

    } else if (value instanceof StaticValueProperty) {
      StaticValueProperty p = (StaticValueProperty) value;
      StringBuffer sb = new StringBuffer();
      if (p.getModifier() != null) {
        sb.append(p.getModifier() + " ");
      }
      sb.append("static " + p.getName() + " : ");
      sb.append(new ValuePropertyFormatter(p.getValue())
          .getFormattedValue());
      formattedValue = sb.toString();
    } else if (value instanceof StaticCallValueProperty) {
      StaticCallValueProperty p = (StaticCallValueProperty) value;
      StringBuffer sb = new StringBuffer();
      if (p.getModifier() != null) {
        sb.append(p.getModifier() + " ");
      }
      sb.append("call " + p.getType().getSimpleName() + " # "
          + 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

TOP

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

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.