How to control a widget in ApplicationWindow from ToolBar Action [message #459507] |
Sun, 03 December 2006 20:15 |
Eclipse User |
|
|
|
Originally posted by: partyhut.internode.on.net
Hi all,
I have a main window in my application that extends ApplicationWindow
and I used createToolBarManager(int style) with Action class to add a
button to the toolbar. I used createContents() to add a composite (C1)
to the main working area of my main window. My question is, is there
anyway I can use that button on the toolbar to control C1 in my main
window? Since the createToolBar() method is called from the main window
constructor, I guess the toolbar is initiated b4 the contents of the
main window... so I will get null pointer exception if a user click on
the button in the toolbar...and I am actually getting it :( Can anybody
point me to the right direction? thank you!
HS
|
|
|
Powered by
FUDForum. Page generated in 0.02900 seconds