Ok, I have a version of SWTBot generator running without org.eclipse.ui in
it's manifest and it runs fine. I had to remove the activator, some icon
loading routines and some logging code. I can see code generated and it's
fine.

I also removed support for workbench parts (IPartListener2) and their
activation and deactivation. I think I can contribute a version which is
specific to Eclipse 4 apps and has much more features because there we have
an event bus (IEventBroker) which makes it possible to listen to and
trigger events like part activation, closing, perspective switch etc. . Now
everything goes through the model layer and we can intercept there.

I'll investigate a bit more and put patches through Gerrit if I come up
with something.

Sopot


On Fri, Apr 11, 2014 at 2:24 PM, Mickael Istria <mist...@redhat.com> wrote:

>  On 04/11/2014 02:12 PM, Sopot Çela wrote:
>
>  Hi,
>
> Hi,
>
>  I'm trying to use the SWTBot generator on a couple of pure Eclipse 4 RCP
> apps I have and it's not working (it's not starting at all). I noticed the
> generator depends on org.eclipse.ui which drags all the 3.x dependencies,
> although I feel they're not always needed. I think the only dependency on
> the 3.x is the way it is activated (AbstractUIPlugin) and something related
> to the IPartListener2. I'd like to remove all dependencies to
> org.eclipse.ui in order just to use a plain generator (no JDT support
> etc.). Do you think I'm being too optimistic about the effort?
>
> Ideally the "plain" SWTBot recorder should only depend on SWT in order to
> run in all contexts supported by SWTBot APIs. So your idea definitely makes
> sense.
> I have the feeling it would be a small workload to remove dependencies to
> non-SWT APIs from org.eclipse.swtbot.generator bundle. So you can be
> optimistic ;)
>
>
>  Are you interested in a contribution in the main codebase or should I
> fork everything ?
>
> I don't see any reason why not making this change in the codebase for the
> simple generator. So feel free to provide patches via Gerrit. More details
> at http://wiki.eclipse.org/SWTBot/Contributing
>
>
>  We can have an o.e.swtbot.e4.generator initially so I don't mess with
> the existing one. This can be used for Eclipse 4 RCPs with no compat layer
> (like mine).
>
> If you had a dependency on some e4 stuff, then it will indeed require a
> specific new plugin.
> If your idea is just to remove dependencies, it's OK to make it in the
> current one.
> It can be a bit of both.
>
> HTH
> --
> Mickael Istria
> Eclipse developer at JBoss, by Red Hat <http://www.jboss.org/tools>
> My blog <http://mickaelistria.wordpress.com> - My 
> Tweets<http://twitter.com/mickaelistria>
>
> _______________________________________________
> swtbot-dev mailing list
> swtbot-dev@eclipse.org
> https://dev.eclipse.org/mailman/listinfo/swtbot-dev
>
>
_______________________________________________
swtbot-dev mailing list
swtbot-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/swtbot-dev

Reply via email to