by jburel » Tue Sep 01, 2009 2:29 pm
>Please, any one tell me, how i can understand. I want to know, for example, where is the code written for >showing the "Create Project" button, and what happens when we click on that (where the control goes).
Go to the TreeViewer package,
The UI button is initialized in the Toolbar (package view), the Menu item in the TreeViewerWin (package view).
The action, set for button and menu item, is initialized in the TreeViewerControl (package view).
In the "Create Project" case, the action to look at is CreateTopContainer (package actions).
In this action, you will see that where we listen to state changes, selection changes, etc
Have a look at the actionPerformed method to see what's happening when a user clicks on the button
or select the menu item.
jmarie