Package org.springframework.ide.eclipse.config.ui.widgets

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


      addAdapter(new TextAttributeProposalAdapter(attrControl, new FactoryMethodContentProposalProvider(
          getInput(), attr)));
      return true;
    }
    if (BeansSchemaConstants.ELEM_BEAN.equals(elem) && BeansSchemaConstants.ATTR_SCOPE.equals(attr)) {
      ComboAttribute attrControl = createComboAttribute(client, attr, new String[] {}, required);
      addWidget(attrControl);
      addAdapter(new ComboAttributeProposalAdapter(attrControl,
          new ScopeContentProposalProvider(getInput(), attr)));
      return true;
    }
View Full Code Here


   * @param values an array of known values
   * @param required denotes whether this is a required field
   * @return {@link ComboAttribute} widget set
   */
  protected ComboAttribute createComboAttribute(Composite client, String attr, String[] values, boolean required) {
    ComboAttribute comboAttr = new ComboAttribute(client, toolkit, attr, values, required) {
      @Override
      public void modifyAttribute() {
        editAttribute(attr, combo.getItem(combo.getSelectionIndex()));
      }

      @Override
      public void update() {
        setComboSelection(combo, getAttributeValue(attr));
      }
    };
    comboAttr.createAttribute(2);
    return comboAttr;
  }
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.config.ui.widgets.ComboAttribute

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.