Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Toggle Menu Item
Toggle Menu Item [message #335027] Tue, 17 March 2009 11:45 Go to next message
Madhu Samuel is currently offline Madhu SamuelFriend
Messages: 199
Registered: July 2009
Senior Member
Hello,

I need to use a toggle menu item. The status of the toggle menu item needs
to be persisted even if I close the eclipse instance. That means if I
check the toggle menu item and restart eclipse, the toggle menu item
should be in checked state itself.

Right now, I have implemented the toggle menu item using the command
"org.eclipse.ui.commands" extension point. But I am not able to persist
the toggle state.

If eclipse does not provide a built-in persistence for toggle menu item,
how can I use my own persistence mechanism? Can I use my own
PersistenceStore?

Any help is appreciated.

Regards,
Madhu


Re: Toggle Menu Item [message #335029 is a reply to message #335027] Tue, 17 March 2009 12:58 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

I'm not sure that's supported in eclipse 3,4, but it should be in 3.5 M6:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=221980


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Re: Toggle Menu Item [message #335032 is a reply to message #335027] Tue, 17 March 2009 14:53 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
This might help you:
http://blog.eclipse-tips.com/2009/03/commands-part-6-toggle- radio-menu.html

- Prakash
--

http://blog.eclipse-tips.com

"Madhu Samuel" <madhu.samuel@in.bosch.com> wrote in message
news:6dc01efd9ec8c5896b55877207ab4179$1@www.eclipse.org...
> Hello,
>
> I need to use a toggle menu item. The status of the toggle menu item needs
> to be persisted even if I close the eclipse instance. That means if I
> check the toggle menu item and restart eclipse, the toggle menu item
> should be in checked state itself.
> Right now, I have implemented the toggle menu item using the command
> "org.eclipse.ui.commands" extension point. But I am not able to persist
> the toggle state.
>
> If eclipse does not provide a built-in persistence for toggle menu item,
> how can I use my own persistence mechanism? Can I use my own
> PersistenceStore?
>
> Any help is appreciated.
>
> Regards,
> Madhu
>
Re: Toggle Menu Item [message #335045 is a reply to message #335032] Thu, 19 March 2009 01:06 Go to previous message
Madhu Samuel is currently offline Madhu SamuelFriend
Messages: 199
Registered: July 2009
Senior Member
Prakash G.R. wrote:

> This might help you:
> http://blog.eclipse-tips.com/2009/03/commands-part-6-toggle- radio-menu.html

> - Prakash

Thanks Prakash! We had read your blog earlier. But unfortunately many
features are available only in Eclipse 3.5. And we are using Eclipse 3.4
now.

Regards,
Madhu


Previous Topic:Post save event listener
Next Topic:Registering own IDocumentProvider
Goto Forum:
  


Current Time: Wed Jul 17 15:28:27 GMT 2024

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

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

Back to the top