@Override public void createControl(Composite parent) { initializeDialogUnits(parent); fLowerComposite= new Composite(parent, SWT.NONE); fLowerComposite.setLayoutData(createGridData(GridData.FILL_BOTH, 1, 0)); GridLayout layout= createGridLayout(3); layout.marginHeight= 0; fLowerComposite.setLayout(layout); createExtraOptionsGroup(fLowerComposite); createAntGroup(fLowerComposite); setControl(fLowerComposite); Dialog.applyDialogFont(fLowerComposite); PlatformUI.getWorkbench().getHelpSystem().setHelp(fLowerComposite, IJavaHelpContextIds.JAVADOC_SPECIFICS_PAGE); } //end method createControl
private void createAntGroup(Composite composite) { Composite c= new Composite(composite, SWT.NONE); c.setLayout(createGridLayout(3)); c.setLayoutData(createGridData(GridData.FILL_HORIZONTAL, 3, 0)); ((GridLayout) c.getLayout()).marginWidth= 0; fAntButton= createButton(c, SWT.CHECK, JavadocExportMessages.JavadocSpecificsWizardPage_antscriptbutton_label, createGridData(3)); createLabel(c, SWT.NONE, JavadocExportMessages.JavadocSpecificsWizardPage_antscripttext_label, createGridData(GridData.HORIZONTAL_ALIGN_BEGINNING, 1, 0)); fAntText= createText(c, SWT.SINGLE | SWT.BORDER, null, createGridData(GridData.FILL_HORIZONTAL, 1, 0)); fAntBrowseButton= createButton(c, SWT.PUSH, JavadocExportMessages.JavadocSpecificsWizardPage_antscriptbrowse_label, createGridData(GridData.HORIZONTAL_ALIGN_END, 1, 0)); SWTUtil.setButtonDimensionHint(fAntBrowseButton); fAntText.setEnabled(false); fAntBrowseButton.setEnabled(false); fCheckbrowser= createButton(c, SWT.CHECK, JavadocExportMessages.JavadocSpecificsWizardPage_openbrowserbutton_label, createGridData(3)); fCheckbrowser.setSelection(fStore.doOpenInBrowser());
@Override public void setVisible(boolean visible) { super.setVisible(visible); if (visible) { doValidation(OVERVIEWSTATUS); doValidation(ANTSTATUS); fCheckbrowser.setVisible(!fFirstPage.getCustom()); } else { updateStore(); } }
public void addPages() { fJTWPage= new JavadocTreeWizardPage(TREE_PAGE_DESC, fStore); fJSWPage= new JavadocSpecificsWizardPage(SPECIFICS_PAGE_DESC, fJTWPage, fStore); fJSpWPage= new JavadocStandardWizardPage(STANDARD_PAGE_DESC, fJTWPage, fStore); super.addPage(fJTWPage); super.addPage(fJSpWPage); super.addPage(fJSWPage); fJTWPage.init(); fJSpWPage.init(); fJSWPage.init(); }
public void setVisible(boolean visible) { super.setVisible(visible); if (visible) { doValidation(OVERVIEWSTATUS); doValidation(ANTSTATUS); fCheckbrowser.setVisible(!fFirstPage.getCustom()); } }
@Override public void addPages() { fContributedJavadocWizardPages= ContributedJavadocWizardPage.getContributedPages(fStore); fTreeWizardPage= new JavadocTreeWizardPage(TREE_PAGE_DESC, fStore); fLastWizardPage= new JavadocSpecificsWizardPage(SPECIFICS_PAGE_DESC, fTreeWizardPage, fStore); fStandardDocletWizardPage= new JavadocStandardWizardPage(STANDARD_PAGE_DESC, fTreeWizardPage, fStore); super.addPage(fTreeWizardPage); super.addPage(fStandardDocletWizardPage); for (int i= 0; i < fContributedJavadocWizardPages.length; i++) { super.addPage(fContributedJavadocWizardPages[i]); } super.addPage(fLastWizardPage); fTreeWizardPage.init(); fStandardDocletWizardPage.init(); fLastWizardPage.init(); }
private void createAntGroup(Composite composite) { Composite c= new Composite(composite, SWT.NONE); c.setLayout(createGridLayout(3)); c.setLayoutData(createGridData(GridData.FILL_HORIZONTAL, 3, 0)); ((GridLayout) c.getLayout()).marginWidth= 0; fAntButton= createButton(c, SWT.CHECK, JavadocExportMessages.JavadocSpecificsWizardPage_antscriptbutton_label, createGridData(3)); createLabel(c, SWT.NONE, JavadocExportMessages.JavadocSpecificsWizardPage_antscripttext_label, createGridData(GridData.HORIZONTAL_ALIGN_BEGINNING, 1, 0)); fAntText= createText(c, SWT.SINGLE | SWT.BORDER, null, createGridData(GridData.FILL_HORIZONTAL, 1, 0)); fAntBrowseButton= createButton(c, SWT.PUSH, JavadocExportMessages.JavadocSpecificsWizardPage_antscriptbrowse_label, createGridData(GridData.HORIZONTAL_ALIGN_END, 1, 0)); SWTUtil.setButtonDimensionHint(fAntBrowseButton); fAntText.setEnabled(false); fAntBrowseButton.setEnabled(false); fCheckbrowser= createButton(c, SWT.CHECK, JavadocExportMessages.JavadocSpecificsWizardPage_openbrowserbutton_label, createGridData(3)); fCheckbrowser.setSelection(fStore.doOpenInBrowser());
public void createControl(Composite parent) { initializeDialogUnits(parent); fLowerComposite= new Composite(parent, SWT.NONE); fLowerComposite.setLayoutData(createGridData(GridData.FILL_BOTH, 1, 0)); GridLayout layout= createGridLayout(3); layout.marginHeight= 0; fLowerComposite.setLayout(layout); createExtraOptionsGroup(fLowerComposite); createAntGroup(fLowerComposite); setControl(fLowerComposite); Dialog.applyDialogFont(fLowerComposite); PlatformUI.getWorkbench().getHelpSystem().setHelp(fLowerComposite, IJavaHelpContextIds.JAVADOC_SPECIFICS_PAGE); } //end method createControl
@Override public void addPages() { fContributedJavadocWizardPages= ContributedJavadocWizardPage.getContributedPages(fStore); fTreeWizardPage= new JavadocTreeWizardPage(TREE_PAGE_DESC, fStore); fLastWizardPage= new JavadocSpecificsWizardPage(SPECIFICS_PAGE_DESC, fTreeWizardPage, fStore); fStandardDocletWizardPage= new JavadocStandardWizardPage(STANDARD_PAGE_DESC, fTreeWizardPage, fStore); super.addPage(fTreeWizardPage); super.addPage(fStandardDocletWizardPage); for (int i= 0; i < fContributedJavadocWizardPages.length; i++) { super.addPage(fContributedJavadocWizardPages[i]); } super.addPage(fLastWizardPage); fTreeWizardPage.init(); fStandardDocletWizardPage.init(); fLastWizardPage.init(); }
@Override public void setVisible(boolean visible) { super.setVisible(visible); if (visible) { doValidation(OVERVIEWSTATUS); doValidation(ANTSTATUS); fCheckbrowser.setVisible(!fFirstPage.getCustom()); } else { updateStore(); } }
private void createAntGroup(Composite composite) { Composite c= new Composite(composite, SWT.NONE); c.setLayout(createGridLayout(3)); c.setLayoutData(createGridData(GridData.FILL_HORIZONTAL, 3, 0)); ((GridLayout) c.getLayout()).marginWidth= 0; fAntButton= createButton(c, SWT.CHECK, JavadocExportMessages.JavadocSpecificsWizardPage_antscriptbutton_label, createGridData(3)); createLabel(c, SWT.NONE, JavadocExportMessages.JavadocSpecificsWizardPage_antscripttext_label, createGridData(GridData.HORIZONTAL_ALIGN_BEGINNING, 1, 0)); fAntText= createText(c, SWT.SINGLE | SWT.BORDER, null, createGridData(GridData.FILL_HORIZONTAL, 1, 0)); fAntBrowseButton= createButton(c, SWT.PUSH, JavadocExportMessages.JavadocSpecificsWizardPage_antscriptbrowse_label, createGridData(GridData.HORIZONTAL_ALIGN_END, 1, 0)); SWTUtil.setButtonDimensionHint(fAntBrowseButton); fAntText.setEnabled(false); fAntBrowseButton.setEnabled(false); fCheckbrowser= createButton(c, SWT.CHECK, JavadocExportMessages.JavadocSpecificsWizardPage_openbrowserbutton_label, createGridData(3)); fCheckbrowser.setSelection(fStore.doOpenInBrowser());
@Override public void createControl(Composite parent) { initializeDialogUnits(parent); fLowerComposite= new Composite(parent, SWT.NONE); fLowerComposite.setLayoutData(createGridData(GridData.FILL_BOTH, 1, 0)); GridLayout layout= createGridLayout(3); layout.marginHeight= 0; fLowerComposite.setLayout(layout); createExtraOptionsGroup(fLowerComposite); createAntGroup(fLowerComposite); setControl(fLowerComposite); Dialog.applyDialogFont(fLowerComposite); PlatformUI.getWorkbench().getHelpSystem().setHelp(fLowerComposite, IJavaHelpContextIds.JAVADOC_SPECIFICS_PAGE); } //end method createControl
private void createExtraOptionsGroup(Composite composite) { Composite c= new Composite(composite, SWT.NONE); c.setLayout(createGridLayout(3)); c.setLayoutData(createGridData(GridData.FILL_HORIZONTAL, 3, 0)); ((GridLayout) c.getLayout()).marginWidth= 0; fOverViewButton= createButton(c, SWT.CHECK, JavadocExportMessages.JavadocSpecificsWizardPage_overviewbutton_label, createGridData(1)); fOverViewText= createText(c, SWT.SINGLE | SWT.BORDER, null, createGridData(GridData.FILL_HORIZONTAL, 1, 0)); fOverViewBrowseButton= createButton(c, SWT.PUSH, JavadocExportMessages.JavadocSpecificsWizardPage_overviewbrowse_label, createGridData(GridData.HORIZONTAL_ALIGN_END, 1, 0)); SWTUtil.setButtonDimensionHint(fOverViewBrowseButton); createLabel(composite, SWT.NONE, JavadocExportMessages.JavadocSpecificsWizardPage_vmoptionsfield_label, createGridData(GridData.HORIZONTAL_ALIGN_BEGINNING, 3, 0)); fVMOptionsText= createText(composite, SWT.SINGLE | SWT.BORDER, null, createGridData(GridData.HORIZONTAL_ALIGN_FILL, 3, 0)); fVMOptionsText.setText(fStore.getVMParams()); createLabel(composite, SWT.NONE, JavadocExportMessages.JavadocSpecificsWizardPage_extraoptionsfield_label, createGridData(GridData.HORIZONTAL_ALIGN_BEGINNING, 3, 0)); fExtraOptionsText= createText(composite, SWT.MULTI | SWT.BORDER | SWT.WRAP | SWT.H_SCROLL | SWT.V_SCROLL, null, createGridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.FILL_VERTICAL, 3, 0)); inner.setLayout(layout); createLabel(inner, SWT.NONE, JavadocExportMessages.JavadocSpecificsWizardPage_sourcecompatibility_label, createGridData(GridData.HORIZONTAL_ALIGN_BEGINNING, 1, 0)); fSourceCombo= createCombo(inner, SWT.NONE, fStore.getSource(), createGridData(1)); String[] versions= { "-", "1.3", "1.4", "1.5", "1.6" };//$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ fSourceCombo.setItems(versions);
private void createExtraOptionsGroup(Composite composite) { Composite c= new Composite(composite, SWT.NONE); c.setLayout(createGridLayout(3)); c.setLayoutData(createGridData(GridData.FILL_HORIZONTAL, 3, 0)); ((GridLayout) c.getLayout()).marginWidth= 0; fOverViewButton= createButton(c, SWT.CHECK, JavadocExportMessages.JavadocSpecificsWizardPage_overviewbutton_label, createGridData(1)); fOverViewText= createText(c, SWT.SINGLE | SWT.BORDER, null, createGridData(GridData.FILL_HORIZONTAL, 1, 0)); SWTUtil.setAccessibilityText(fOverViewText, JavadocExportMessages.JavadocSpecificsWizardPage_overviewbutton_description); fOverViewBrowseButton= createButton(c, SWT.PUSH, JavadocExportMessages.JavadocSpecificsWizardPage_overviewbrowse_label, createGridData(GridData.HORIZONTAL_ALIGN_END, 1, 0)); SWTUtil.setButtonDimensionHint(fOverViewBrowseButton); createLabel(composite, SWT.NONE, JavadocExportMessages.JavadocSpecificsWizardPage_vmoptionsfield_label, createGridData(GridData.HORIZONTAL_ALIGN_BEGINNING, 3, 0)); fVMOptionsText= createText(composite, SWT.SINGLE | SWT.BORDER, null, createGridData(GridData.HORIZONTAL_ALIGN_FILL, 3, 0)); fVMOptionsText.setText(fStore.getVMParams()); createLabel(composite, SWT.NONE, JavadocExportMessages.JavadocSpecificsWizardPage_extraoptionsfield_label, createGridData(GridData.HORIZONTAL_ALIGN_BEGINNING, 3, 0)); fExtraOptionsText= createText(composite, SWT.MULTI | SWT.BORDER | SWT.WRAP | SWT.H_SCROLL | SWT.V_SCROLL, null, createGridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.FILL_VERTICAL, 3, 0)); inner.setLayout(layout); createLabel(inner, SWT.NONE, JavadocExportMessages.JavadocSpecificsWizardPage_sourcecompatibility_label, createGridData(GridData.HORIZONTAL_ALIGN_BEGINNING, 1, 0)); fSourceCombo= createCombo(inner, SWT.NONE, fStore.getSource(), createGridData(1)); String[] versions= { "-", //$NON-NLS-1$ JavaCore.VERSION_1_3, JavaCore.VERSION_1_4, JavaCore.VERSION_1_5, JavaCore.VERSION_1_6, JavaCore.VERSION_1_7, JavaCore.VERSION_1_8 };
private void createExtraOptionsGroup(Composite composite) { Composite c= new Composite(composite, SWT.NONE); c.setLayout(createGridLayout(3)); c.setLayoutData(createGridData(GridData.FILL_HORIZONTAL, 3, 0)); ((GridLayout) c.getLayout()).marginWidth= 0; fOverViewButton= createButton(c, SWT.CHECK, JavadocExportMessages.JavadocSpecificsWizardPage_overviewbutton_label, createGridData(1)); fOverViewText= createText(c, SWT.SINGLE | SWT.BORDER, null, createGridData(GridData.FILL_HORIZONTAL, 1, 0)); SWTUtil.setAccessibilityText(fOverViewText, JavadocExportMessages.JavadocSpecificsWizardPage_overviewbutton_description); fOverViewBrowseButton= createButton(c, SWT.PUSH, JavadocExportMessages.JavadocSpecificsWizardPage_overviewbrowse_label, createGridData(GridData.HORIZONTAL_ALIGN_END, 1, 0)); SWTUtil.setButtonDimensionHint(fOverViewBrowseButton); createLabel(composite, SWT.NONE, JavadocExportMessages.JavadocSpecificsWizardPage_vmoptionsfield_label, createGridData(GridData.HORIZONTAL_ALIGN_BEGINNING, 3, 0)); fVMOptionsText= createText(composite, SWT.SINGLE | SWT.BORDER, null, createGridData(GridData.HORIZONTAL_ALIGN_FILL, 3, 0)); fVMOptionsText.setText(fStore.getVMParams()); createLabel(composite, SWT.NONE, JavadocExportMessages.JavadocSpecificsWizardPage_extraoptionsfield_label, createGridData(GridData.HORIZONTAL_ALIGN_BEGINNING, 3, 0)); fExtraOptionsText= createText(composite, SWT.MULTI | SWT.BORDER | SWT.WRAP | SWT.H_SCROLL | SWT.V_SCROLL, null, createGridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.FILL_VERTICAL, 3, 0)); inner.setLayout(layout); createLabel(inner, SWT.NONE, JavadocExportMessages.JavadocSpecificsWizardPage_sourcecompatibility_label, createGridData(GridData.HORIZONTAL_ALIGN_BEGINNING, 1, 0)); fSourceCombo= createCombo(inner, SWT.NONE, fStore.getSource(), createGridData(1)); List<String> versions= new ArrayList<>(); versions.add("-"); //$NON-NLS-1$