Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] C project type only

I would say that there is no correct way to obtain the project nature
from isSuported call-back.
Note, the isSupported is called NOT only from the project creation UI.
If it is called, e.g. from the builder or from the build property page,
the call to the MBSCustomPageManager.getPageProperty will return
incorrect values.

The isSupported functionality was not intended to allow project nature
filtering, but to provide the mechanism to specify MBS whether the
support for the given tool-chain (all the necessary tools, etc.) is
installed on the system.

I suppose that the issue Rick is mentioning will be fixed in the future
CDT releases, since the project creation UI will very likely be changed
in the future as a result of the forthcoming enhancements related to the
cdt-wide tool-chain/configuration, multi-language support, etc. 

Regards,
Mikhail

-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
On Behalf Of Recoskie, Chris
Sent: Wednesday, November 16, 2005 8:09 PM
To: CDT General developers list.
Subject: RE: [cdt-dev] C project type only

Easiest way is to do:

MBSCustomPageManager.getPageProperty(CProjectPlatformPage.PAGE_ID,
CProjectPlatformPage.NATURE).toString()

___________________________________________
 
Chris Recoskie
Software Designer
Texas Instruments, Toronto
http://eclipse.org/cdt
 
 

> -----Original Message-----
> From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
On
> Behalf Of Stewart, Richard
> Sent: Wednesday, November 16, 2005 11:31 AM
> To: CDT General developers list.
> Subject: RE: [cdt-dev] C project type only
> 
> Is there some way to figure out the nature of the project wizard that
is
> calling the isSupported method?  It seems that the only thing passed
to
> isSupported(...) is the ToolChain object itself.  The other two
> arguments are set to null by ToolChain.isSupported().
> 
> Thanks.
> 
> -----Original Message-----
> From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
> On Behalf Of Recoskie, Chris
> Sent: Wednesday, November 16, 2005 9:45 AM
> To: CDT General developers list.
> Subject: RE: [cdt-dev] C project type only
> 
> If you make use of the isToolChainSupported attribute in your
toolchain
> definition, you can control how and when the project type is shown.
> 
> Project types are currently only automatically hidden if the
toolchain's
> osList and archList are not satisfied.
> 
> ___________________________________________
> 
> Chris Recoskie
> Software Designer
> Texas Instruments, Toronto
> http://eclipse.org/cdt
> 
> 
> 
> > -----Original Message-----
> > From: cdt-dev-bounces@xxxxxxxxxxx
[mailto:cdt-dev-bounces@xxxxxxxxxxx]
> On
> > Behalf Of Stewart, Richard
> > Sent: Wednesday, November 16, 2005 8:32 AM
> > To: CDT General developers list.
> > Subject: [cdt-dev] C project type only
> >
> > Is there any way to make a project type show up in the 'Project
Type'
> > drop down list for only C projects, and not C++ projects?  I have no
> > tools defined for C++ projects but my project type still appears in
> the
> > drop down.  Thanks.
> >
> > Rick
> > _______________________________________________
> > 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
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top