Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Enable/Disable Action in View ToolBar
Enable/Disable Action in View ToolBar [message #463833] Fri, 16 February 2007 06:26
Eclipse UserFriend
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
Previous Topic:Why we need plugin_customizations.ini?
Next Topic:Iconic View in Table Viewer
Goto Forum:
  


Current Time: Mon Mar 24 16:53:25 EDT 2025

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

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

Back to the top