コード例 #1
0
  /** Create head client in the {@link #mainForm}. Sub-classes can implement if needed. */
  protected void createHeadClient() {
    Composite headClient = new Composite(mainForm.getHead(), SWT.NONE);
    GridLayout gl = new GridLayout(3, false);
    gl.marginHeight = 0;
    gl.marginWidth = 0;
    headClient.setLayout(gl);

    new Label(headClient, SWT.NONE).setText("Show:");

    environmentSelection = new Button(headClient, SWT.RADIO);
    environmentSelection.setText("Environments");
    environmentSelection.setSelection(true);

    profileSelection = new Button(headClient, SWT.RADIO);
    profileSelection.setText("Profiles");

    environmentSelection.addSelectionListener(
        new SelectionAdapter() {
          @Override
          public void widgetSelected(SelectionEvent e) {
            performUpdate(false);
          }
        });

    mainForm.setHeadClient(headClient);
  }
コード例 #2
0
 /** {@inheritDoc} */
 @Override
 protected void createHeadClient(Form form) {
   Composite infoComposite = new Composite(form.getHead(), SWT.NONE);
   infoComposite.setLayout(new GridLayout(2, false));
   Label infoLabel = new Label(infoComposite, SWT.NONE);
   infoLabel.setImage(InspectIT.getDefault().getImage(InspectITImages.IMG_INFORMATION));
   infoLabel.setToolTipText(BusinessContextManagerViewPart.APP_ORDER_INFO_TOOLTIP);
   Label infoLabelText = new Label(infoComposite, SWT.NONE);
   infoLabelText.setText("Pay attention to the order of application definitions!");
   infoLabelText.setToolTipText(BusinessContextManagerViewPart.APP_ORDER_INFO_TOOLTIP);
   form.setHeadClient(infoComposite);
 }