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 void pageChanged() { if (getMessage() != null) setMessage(null); if (fOptionsTab != null) { String path = fOptionsTab.getAntBuildFileName(); String warningMessage = null; if (path != null && path.length() > 0 && "build.xml".equals(new Path(path).lastSegment())) // $NON-NLS-1$ warningMessage = PDEUIMessages.ExportOptionsTab_antReservedMessage; setMessage(warningMessage, IMessageProvider.WARNING); } String error = fExportPart.getSelectionCount() > 0 ? null : PDEUIMessages.ExportWizard_status_noselection; if (error == null) error = validateTabs(); setErrorMessage(error); setPageComplete(error == null); }
protected String getQualifier() { return fOptionsTab.getQualifier(); }
protected String getAntBuildFileName() { return fOptionsTab.getAntBuildFileName(); }
protected boolean doGenerateAntFile() { return fOptionsTab.doGenerateAntFile(); }
protected boolean useWorkspaceCompiledClasses() { return fOptionsTab.useWorkspaceCompiledClasses(); }
protected boolean allowBinaryCycles() { return fOptionsTab.doBinaryCycles(); }
protected boolean useJARFormat() { return fOptionsTab.useJARFormat(); }
protected boolean doExportSourceBundles() { return fOptionsTab.doExportSourceBundles(); }
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 createOptionsTab(TabFolder folder) { fOptionsTab = new ExportOptionsTab(this); TabItem item = new TabItem(folder, SWT.NONE); item.setControl(fOptionsTab.createControl(folder)); item.setText(PDEUIMessages.ExportWizard_options); }