Package org.eclipse.jst.jsf.metadataprocessors.features

Examples of org.eclipse.jst.jsf.metadataprocessors.features.IDefaultValue


      IPropertyPageDescriptor attr, Element element) {
   
    String type = attr.getValueType();
   
    IPossibleValues pvs = (IPossibleValues)attr.getAdapter(IPossibleValues.class);
    IDefaultValue defaultValue = (IDefaultValue)attr.getAdapter(IDefaultValue.class);
//    ICellEditorValidator validator = (ICellEditorValidator)attr.getAdapter(ICellEditorValidator.class);
    CellEditor ed = null;
    if (IAttributeRuntimeValueType.RELATIVEPATH.equalsIgnoreCase(type)|| IAttributeRuntimeValueType.WEBPATH.equalsIgnoreCase(type)) {
      IProject project = getProject(element);
      if (project != null) {
View Full Code Here


  public void setElementContext(IDOMNode ancester, IDOMElement element) {
    IStructuredDocumentContext sdContext =IStructuredDocumentContextFactory.INSTANCE.getContext(element.getStructuredDocument(), element);
    IPropertyPageDescriptor ppd = (IPropertyPageDescriptor)getAttachedData("KEY_ATTR");//FIXME use constant //$NON-NLS-1$
    ppd.setStructuredDocumentContext(sdContext);
    IPossibleValues pvs = (IPossibleValues)ppd.getAdapter(IPossibleValues.class);
    IDefaultValue def = (IDefaultValue)ppd.getAdapter(IDefaultValue.class);
    if (def != null)
      setDefaultValue(def.getDefaultValue());
    if (pvs.getPossibleValues() != null)
      setEntryMap(getMapOfPossibleValues(pvs));
  }
View Full Code Here

      IPropertyPageDescriptor attr, Element element) {
   
    String type = attr.getValueType();
   
    IPossibleValues pvs = (IPossibleValues)attr.getAdapter(IPossibleValues.class);
    IDefaultValue defaultValue = (IDefaultValue)attr.getAdapter(IDefaultValue.class);
//    ICellEditorValidator validator = (ICellEditorValidator)attr.getAdapter(ICellEditorValidator.class);
    CellEditor ed = null;
    if (IAttributeRuntimeValueType.RELATIVEPATH.equalsIgnoreCase(type)|| IAttributeRuntimeValueType.WEBPATH.equalsIgnoreCase(type)) {
      IProject project = getProject(element);
      final IFile file = getFile(element);
View Full Code Here

TOP

Related Classes of org.eclipse.jst.jsf.metadataprocessors.features.IDefaultValue

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.