Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Need help on project creation wizard pages same as in CDT
Need help on project creation wizard pages same as in CDT [message #170753] Mon, 05 June 2006 08:29 Go to next message
Eclipse UserFriend
Hi,

As we are developing an IDE in eclipse by extending CDT, we need to create
a project exactly same as Managed make C Project (under C Category) for
own entry on first page on (New -> Project). I need only two pages (1st
for entering Project name and 2ed is for own configuration and project
type selection). And that sequence of pages should create a project with
given name along with associating that project with own custom builder.

So, what’s the correct approach for going ahead with this particular
assignment?

For this particular, I have extended BasicNewResourceWizard (Abstract base
implementation of workbench wizard that create resource in workspace)
class and used addPages() method in my class for adding first required
page.

Up to this class, first page works well after selecting my project from
(file->project) and press next, but when I enter project name there, that
same project name in default location of workspace with next button on
that page does not get activated to move further. So, where I am wrong
please?

Whole class is like:

package org.eclipse.cdt.cradle.ui.newwizards;

import org.eclipse.cdt.ui.CUIPlugin;
import org.eclipse.cdt.ui.wizards.NewCProjectWizardPage;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IExecutableExtension;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.wizards.newresource.BasicNewResourceWizard;

public class CradleNewWizard extends BasicNewResourceWizard implements
IExecutableExtension {

private static final String CRADLE_PROJECT_PREFIX =
"CProjectWizard";
private static final String PROJECT_WINDOW_TITLE =
"CProjectWizard.windowTitle";

private String cradle_wizard_title = "Cradle Specific Managed
Make C Project";
private String cradle_wizard_desc = "Create a Cradle Specific
Managed Make C Project.";

protected NewCProjectWizardPage CradleMainProjectPage;
protected IConfigurationElement fConfigElement;

public void init(IWorkbench workbench, IStructuredSelection
currentSelection) {
// TODO Auto-generated method stub
super.init(workbench, currentSelection);

setWindowTitle(CUIPlugin.getResourceString(PROJECT_WINDOW_TI TLE));
}

public void addPages(){

// Add the Cradle Main Project Page
CradleMainProjectPage= new
NewCProjectWizardPage(CUIPlugin.getResourceString(CRADLE_PRO JECT_PREFIX));

CradleMainProjectPage.setTitle(cradle_wizard_title);

CradleMainProjectPage.setDescription(cradle_wizard_desc);
addPage(CradleMainProjectPage);
}

Thanks,

Chandresh Gandhi
Re: Need help on project creation wizard pages same as in CDT [message #171212 is a reply to message #170753] Sat, 10 June 2006 23:18 Go to previous message
Eclipse UserFriend
You might want to ask the question on the cdt-dev mailing list.
There are examples of using the CDT managed build wizard extension
system in project org.eclipse.cdt.managedbuilder.ui.tests in the eclipse
cvs system. Also there is some help as well in the "CDT Developer
Guide" - Some updates to this help are in the newer files in the CDT 3.1
builds too. See the builds at
http://download.eclipse.org/tools/cdt/builds/3.1.0/index.htm l

....Beth Tibbitts

Chandresh Gandhi wrote:
> Hi,
>
> As we are developing an IDE in eclipse by extending CDT, we need to
> create a project exactly same as Managed make C Project (under C
> Category) for own entry on first page on (New -> Project). I need only
> two pages (1st for entering Project name and 2ed is for own
> configuration and project type selection). And that sequence of pages
> should create a project with given name along with associating that
> project with own custom builder.
>
> So, what?s the correct approach for going ahead with this particular
> assignment?
>
> For this particular, I have extended BasicNewResourceWizard (Abstract
> base implementation of workbench wizard that create resource in
> workspace) class and used addPages() method in my class for adding first
> required page.
>
> Up to this class, first page works well after selecting my project from
> (file->project) and press next, but when I enter project name there,
> that same project name in default location of workspace with next button
> on that page does not get activated to move further. So, where I am
> wrong please?
>
> Whole class is like:
>
> package org.eclipse.cdt.cradle.ui.newwizards;
>
> import org.eclipse.cdt.ui.CUIPlugin;
> import org.eclipse.cdt.ui.wizards.NewCProjectWizardPage;
> import org.eclipse.core.runtime.IConfigurationElement;
> import org.eclipse.core.runtime.IExecutableExtension;
> import org.eclipse.jface.viewers.IStructuredSelection;
> import org.eclipse.ui.IWorkbench;
> import org.eclipse.ui.wizards.newresource.BasicNewResourceWizard;
>
> public class CradleNewWizard extends BasicNewResourceWizard implements
> IExecutableExtension {
> private static final String CRADLE_PROJECT_PREFIX
> = "CProjectWizard";
> private static final String PROJECT_WINDOW_TITLE =
> "CProjectWizard.windowTitle";
> private String cradle_wizard_title = "Cradle
> Specific Managed Make C Project";
> private String cradle_wizard_desc = "Create a Cradle Specific
> Managed Make C Project.";
> protected NewCProjectWizardPage
> CradleMainProjectPage;
> protected IConfigurationElement fConfigElement;
> public void init(IWorkbench workbench,
> IStructuredSelection currentSelection) {
> // TODO Auto-generated method stub
> super.init(workbench, currentSelection);
>
> setWindowTitle(CUIPlugin.getResourceString(PROJECT_WINDOW_TI TLE));
> }
> public void addPages(){
> // Add the
> Cradle Main Project Page
> CradleMainProjectPage= new
> NewCProjectWizardPage(CUIPlugin.getResourceString(CRADLE_PRO JECT_PREFIX));
> CradleMainProjectPage.setTitle(cradle_wizard_title);
>
> CradleMainProjectPage.setDescription(cradle_wizard_desc);
> addPage(CradleMainProjectPage);
> }
> Thanks,
>
> Chandresh Gandhi
>
Previous Topic:debug variables blank
Next Topic:Keyboard Layout
Goto Forum:
  


Current Time: Sat Nov 08 07:58:19 EST 2025

Powered by FUDForum. Page generated in 0.03551 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top