Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT / MVC and menu listeners
SWT / MVC and menu listeners [message #444653] Tue, 19 October 2004 13:18
Eclipse UserFriend
Originally posted by: James.Corbett.CCRA-ADRC.GC.CA


I am using a controller class to set up my application. Essentially it
calls the main form and is there waiting for events. I have a class for
building my main menu and its called from the main form. What I want to do
is set up a listener from the controller class so that when a menu option
is evoked I can process the information into my status line which is also
another class. Initially I tried to reference the main form from the menu
class and then repopulate the text of the status line but the main form
wasn't visible to the menu class and it fell apart.

I asked one of my work mates on how best to approach this issue and he
suggested that I implement a controller class which by default would have
the Main method. So, is it possible to set up a listener in the
controller? If so, is the listener waiting for an event from the main form
or from the menu class?

Many thanks in advance.

Previous Topic:Disposal of CTabItem
Next Topic:possible bug in TableItem.getBackground(index)
Goto Forum:

Current Time: Sat Nov 28 23:40:46 GMT 2020

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

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

Back to the top