Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Saving the state of toggle actions
Saving the state of toggle actions [message #330904] Fri, 15 August 2008 23:21 Go to next message
Nikola Borisov is currently offline Nikola BorisovFriend
Messages: 10
Registered: July 2009
Junior Member
Hi All,

I have a toggle action in my plug-in and i would like it to persist
between start-ups of Eclipse. I actually want to do exactly what Eclipse
has for Build Automatically.

You can turn it on and next time you start eclipse it is turned on. I know
Eclipse holds a field about this in the Preferences Page
(IDEWorkspacePreferencePage.java) but I can not figure out how to tell
change the initial state of my action.

Thanks

Nikola
Re: Saving the state of toggle actions [message #330937 is a reply to message #330904] Mon, 18 August 2008 14:45 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Actions? Or commands? Even with actions, I don't believe the state of
a toggle or radio contribution is saved and then restored.

I believe that state tends to be part of the plugin's model, but of
course access the plugin's model usually means starting the plugin,
which will eventually load all of the visible UI elements and action
delegates/command handlers.

PW

--
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/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Previous Topic:eclipse key bindings
Next Topic:JFace ToolTip Accessibility
Goto Forum:
  


Current Time: Sun Jun 30 13:46:34 GMT 2024

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

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

Back to the top