Esempio n. 1
0
  /**
   * Must be called after createProjectDropDownMenu, since we need to figure out the selected
   * project.
   *
   * @author stolz
   */
  protected void createProductDropDownMenu(TabListener myListener, Composite comp) {
    Group group = createGroup(comp, "ABS Product", 1, 1, GridData.FILL_HORIZONTAL);

    productDropDown = new Combo(group, SWT.DROP_DOWN | SWT.BORDER | SWT.READ_ONLY);
    GridData gridData = new GridData();
    gridData.widthHint = 200;
    productDropDown.setLayoutData(gridData);

    productDropDown.addListener(SWT.Selection, myListener);
  }
Esempio n. 2
0
  protected void createProjectDropDownMenu(TabListener myListener, Composite comp) {
    Group group = createGroup(comp, "ABS Project", 1, 1, GridData.FILL_HORIZONTAL);

    projectDropDown = new Combo(group, SWT.DROP_DOWN | SWT.BORDER | SWT.READ_ONLY);
    GridData gridData = new GridData();
    gridData.widthHint = 200;
    projectDropDown.setLayoutData(gridData);

    projectDropDown.addListener(SWT.Selection, myListener);
    /* Refresh products everytime the project is changed */
    projectDropDown.addListener(
        SWT.Selection,
        new Listener() {
          @Override
          public void handleEvent(Event event) {
            fillProductDropDownMenue(null);
            updateErrors();
          }
        });
  }