Package org.eclipse.ui.views.properties

Examples of org.eclipse.ui.views.properties.ComboBoxPropertyDescriptor


          descriptors = new IPropertyDescriptor[] {
              new TextPropertyDescriptor(NAME, "Name"),
              new TextPropertyDescriptor(VERSION, "Version"),
              new TextPropertyDescriptor(ID, "Id"),
              new TextPropertyDescriptor(PACKAGE_NAME, "Package"),
              new ComboBoxPropertyDescriptor(ROUTER_LAYOUT, "Connection Layout",
                  new String[] { "Manual", "Manhattan", "Shortest Path" }),
              new ListPropertyDescriptor(VARIABLES, "Variables", VariableListCellEditor.class),
              new ListPropertyDescriptor(SWIMLANES, "Swimlanes",
                  SwimlanesCellEditor.class),
              new ExceptionHandlersPropertyDescriptor(EXCEPTION_HANDLERS,
View Full Code Here


    
    private void setDescriptors() {
        descriptors = new IPropertyDescriptor[AbstractNodeWrapper.DESCRIPTORS.length + 1];
        System.arraycopy(AbstractNodeWrapper.DESCRIPTORS, 0, descriptors, 0, AbstractNodeWrapper.DESCRIPTORS.length);
        descriptors[descriptors.length - 1] =
            new ComboBoxPropertyDescriptor(TYPE, "Type",
                new String[] { "", "AND", "XOR", "OR" });
    }
View Full Code Here

    private void setDescriptors() {
        descriptors = new IPropertyDescriptor[AbstractNodeWrapper.DESCRIPTORS.length + 1];
        System.arraycopy(AbstractNodeWrapper.DESCRIPTORS, 0, descriptors, 0, AbstractNodeWrapper.DESCRIPTORS.length);
        if (isFullProperties()) {
          descriptors[descriptors.length - 1] =
              new ComboBoxPropertyDescriptor(TYPE, "Type", new String[] { "", "AND", "XOR", "Discriminator", "n-of-m" });
        } else {
          descriptors[descriptors.length - 1] =
              new ComboBoxPropertyDescriptor(TYPE, "Type", new String[] { "", "AND", "XOR" });
        }
    }
View Full Code Here

    }
    String[] infos = new String[list.size()];
    if (list.size() > 0) {
      list.toArray(infos);
    }
    ComboBoxPropertyDescriptor infoDescriptor = new ComboBoxPropertyDescriptor(P_ID_STATUS_INFO, P_STR_STATUS_INFO, infos);
    infoDescriptor.setCategory("Status");
    return infoDescriptor;
  }
View Full Code Here

    }
    String[] warnings = new String[list.size()];
    if (list.size() > 0) {
      list.toArray(warnings);
    }
    ComboBoxPropertyDescriptor warningDescriptor = new ComboBoxPropertyDescriptor(P_ID_STATUS_WARNING, P_STR_STATUS_WARNING, warnings);
    warningDescriptor.setCategory("Status");
    return warningDescriptor;
    }
View Full Code Here

    }
    String[] infos = new String[list.size()];
    if (list.size() > 0) {
      list.toArray(infos);
    }
    ComboBoxPropertyDescriptor infoDescriptor = new ComboBoxPropertyDescriptor(P_ID_STATUS_INFO, P_STR_STATUS_INFO, infos);
    infoDescriptor.setCategory("Status");
    return infoDescriptor;
  }
View Full Code Here

    }
    String[] warnings = new String[list.size()];
    if (list.size() > 0) {
      list.toArray(warnings);
    }
    ComboBoxPropertyDescriptor warningDescriptor = new ComboBoxPropertyDescriptor(P_ID_STATUS_WARNING, P_STR_STATUS_WARNING, warnings);
    warningDescriptor.setCategory("Status");
    return warningDescriptor;
  }
View Full Code Here

    }
    String[] infos = new String[list.size()];
    if (list.size() > 0) {
      list.toArray(infos);
    }
    ComboBoxPropertyDescriptor infoDescriptor = new ComboBoxPropertyDescriptor(P_ID_STATUS_INFO, P_STR_STATUS_INFO, infos);
    infoDescriptor.setCategory("Status");
    return infoDescriptor;
  }
View Full Code Here

    }
    String[] warnings = new String[list.size()];
    if (list.size() > 0) {
      list.toArray(warnings);
    }
    ComboBoxPropertyDescriptor warningDescriptor = new ComboBoxPropertyDescriptor(P_ID_STATUS_WARNING, P_STR_STATUS_WARNING, warnings);
    warningDescriptor.setCategory("Status");
    return warningDescriptor;
  }
View Full Code Here

*
* @return  Array of property descriptors.
*/
public IPropertyDescriptor[] getPropertyDescriptors() {
  if(getClass().equals(LogicDiagram.class)){
    ComboBoxPropertyDescriptor cbd = new ComboBoxPropertyDescriptor(
        ID_ROUTER,
        LogicMessages.PropertyDescriptor_LogicDiagram_ConnectionRouter,
        new String[]{
          LogicMessages.PropertyDescriptor_LogicDiagram_Manual,
          LogicMessages.PropertyDescriptor_LogicDiagram_Manhattan,
          LogicMessages.PropertyDescriptor_LogicDiagram_ShortestPath});
    cbd.setLabelProvider(new ConnectionRouterLabelProvider());
    return new IPropertyDescriptor[]{cbd};
  }
  return super.getPropertyDescriptors();
}
View Full Code Here

TOP

Related Classes of org.eclipse.ui.views.properties.ComboBoxPropertyDescriptor

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.