[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] Template engine can't see my pagesAfterTemplateSelectionProvide class
|
Hi Beth,
I have attached a fix for this problem,
not using the reflection API directly. Originally it was implemented in
the "Eclipse way" to create the executable class using ExtensionRegistry,
when I implemented it as a standalone plugin. But during the integration
of TE into new project model, and the seperation of core and ui parts of
the TE resulted in calling the Reflection API directly. I fixed this problem
now with the following patch. Did you open a defect for this issue? If
not, please ask a committer to apply this patch, if you found it's ok.
Regards,
-Bala
Beth Tibbitts <tibbitts@xxxxxxxxxx>
Sent by: cdt-dev-bounces@xxxxxxxxxxx
28/09/2007 12:30
Please respond to
"CDT General developers list." <cdt-dev@xxxxxxxxxxx> |
|
To
| cdt-dev@xxxxxxxxxxx
|
cc
|
|
Subject
| [cdt-dev] Template engine can't see
my pagesAfterTemplateSelectionProvide
class |
|
I'm getting a ClassNotFoundException when the template engine tries to
load
my pagesAfterTemplateSelectionProvider class.
The class is indeed there.
java.lang.ClassNotFoundException:
org.eclipse.ptp.pldt.wizards.wizardPages.MPIPageProvider
....
at org.eclipse.cdt.ui.templateengine.Template.getExtraCreatedPages(
Template.java:147)
<template
filterPattern=" "
id="org.eclipse.ptp.pldt.projects.MPIhelloWorldCProject"
location="templates/MPIhelloWorldCproject/template.xml"
pagesAfterTemplateSelectionProvider=
"org.eclipse.ptp.pldt.wizards.wizardPages.MPIPageProvider"
projectType=."org.eclipse.cdt.build.core.buildArtefactType.exe"
>
</template>
in Template.java it's using Class.forName instead of the eclipse class
loader
//e.g.
pagesProvider="org.eclipse.ptp.pldt.wizards.wizardPages.MPIPageProvider";
Class clazz = Class.forName(pagesProvider);
instead of something like.
ExtensionRegistry.createExecutableExtension()
Have you been able to get this to work using a class in another project
from template engine, as the pagesAfterTemplateSelectionProvider class?
Are these changes what you were talking about that will be coming in 4.0.2?
...Beth
Beth Tibbitts (859) 243-4981 (TL 545-4981)
High Productivity Tools / Parallel Tools http://eclipse.org/ptp
IBM T.J.Watson Research Center
Mailing Address: IBM Corp., 455 Park Place, Lexington, KY 40511
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev
Taking our world with us...
Make sure you visit the Symbian Smartphone Show, 16-17 October 2007, Excel, London
smartphoneshow.com
**********************************************************************
Symbian Software Ltd is a company registered in England and Wales with registered number 4190020 and registered office at 2-6 Boundary Row, Southwark, London, SE1 8HP, UK. This message is intended only for use by the named addressee and may contain privileged and/or confidential information. If you are not the named addressee you should not disseminate, copy or take any action in reliance on it. If you have received this message in error please notify postmaster@xxxxxxxxxxx and delete the message and any attachments accompanying it immediately. Neither Symbian nor any of its Affiliates accepts liability for any corruption, interception, amendment, tampering or viruses occurring to this message in transit or for any message sent by its employees which is not in compliance with Symbian corporate policy.
**********************************************************************
Attachment:
fix_template_extrapages.txt.zip
Description: Zip archive