File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes adding a checkbox in toolbar of eclipse view. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "adding a checkbox in toolbar of eclipse view." Watch "adding a checkbox in toolbar of eclipse view." New topic
Author

adding a checkbox in toolbar of eclipse view.

Bharath Raja
Ranch Hand

Joined: Jan 21, 2009
Posts: 111
I've my own view and I can added a action item in toolbar of that view. Now I wanna to add one check box in that view, based on that check-box action only, my forthcoming steps have to be achieved. Is that possible to add a swt check box in tool bar. I've added a action using below code.



Because of IToolBarManager's add method only accept Action/IAction, the following code will give me the error.


any idea to add check-box in toolbar...


Life is either daring something or nothing - Helen Keller
Bharath Raja
Ranch Hand

Joined: Jan 21, 2009
Posts: 111
Finally I've added the toggle button in view's tool bar through the following code.

 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: adding a checkbox in toolbar of eclipse view.
 
Similar Threads
RCP shortcut keys! Pls HELP!
JToolBar icons not seen
Separate Actions and GUI
Adding syntax highlighting to existing application.
Adding toolbar (Action bars) to Tabbed Properties View in Eclipse