AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Authoring Eclipse plugins. Actions and views help.

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java GUI Toolkits
View previous topic :: View next topic  
Author Message
aarbit@gmail.com
Guest





PostPosted: Tue Sep 20, 2005 8:59 pm    Post subject: Authoring Eclipse plugins. Actions and views help. Reply with quote



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





PostPosted: Wed Sep 21, 2005 3:05 am    Post subject: Re: Authoring Eclipse plugins. Actions and views help. Reply with quote



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





PostPosted: Wed Sep 21, 2005 6:20 am    Post subject: Re: Authoring Eclipse plugins. Actions and views help. Reply with quote



Sounds a bit like a cross-cutting concern, you might want to look at
AspectJ.
--
Regards,
Casey
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java GUI Toolkits All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.