Skip to main content



      Home
Home » Eclipse Projects » Eclipse 4 » workbench.xmi is not written in my e4 app
workbench.xmi is not written in my e4 app [message #1034414] Fri, 05 April 2013 08:02 Go to next message
Eclipse UserFriend
I am trying to implement persistance for my e4 app.
What could be the reason for my app for not to create/read the "workbench.xmi"

What I did:
I removed -persistState - @Inject@Named(E4Workbench.PERSIST_STATE) is true.
I removed -clearPersistedState - @Inject@Named(E4Workbench.CLEAR_PERSISTED_STATE) is false.
Re: workbench.xmi is not written in my e4 app [message #1034416 is a reply to message #1034414] Fri, 05 April 2013 08:04 Go to previous messageGo to next message
Eclipse UserFriend
Are you sure you are not cleaning the workspace in your launch
configuration? Please also note that those values can maybe be found in
your plugin.xml where you configure your product!

Tom

On 05.04.13 14:02, Alex Kipling wrote:
> I am trying to implement persistance for my e4 app.
> What could be the reason for my app for not to create/read the
> "workbench.xmi"
>
> What I did:
> I removed -persistState - @Inject@Named(E4Workbench.PERSIST_STATE) is true.
> I removed -clearPersistedState -
> @Inject@Named(E4Workbench.CLEAR_PERSISTED_STATE) is false.
Re: workbench.xmi is not written in my e4 app [message #1034423 is a reply to message #1034416] Fri, 05 April 2013 08:14 Go to previous messageGo to next message
Eclipse UserFriend
Hey Tom:

I am injecting the following:

    @Inject
    @Named(E4Workbench.PERSIST_STATE)
    private boolean persistState; //true

    @Inject
    @Named(E4Workbench.CLEAR_PERSISTED_STATE)
    private boolean clearPersistedState; //false



I unchecked RunConfiguration> Main > Clear (Workspace Data)
I unchecked RunConfiguration> Configuration> Clear te configuration area before closing

so I asume, that the workbench is not cleared.
Re: workbench.xmi is not written in my e4 app [message #1034500 is a reply to message #1034423] Fri, 05 April 2013 09:56 Go to previous messageGo to next message
Eclipse UserFriend
I found, that the workbench.xmi is created in the folder I wrote down in "Runtime Configuration > Workspace Data" at application runtime,

but it is deleted, when the app is closed again.

Does it make any sence?
Re: workbench.xmi is not written in my e4 app [message #1173685 is a reply to message #1034500] Wed, 06 November 2013 12:41 Go to previous messageGo to next message
Eclipse UserFriend
I had a similar issue to yours. The trick is that there are 3 different places to modify:

1) Run Configurations/Arguments tab: Remove -clearPersistedState from your Program arguments textbox.
2) Run Consigurations/Main tab: Uncheck Clear
3) plugin.xml: Remove this element:
<property name="clearPersistedState" value="true"></property>
Re: workbench.xmi is not written in my e4 app [message #1180196 is a reply to message #1173685] Sun, 10 November 2013 16:11 Go to previous message
Eclipse UserFriend
I fixed number three in the tooling so if you generate a new sample e4 app you won't get the 3) by default.
Previous Topic:Fragments / Imports / Part Descriptors
Next Topic:Get visible parts of a partstack
Goto Forum:
  


Current Time: Mon Jul 07 23:49:31 EDT 2025

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

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

Back to the top