Examples of TextAttribute


Examples of org.eclipse.jface.text.TextAttribute

  public IToken getToken(String prefKey){
     Token token = (Token) tokenTable.get(prefKey);
     if (token == null){
      String colorName = store.getString(prefKey);
      RGB rgb = StringConverter.asRGB(colorName);
      token = new Token(new TextAttribute(getColor(rgb)));
      tokenTable.put(prefKey, token);
     }
     return token;
  }
View Full Code Here

Examples of org.eclipse.jface.text.TextAttribute

     String prefKey = event.getProperty();
     Token token = (Token) tokenTable.get(prefKey);
     if (token != null){
      String colorName = store.getString(prefKey);
      RGB rgb = StringConverter.asRGB(colorName);
      token.setData(new TextAttribute(getColor(rgb)));
     }
  }
View Full Code Here

Examples of org.eclipse.jface.text.TextAttribute

  }

  protected XMLScanner getXMLScanner() {
    if (scanner == null) {
      scanner = new XMLScanner(colorManager);
      scanner.setDefaultReturnToken(new Token(new TextAttribute(colorManager
              .getColor(IXMLColorConstants.DEFAULT))));
    }
    return scanner;
  }
View Full Code Here

Examples of org.eclipse.jface.text.TextAttribute

  }

  protected XMLTagScanner getXMLTagScanner() {
    if (tagScanner == null) {
      tagScanner = new XMLTagScanner(colorManager);
      tagScanner.setDefaultReturnToken(new Token(new TextAttribute(colorManager
              .getColor(IXMLColorConstants.TAG))));
    }
    return tagScanner;
  }
View Full Code Here

Examples of org.eclipse.jface.text.TextAttribute

    dr = new DefaultDamagerRepairer(getXMLScanner());
    reconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE);
    reconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE);

    NonRuleBasedDamagerRepairer ndr = new NonRuleBasedDamagerRepairer(new TextAttribute(
            colorManager.getColor(IXMLColorConstants.XML_COMMENT)));
    reconciler.setDamager(ndr, XMLPartitionScanner.XML_COMMENT);
    reconciler.setRepairer(ndr, XMLPartitionScanner.XML_COMMENT);

    return reconciler;
View Full Code Here

Examples of org.springframework.ide.eclipse.config.ui.widgets.TextAttribute

        || (WebFlowConfigSchemaConstants.ELEM_FLOW_REGISTRY.equals(elem) && (WebFlowConfigSchemaConstants.ATTR_PARENT
            .equals(attr) || WebFlowConfigSchemaConstants.ATTR_FLOW_BUILDER_SERVICES.equals(attr)))
        || (WebFlowConfigSchemaConstants.ELEM_FLOW_BUILDER_SERVICES.equals(elem) && (WebFlowConfigSchemaConstants.ATTR_VIEW_FACTORY_CREATOR
            .equals(attr) || WebFlowConfigSchemaConstants.ATTR_EXPRESSION_PARSER.equals(attr) || WebFlowConfigSchemaConstants.ATTR_CONVERSION_SERVICE
            .equals(attr)))) {
      TextAttribute attrControl = createBeanAttribute(client, attr, required);
      addWidget(attrControl);
      addAdapter(new TextAttributeProposalAdapter(attrControl, new BeanReferenceContentProposalProvider(
          getInput(), attr, true)));
      return true;
    }
    if (WebFlowConfigSchemaConstants.ELEM_ATTRIBUTE.equals(elem)
        && WebFlowConfigSchemaConstants.ATTR_TYPE.equals(attr)) {
      TextAttribute attrControl = createClassAttribute(client, attr, false, required);
      addWidget(attrControl);
      addAdapter(new TextAttributeProposalAdapter(attrControl, new ClassContentProposalProvider(getInput(), attr,
          false)));
      return true;
    }
    if (WebFlowConfigSchemaConstants.ELEM_FLOW_BUILDER.equals(elem)
        && WebFlowConfigSchemaConstants.ATTR_CLASS.equals(attr)) {
      TextAttribute attrControl = createClassAttribute(client, attr, false, required);
      addWidget(attrControl);
      addAdapter(new TextAttributeProposalAdapter(attrControl, new ClassHierarchyContentProposalProvider(
          getInput(), attr, "org.springframework.webflow.engine.builder.FlowBuilder"))); //$NON-NLS-1$
      return true;
    }
View Full Code Here

Examples of ptolemy.vergil.kernel.attributes.TextAttribute

        rectangle.fillColor.setExpression("{1.0, 0.7, 0.7, 1.0}");

        Location _location = new Location(rectangle, "_location");
        _location.setExpression("-5.0, -15.0");

        TextAttribute text = new TextAttribute(_icon, "text");
        text.text.setExpression("DependencyHighlighter");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.