Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] null pointer exception in C/C++ editor

Wieant,

       I have not modified CDT Project creation, what i did is created my own wizard using CDTwizard extension point  and made a copy of the 
CDTCommonProjectWizard  to support my own project creation  process.

         As far as the CDT modifications are concerned i commented out the templates in CDT because we are adding our own templates, if they are not commented they appear as part of our templates under the executable project type ( is there a work around this i.e is there a way to separate out the CDT templates from my application templates without commenting them  )

        Secondly i removed the ScannerConfigDiscoveryProfile for C projects because i did not want the default gcc includes to appear when my projects are created.

Thats it

Regards,
Sheldon

On 10/23/07, Wieant Nielander <wieant@xxxxxxxxx> wrote:
> I have made changes to the following plugins
>
> org.eclipse.cdt.managedbuilder.gnu.ui
> org.eclipse.cdt.ui
> org.eclipse.cdt.managedbuilder.ui
>
> Basically commented out some of the templates and CDTWizards and added my
> own. Will this cause an issue

Sheldon,

Instead of modifying CDT itselve, another approach is to create your
own new project wizard, thus basically providing your own new wizard
extension point. The INewWizard class linked to this extension can be
your own extension to the CDTCommonProjectWizard class, allowing you
to reuse most of the standard CDT new project wizard functionality.

Advantages are that your plugins can be plugged into environments
without having to overwrite the CDT plugins, and that you don't have
to redo all your changes everytime CDT updates (and ofcourse you
prevent your updates from causing new NPEs;-)

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


Back to the top