Enable/Disable Action in View ToolBar [message #463833] |
Fri, 16 February 2007 06:26 |
Eclipse User |
|
|
|
Originally posted by: czupras.foni.net
Hello,
I have a View with a TableViewer.
The View has a ToolBar:
saveTableAction = new SaveTableAction();
IToolBarManager tbMgr = getViewSite().getActionBars().getToolBarManager();
tbMgr.add(saveTableAction);
The SaveTableAction implements IAction because I'll also use it in
the context menu of the TableViwer.
So my question is how to set the Action enabled when e.g. a cell in the
Table is modified.
Just saveTableAction.setEnabled(true); doesn't work.
I would like to have a Listener or sth. comparable.
A tutorial or a sample would help! I searched arround the newsgroup and the web,
but nothing can be found concerning this problem...
thanks for help
Chris
|
|
|
Powered by
FUDForum. Page generated in 0.03765 seconds