Package org.eclipse.jst.pagedesigner.ui.dialogfields

Examples of org.eclipse.jst.pagedesigner.ui.dialogfields.StyleButtonDialogField


    } else if (IAttributeRuntimeValueType.CSSSTYLE.equalsIgnoreCase(type)) {
//      String param = getParamterValue(attr, "style");
//      if (!"STYLE".equalsIgnoreCase(param)) {
//        return null;
//      }
      StyleButtonDialogField field = new StyleButtonDialogField();
      field.setRequired(attr.isRequired());
      field.setToolTip(attr.getDescription());
      field.setLabelText(attr.getLabel());
      return field;
   
//    // if there is no type or type unknown, then we just return null. and
//    // system will
//    // create default (text cell editor).
    } else if (pvs != null && pvs.getPossibleValues().size() > 0) {
      MDEnabledComboDialogField field = new MDEnabledComboDialogField(SWT.None);
      field.setLabelText(attr.getLabel());
      field.setToolTip(attr.getDescription());
      field.setRequired(attr.isRequired());
      return field;
    }
    return null;
  }
View Full Code Here


    } else if (IAttributeRuntimeValueType.CSSSTYLE.equalsIgnoreCase(type)) {
//      String param = getParamterValue(attr, "style");
//      if (!"STYLE".equalsIgnoreCase(param)) {
//        return null;
//      }
      StyleButtonDialogField field = new StyleButtonDialogField();
      field.setRequired(attr.isRequired());
      field.setToolTip(attr.getDescription());
      field.setLabelText(attr.getLabel());
      return field;
   
//    // if there is no type or type unknown, then we just return null. and
//    // system will
//    // create default (text cell editor).
    } else if (pvs != null && pvs.getPossibleValues().size() > 0) {
      MDEnabledComboDialogField field = new MDEnabledComboDialogField(SWT.None);
      field.setLabelText(attr.getLabel());
      field.setToolTip(attr.getDescription());
      field.setRequired(attr.isRequired());
      return field;
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jst.pagedesigner.ui.dialogfields.StyleButtonDialogField

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.