Exemplo n.º 1
0
  public void createControl(Composite parent) {
    final Composite panel = new Composite(parent, SWT.NULL);
    panel.setLayout(new GridLayout());

    specsPanel = new RefSpecPanel(panel, pushPage);
    specsPanel.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
    specsPanel.addRefSpecTableListener(
        new SelectionChangeListener() {
          public void selectionChanged() {
            checkPage();
          }
        });

    if (!pushPage) {
      final Group tagsGroup = new Group(panel, SWT.NULL);
      tagsGroup.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
      tagsGroup.setText(UIText.RefSpecPage_annotatedTagsGroup);
      tagsGroup.setLayout(new GridLayout());
      tagsAutoFollowButton = new Button(tagsGroup, SWT.RADIO);
      tagsAutoFollowButton.setText(UIText.RefSpecPage_annotatedTagsAutoFollow);
      tagsFetchTagsButton = new Button(tagsGroup, SWT.RADIO);
      tagsFetchTagsButton.setText(UIText.RefSpecPage_annotatedTagsFetchTags);
      tagsNoTagsButton = new Button(tagsGroup, SWT.RADIO);
      tagsNoTagsButton.setText(UIText.RefSpecPage_annotatedTagsNoTags);
    }

    saveButton = new Button(panel, SWT.CHECK);
    saveButton.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, true, false));

    Dialog.applyDialogFont(panel);
    setControl(panel);
    checkPage();
  }