Paul Webster Messages: 6813 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.
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.
>
>
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.
Christoph Keimel Messages: 277 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?
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