Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Sapphire » Using customCallbacks.xml
Using customCallbacks.xml [message #726126] Fri, 16 September 2011 16:12 Go to next message
Kamesh Sampath is currently offline Kamesh SampathFriend
Messages: 213
Registered: July 2009
Senior Member
Hi,

I am having some problems with my Annotation processing for Sapphire. I just
have opened only one project in my workspace and when I try to build to
generate the classes. The classes are not getting generated. Not sure what
is the issue. I tried to take the cutomCallbacks.xml form the Sapphire
samples distribution to see if that helps but I see that xml is not called
from plugin.

Any way to overcome this problem ?

~ Kamesh
Re: Using customCallbacks.xml [message #726163 is a reply to message #726126] Fri, 16 September 2011 17:16 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
The customCallbacks.xml file is only used during the commandline build. To get annotation processing to work in Eclipse, you have to enable it under Project Properties -> Java Compiler -> Annotation Processing. You may want to compare your project metadata files with project metadata files in the samples project to get a handle on what it takes to configure a Sapphire project.

- Konstantin
Re: Using customCallbacks.xml [message #726185 is a reply to message #726163] Fri, 16 September 2011 18:18 Go to previous messageGo to next message
Kamesh Sampath is currently offline Kamesh SampathFriend
Messages: 213
Registered: July 2009
Senior Member
I was not sure what was the issue, I just shifted my projects to new
workspace and just started afresh and its started compiling and generating
the resources. Also when I comparing the meta files on the Samples project
I see a new builder called org.eclipse.sapphire.sdk.builder was added to the
project. From which dependency its coming and where its mandatory for us to
add it to the project builders to make sapphire generate the model classes
properly?



~ Kamesh
"Konstantin Komissarchik" wrote in message
news:j4vvk7$d2b$1@news.eclipse.org...

The customCallbacks.xml file is only used during the commandline build. To
get annotation processing to work in Eclipse, you have to enable it under
Project Properties -> Java Compiler -> Annotation Processing. You may want
to compare your project metadata files with project metadata files in the
samples project to get a handle on what it takes to configure a Sapphire
project.

- Konstantin
Re: Using customCallbacks.xml [message #726187 is a reply to message #726185] Fri, 16 September 2011 18:30 Go to previous message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
The builder is from Sapphire SDK, which you should already have in your dev eclipse. It is required. It is responsible for tasks that cannot be performed in the annotation processor (such as externalizing strings from .sdef files and may do more in the future).

- Konstantin

[Updated on: Fri, 16 September 2011 18:30]

Report message to a moderator

Previous Topic:Composite Creation
Next Topic:Test Post
Goto Forum:
  


Current Time: Thu Apr 25 07:21:04 GMT 2024

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

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

Back to the top