Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [pde-dev] PDE Wizard

The wizard is provided when addPages() is called.  If you store that wizard, you can add additional pages once selection has been made.  You will have to test to make sure the next/finish enablement work correctly.

Curtis

Inactive hide details for Suneth Vijayindu ---09/11/2013 09:32:43 AM---Hi, I want to add another two pages for this wizard. DepSuneth Vijayindu ---09/11/2013 09:32:43 AM---Hi, I want to add another two pages for this wizard. Depending on the value the

From: Suneth Vijayindu <svijayindu@xxxxxxxxx>
To: "Eclipse PDE general developers list." <pde-dev@xxxxxxxxxxx>,
Date: 09/11/2013 09:32 AM
Subject: Re: [pde-dev] PDE Wizard
Sent by: pde-dev-bounces@xxxxxxxxxxx





Hi,
I want to add another two pages for this wizard. Depending on the value the user select from the drop down menu <(addComboChoiceOption("containerID", "service.exported.configs", Value_ecg_providers, "",0);>   in the first wizard page



On Wed, Sep 11, 2013 at 7:53 PM, Curtis Windatt <Curtis_Windatt@xxxxxxxxxx> wrote:
    Hi,

    I'm not certain I follow what you are trying to do.  ITemplateSection, which OptionTemplateSection implements, has a method called addPages() which adds the pages from the given wizard to the new project wizard.  Are you trying to use the template UI API to contribute templates or are you trying to use OptionTemplateSection in your own code? I would examine what addPages() does and attempt to replicate it.


    Curtis


    Inactive hide details for Suneth Vijayindu ---09/07/2013 01:41:24 PM---Hi all, Following code section is used to create Plugin Suneth Vijayindu ---09/07/2013 01:41:24 PM---Hi all, Following code section is used to create Plugin Development project. in the

    From:
    Suneth Vijayindu <svijayindu@xxxxxxxxx>
    To:
    pde-dev@xxxxxxxxxxx,
    Date:
    09/07/2013 01:41 PM
    Subject:
    [pde-dev] PDE Wizard
    Sent by:
    pde-dev-bounces@xxxxxxxxxxx





    Hi all,
    Following code section is used to create Plugin Development project. in the first page user select a value from drop down menu.
    I want to the second page to be diffret according to the value selected
    in the frist page how can I do it.   

    3

    public class RemoteServiceHostExample1Template extends OptionTemplateSection {

    private String packageName;
    private String[][] Value_ecg_providers;
    private Properties providers=new Properties();//create the property file for the providers


    public RemoteServiceHostExample1Template() {
    setPageCount(3);//set page count of the wizard two
    //read from the property file
    try {
    providers.load(RemoteServiceConsumerExample1Template.class.getClassLoader().getResourceAsStream("providers.properties"));
    Value_ecg_providers = fetchArrayFromPropFile("ecf_providers",providers);
    } catch (FileNotFoundException e) {
    System.out.print("Property file not found");
    // TODO Auto-generated catch block
    e.printStackTrace();
    } catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    }
    addComboChoiceOption("containerID", "service.exported.configs", Value_ecg_providers, "",0);
    }
    //to get data from the property file
    private static String[][] fetchArrayFromPropFile(String propertyName, Properties propFile) {
     String[] a = propFile.getProperty(propertyName).split(";");
     String[][] array = new String[a.length][a.length];
     for(int i = 0;i < a.length;i++) {
       array[i] = a[i].split(",");
     }
     return array;
    }

    /*public void addPages(Wizard wizard) {
    WizardPage page = createPage(0, "org.eclipse.pde.doc.user.rcp_mail");
    page.setTitle("Hello! Remote Service Host");
    page.setDescription("This template creates and exports a Hello remote service");
    wizard.addPage(page);
    }

    --
    Thank You

    Vijayindu_______________________________________________
    pde-dev mailing list

    pde-dev@xxxxxxxxxxx
    https://dev.eclipse.org/mailman/listinfo/pde-dev


    _______________________________________________
    pde-dev mailing list

    pde-dev@xxxxxxxxxxx
    https://dev.eclipse.org/mailman/listinfo/pde-dev



--

Thank You
Vijayindu_______________________________________________
pde-dev mailing list
pde-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pde-dev

GIF image


Back to the top