 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
aarbit@gmail.com Guest
|
Posted: Tue Sep 20, 2005 8:59 pm Post subject: Authoring Eclipse plugins. Actions and views help. |
|
|
I'm new to how to work with actions and views as related to writing
Eclipse plugins using SWT and JFace.
What I am attempting to do is have a tree that creates/updates a view
when a leaf is selected.
I've been experimenting with code and I've gotten a view to show up on
the first click of a leaf, but it doesn't update the data on subsequent
clicks of other leaves.
I'm experienced in Java, but totally new to GUI work. Any help would
be greatly appreciated. Thanks!
|
|
| Back to top |
|
 |
Roedy Green Guest
|
Posted: Wed Sep 21, 2005 3:05 am Post subject: Re: Authoring Eclipse plugins. Actions and views help. |
|
|
On 20 Sep 2005 13:59:27 -0700, [email]aarbit (AT) gmail (DOT) com[/email] wrote or quoted :
| Quote: | I've been experimenting with code and I've gotten a view to show up on
the first click of a leaf, but it doesn't update the data on subsequent
clicks of other leaves.
the key is you have to keep firing events to let Swing know which |
nodes need to be repainted. It is up to you to track that.
TreeModel.fireTreeNodesChanged(...);
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
|
|
| Back to top |
|
 |
Casey Hawthorne Guest
|
Posted: Wed Sep 21, 2005 6:20 am Post subject: Re: Authoring Eclipse plugins. Actions and views help. |
|
|
Sounds a bit like a cross-cutting concern, you might want to look at
AspectJ.
--
Regards,
Casey
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|