Search in sources :

Example 1 with FormPage

use of org.eclipse.ui.forms.editor.FormPage in project linuxtools by eclipse.

the class SpecfileFormEditor method addPages.

@Override
protected void addPages() {
    try {
        int index = addPage(editor, getEditorInput());
        setPageText(index, Messages.SpecfileFormEditor_0);
        Specfile specfile = editor.getSpecfile();
        FormPage mainPackage = new MainPackagePage(this, specfile);
        addPage(0, mainPackage);
        addPage(1, new RpmSectionPage(this, specfile, RpmSections.PREP_SECTION));
        addPage(2, new RpmSectionPage(this, specfile, RpmSections.BUILD_SECTION));
        addPage(3, new RpmSectionPage(this, specfile, RpmSections.INSTALL_SECTION));
    } catch (PartInitException e) {
    // 
    }
}
Also used : Specfile(org.eclipse.linuxtools.rpm.ui.editor.parser.Specfile) FormPage(org.eclipse.ui.forms.editor.FormPage) PartInitException(org.eclipse.ui.PartInitException)

Example 2 with FormPage

use of org.eclipse.ui.forms.editor.FormPage in project linuxtools by eclipse.

the class RepoFormEditor method createImportsPage.

/**
 * Creates page for importing RPMs from the workspace or the file system.
 *
 * @throws PartInitException
 */
private void createImportsPage() throws PartInitException {
    FormPage composite = new ImportRPMsPage(this, project);
    addPage(composite);
}
Also used : FormPage(org.eclipse.ui.forms.editor.FormPage)

Example 3 with FormPage

use of org.eclipse.ui.forms.editor.FormPage in project linuxtools by eclipse.

the class RepoFormEditor method createMetadataPage.

/**
 * Creates page allowing the user to modify some of the data in the
 * repomd.xml as well as some options when customizing the execution of the
 * createrepo command. The default execution would satisfy most users.
 *
 * @throws PartInitException
 */
private void createMetadataPage() throws PartInitException {
    FormPage composite = new MetadataPage(this, project);
    addPage(composite);
}
Also used : FormPage(org.eclipse.ui.forms.editor.FormPage)

Aggregations

FormPage (org.eclipse.ui.forms.editor.FormPage)3 Specfile (org.eclipse.linuxtools.rpm.ui.editor.parser.Specfile)1 PartInitException (org.eclipse.ui.PartInitException)1