Exemple #1
0
  /* (non-Javadoc)
   * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
   */
  public void createControl(Composite parent) {
    Font font = parent.getFont();
    GridData data = new GridData(GridData.FILL_BOTH);

    Composite composite = new Composite(parent, SWT.NONE);
    composite.setLayout(new GridLayout());
    composite.setLayoutData(data);
    composite.setFont(font);

    pageBook = new PageBook(composite, SWT.NONE);
    pageBook.setLayoutData(new GridData(GridData.FILL_BOTH));
    pageBook.setFont(font);

    input = createCompareInput();
    input.createPartControl(pageBook);
    compareView = input.getControl();
    compareView.setFont(font);
    compareView.setLayoutData(data);

    noneChangeMessage = new Label(pageBook, SWT.WRAP);
    noneChangeMessage.setText(Messages.getString("ProjectComparePage.1")); // $NON-NLS-1$
    noneChangeMessage.setLayoutData(data);
    noneChangeMessage.setFont(font);

    buildNotesButton = new Button(composite, SWT.CHECK);
    buildNotesButton.setText(Messages.getString("ProjectComparePage.2")); // $NON-NLS-1$
    buildNotesButton.setFont(font);
    buildNotesButton.addSelectionListener(
        new SelectionAdapter() {
          public void widgetSelected(SelectionEvent e) {
            buildNotesButtonChecked = buildNotesButton.getSelection();
          }
        });

    initialize();
    setControl(composite);
  }