Community
Participate
Working Groups
SWTBot.java has a comment at the top saying it's a generated file. I ran a local releng build and it does not appear that the file is regenerated or touched. If there is something to the comment, then a more explanatory comment would help. If there isn't, the comment should be removed to avoid confusion.
Good catch. I'll fix this. In the meanwhile checkout widgets.xml and SWTBotGeneratorMain in the generator plugin to generate the SWTBot class using annotations on your widget.
(In reply to comment #1) > Good catch. I'll fix this. In the meanwhile checkout widgets.xml and > SWTBotGeneratorMain in the generator plugin to generate the SWTBot class using > annotations on your widget. That plugin doesn't build for me. The following two imported packages are unresolved: com.thoughtworks.qdox;version="1.6.3" org.hamcrest.generator.config;version="1.1.0"
You will find these in the relent/externals directory. The materialize-workspace target usually sets this up.
(In reply to comment #3) > You will find these in the relent/externals directory. The > materialize-workspace target usually sets this up. Ah. OK. I'm not trying to be a pain, but how is someone trying to build the SWTBot plugins in the IDE for the first time supposed to discover that? And while adding those plugins to my target platform fixed a lot of the build problems I was having, there are still other ones that are equally a mystery: org.eclipse.swtbot.eclipse.ui: What are we supposed to do with the src_eclipse_3.4 and src_eclipse_3.5 directories? It seems to me there's another manual step involved, but where's that documented? org.eclipse.swtbot.junit4_x: The project seems misconfigured somehow. It shows ScreenshotCaptureListener as being in the package "src.org.eclipse.swtbot.swt.finder.junit" (note the leading "src.") I think it would really help if you fleshed out the releng readme.txt with important information that I think very few, if anyone, is going to be able to figure out on his own.
The ant target does all that for you. But as you mention it is broken because the ant contrib download breaks causing the rest of the setup process to not go through. Try the 'make-substitution' target and see how it goes. I am currently on vacation and away from my computer so really cannot help very much except for checking bugzilla on my phone. Please bear with me for a while, I promise to look at these issues first thing when I get back end of week.
(In reply to comment #5) > Please bear with me for a while, I promise to look at these issues first thing > when I get back end of week. Needless to say, please keep the feedback coming. I'll fix things one at a time. I know that the documentation is broken at more than one places, and has not received as much love as the rest of SWTBot.
Marking as fixed. I've added a better comment with a readme file explaining how to generate that class. Please review and reopen if there's anything else that needs fixing. Here's the changeset for your review: https://github.com/ketan/SWTBot/commit/8f9f873fb153b9264a2de15b9f05d50bba66e00f
Created attachment 185814 [details] mylyn/context/zip
(In reply to comment #7) > Marking as fixed. I've added a better comment with a readme file explaining how > to generate that class. Please review and reopen if there's anything else that > needs fixing. Here's the changeset for your review: > > https://github.com/ketan/SWTBot/commit/8f9f873fb153b9264a2de15b9f05d50bba66e00f Thanks. I followed the readme and was able to generate a new version of SWTBot. Thanks.