Beispiel #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();
     }
   }
 }
Beispiel #2
0
  protected void createTabs(TabFolder folder, IDialogSettings settings) {
    createDestinationTab(folder);
    createOptionsTab(folder);

    fDestinationTab.initialize(settings);
    fOptionsTab.initialize(settings);
    if (fOptionsTab.useJARFormat()) {
      createJARSigningTab(folder);
      fJARSiginingTab.initialize(settings);
    }
  }
Beispiel #3
0
 protected String[] getSigningInfo() {
   if (fJARSiginingTab == null || fTabFolder.getItemCount() < 3) return null;
   return fJARSiginingTab.getSigningInfo();
 }
Beispiel #4
0
 protected void saveSettings(IDialogSettings settings) {
   fDestinationTab.saveSettings(settings);
   fOptionsTab.saveSettings(settings);
   if (fJARSiginingTab != null) fJARSiginingTab.saveSettings(settings);
 }
Beispiel #5
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;
 }
Beispiel #6
0
 protected void createJARSigningTab(TabFolder folder) {
   fJARSiginingTab = new JARSigningTab(this);
   TabItem item = new TabItem(folder, SWT.NONE);
   item.setControl(fJARSiginingTab.createControl(folder));
   item.setText(PDEUIMessages.AdvancedPluginExportPage_signJar);
 }