Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Where is the API for accessing persisted state?
Where is the API for accessing persisted state? [message #664207] Thu, 07 April 2011 20:05 Go to next message
No real name is currently offline No real nameFriend
Messages: 113
Registered: July 2009
Senior Member
I have tried googling for the answer, but could not found it.

How you do access the persisted state stored in the model and defined in the workbench editor?

I have an AddOn with persisted state, but cannot find how to read it.

Re: Where is the API for accessing persisted state? [message #664328 is a reply to message #664207] Fri, 08 April 2011 11:49 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

On 04/07/2011 04:05 PM, aappddeevv@verizon.net wrote:
> I have tried googling for the answer, but could not found it.
>
> How you do access the persisted state stored in the model and defined in
> the workbench editor?
>
> I have an AddOn with persisted state, but cannot find how to read it.

Depending on "where" you are being instantiated, or invoked, you can ask
for the model, or the EModelService. Ex: for an AddOn, you can ask for
the MApplication.

PW


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


Re: Where is the API for accessing persisted state? [message #664336 is a reply to message #664207] Fri, 08 April 2011 12:09 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
How did the addon persisted the state?

Tom

Am 07.04.11 22:05, schrieb aappddeevv@verizon.net:
> I have tried googling for the answer, but could not found it.
>
> How you do access the persisted state stored in the model and defined in
> the workbench editor?
>
> I have an AddOn with persisted state, but cannot find how to read it.
>
>
Re: Where is the API for accessing persisted state? [message #664352 is a reply to message #664336] Fri, 08 April 2011 14:01 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 113
Registered: July 2009
Senior Member
Through the workbench editor. There is key-value set of fields for persisted state in a number (not sure all) model classes. In this case it was for Addon.

At first I thought it was a per EMF thing but now I am not so sure.
Re: Where is the API for accessing persisted state? [message #666490 is a reply to message #664352] Wed, 20 April 2011 15:02 Go to previous messageGo to next message
Christoph Keimel is currently offline Christoph KeimelFriend
Messages: 482
Registered: December 2010
Location: Germany
Senior Member
Hi,

I am currently working on a related problem. My goal is to create a Handler to enable the user to reset the UI layout und I am also searching for the API to do this.

I expected the API in EModelService but didn't recognize it there.

Is it necessary to use Perpectives to get access to features like this?

Regards,
Christoph
Re: Where is the API for accessing persisted state? [message #666499 is a reply to message #666490] Wed, 20 April 2011 15:26 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Please file a bug so that we can add support for resetting also in case
of none perspective use.

Tom

Am 20.04.11 17:02, schrieb Christoph Keimel:
> Hi,
>
> I am currently working on a related problem. My goal is to create a
> Handler to enable the user to reset the UI layout und I am also
> searching for the API to do this.
>
> I expected the API in EModelService but didn't recognize it there.
>
> Is it necessary to use Perpectives to get access to features like this?
>
> Regards,
> Christoph
Re: Where is the API for accessing persisted state? [message #666618 is a reply to message #666499] Thu, 21 April 2011 10:45 Go to previous message
Christoph Keimel is currently offline Christoph KeimelFriend
Messages: 482
Registered: December 2010
Location: Germany
Senior Member
Hi Tom,

Bug is filed: Bug 343512

If using Perspectives: How could this be done? Is this what EModelService.resetPerspectiveModel(...) will do?

The comment to this function sounds more like as if the Perspective will be deleted completely ...

Regards,
Christoph
Previous Topic:Maximizing a Part
Next Topic:4.1M7 and e4 0.11M7 are now available
Goto Forum:
  


Current Time: Tue Apr 16 12:29:40 GMT 2024

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

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

Back to the top