Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to control a widget in ApplicationWindow from ToolBar Action
How to control a widget in ApplicationWindow from ToolBar Action [message #459507] Sun, 03 December 2006 20:15
Eclipse UserFriend
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
Previous Topic:Browser within the editor page
Next Topic:Default Size of WizardPages/PreferencePages
Goto Forum:
  


Current Time: Wed Mar 19 16:37:36 EDT 2025

Powered by FUDForum. Page generated in 0.02900 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top