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(); } } }
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); } }
protected String[] getSigningInfo() { if (fJARSiginingTab == null || fTabFolder.getItemCount() < 3) return null; return fJARSiginingTab.getSigningInfo(); }
protected void saveSettings(IDialogSettings settings) { fDestinationTab.saveSettings(settings); fOptionsTab.saveSettings(settings); if (fJARSiginingTab != null) fJARSiginingTab.saveSettings(settings); }
protected String validateTabs() { String message = fDestinationTab.validate(); if (message == null) message = fOptionsTab.validate(); if (message == null && fTabFolder.getItemCount() > 2) message = fJARSiginingTab.validate(); return message; }
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); }