示例#1
0
 protected void adjustJARSigningTabVisibility() {
   IDialogSettings settings = getDialogSettings();
   if (useJARFormat()) {
     if (fTabFolder.getItemCount() < 3) {
       createJARSigningTab(fTabFolder);
       fJARSiginingTab.initialize(settings);
     }
   } else {
     if (fTabFolder.getItemCount() >= 3) {
       fJARSiginingTab.saveSettings(settings);
       fTabFolder.getItem(2).dispose();
     }
   }
 }
示例#2
0
  public void createControl(Composite parent) {
    Composite container = new Composite(parent, SWT.NULL);
    GridLayout layout = new GridLayout();
    layout.verticalSpacing = 10;
    container.setLayout(layout);

    createViewer(container);

    fTabFolder = new TabFolder(container, SWT.NONE);
    fTabFolder.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    createTabs(fTabFolder, getDialogSettings());

    initializeViewer();
    if (getErrorMessage() != null) {
      setMessage(getErrorMessage());
      setErrorMessage(null);
    }
    setControl(container);
    hookHelpContext(container);
    Dialog.applyDialogFont(container);
  }
示例#3
0
 protected String[] getSigningInfo() {
   if (fJARSiginingTab == null || fTabFolder.getItemCount() < 3) return null;
   return fJARSiginingTab.getSigningInfo();
 }
示例#4
0
 protected String validateTabs() {
   String message = fDestinationTab.validate();
   if (message == null) message = fOptionsTab.validate();
   if (message == null && fTabFolder.getItemCount() > 2) message = fJARSiginingTab.validate();
   return message;
 }