Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Accessing data in New C Project Wizard

I believe it's up to the custom pages to report whether the wizard should be finishable or not.

===========================
Chris Recoskie
Team Lead, IBM CDT and RDT
IBM Toronto


Inactive hide details for Antony Burton ---02/11/2013 12:28:44 PM---Hi,   Thanks very much for the reply Chris! I can now get mAntony Burton ---02/11/2013 12:28:44 PM---Hi,   Thanks very much for the reply Chris! I can now get my project type with:

From: Antony Burton <aburton@xxxxxxxxxxx>
To: "CDT General developers list." <cdt-dev@xxxxxxxxxxx>
Date: 02/11/2013 12:28 PM
Subject: Re: [cdt-dev] Accessing data in New C Project Wizard
Sent by: cdt-dev-bounces@xxxxxxxxxxx





Hi,
Thanks very much for the reply Chris! I can now get my project type with:

   Object theData = MBSCustomPageManager.getPageProperty("org.eclipse.cdt.managedbuilder.ui.wizard.platformPage", "projectType");
   String projType = theData.toString();

I just have another small question: is it possible to de-validate the finish button on the first page if my project type is selected? For me this is essential to stop the user finishing before reaching the custom pages.

Thanks again,

Antony

On 08/02/2013 17:12, Chris Recoskie wrote:

    See org.eclipse.cdt.managedbuilder.ui.wizards.MBSCustomPageManager.addPageProperty(String, String, Object) and org.eclipse.cdt.managedbuilder.ui.wizards.MBSCustomPageManager.getPageProperty(String, String)

    The stock pages set some properties that you can query from your own pages or from your operation class.

    ===========================
    Chris Recoskie
    Team Lead, IBM CDT and RDT
    IBM Toronto


    Inactive
          hide details for Antony Burton ---02/08/2013 11:08:25 AM---Hi,
          Have asked this question before (both here and on CDAntony Burton ---02/08/2013 11:08:25 AM---Hi,    Have asked this question before (both here and on CDT forum) but no

    From:
    Antony Burton <aburton@xxxxxxxxxxx>
    To:
    cdt-dev@xxxxxxxxxxx
    Date:
    02/08/2013 11:08 AM
    Subject:
    [cdt-dev] Accessing data in New C Project Wizard
    Sent by:
    cdt-dev-bounces@xxxxxxxxxxx





    Hi,
     Have asked this question before (both here and on CDT forum) but no
    answer, so getting a little desperate!

    I will try to be clearer:

    I have extended and added new custom pages to the New C Project wizard
    by extendingorg.eclipse.cdt.managedbuilder.ui.newWizardPages

    How can I access data entered into the first New C Project wizard page
    from one of my custom pages?

    I would really appreciate it if someone could give me an answer.

    I have already searched the internet and CDT forum and read the Managed
    Build System Extensibility Document.

    Thanks,

    Antony


    _______________________________________________
    cdt-dev mailing list

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




    _______________________________________________
    cdt-dev mailing list
    cdt-dev@xxxxxxxxxxx
    https://dev.eclipse.org/mailman/listinfo/cdt-dev
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev

GIF image


Back to the top