コード例 #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
  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);
    }
  }
コード例 #3
0
 protected String[] getSigningInfo() {
   if (fJARSiginingTab == null || fTabFolder.getItemCount() < 3) return null;
   return fJARSiginingTab.getSigningInfo();
 }
コード例 #4
0
 protected void saveSettings(IDialogSettings settings) {
   fDestinationTab.saveSettings(settings);
   fOptionsTab.saveSettings(settings);
   if (fJARSiginingTab != null) fJARSiginingTab.saveSettings(settings);
 }
コード例 #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;
 }
コード例 #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);
 }