tsquires
Oct 3rd, 2004, 09:57 PM
Hi,
a little background - in the last swing app I wrote (which was a *long* time ago) I attached a mouse listener to a JTree so that nodes were selected on a right-click, to mimic windows select-before-popup behaviour.
After tinkering with RCP for a while I thought I'd try to implement the same behaviour as an interceptor (as an excercise to get to grips with RCP) in the petclinic - ensuring that *any* JTree in the app would get the desired behaviour.
Alas, it would seem that the views in petclinic aren't plumbed in so that FormComponentInterceptors can be hooked up.
This leaves me a bit confused now about the differences and relationships of views and forms.
Is there anyone with an understanding of how this all fits together that would be willing to educate me?
Thanks,
Trevor
a little background - in the last swing app I wrote (which was a *long* time ago) I attached a mouse listener to a JTree so that nodes were selected on a right-click, to mimic windows select-before-popup behaviour.
After tinkering with RCP for a while I thought I'd try to implement the same behaviour as an interceptor (as an excercise to get to grips with RCP) in the petclinic - ensuring that *any* JTree in the app would get the desired behaviour.
Alas, it would seem that the views in petclinic aren't plumbed in so that FormComponentInterceptors can be hooked up.
This leaves me a bit confused now about the differences and relationships of views and forms.
Is there anyone with an understanding of how this all fits together that would be willing to educate me?
Thanks,
Trevor