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