dynamic generation of contents inside view [message #242734] |
Thu, 20 May 2004 04:57 |
Eclipse User |
|
|
|
Originally posted by: aditya.louisiana.edu
Hi all,
I am trying to generate contents inside a view dynamically. i.e I want
whenever i press a action button on my workbench page, view gets
poupulated with the swt widgets, "labels" in particular, having some
strings gererated at runtime. I am able to do it statically by adding
widgets in createPartControl.
To make it more clear i have a blank view when the perspective opens but i
need it to get populated after i press some button.
I have tried to add selectionListener in createPartControl method but
don't know what to write in public void run(IAction action) of my
Actionset class that implements IWorkbenchWindowActionDelegate. Also i
doubt that i can use any viewer (that has the refresh method) since it is
a customized view (please correct me if i am wrong). That is i think i
can't use ListViewer etc.
It also says that user should not call createPartControl method.
Please help!
Regards
Aditya
|
|
|
Powered by
FUDForum. Page generated in 0.03396 seconds