Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 12:02 Go to next message
Alex Kipling is currently offline Alex Kipling
Messages: 257
Registered: July 2012
Senior Member
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 12:04 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5403
Registered: July 2009
Senior Member
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 12:14 Go to previous messageGo to next message
Alex Kipling is currently offline Alex Kipling
Messages: 257
Registered: July 2012
Senior Member
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 13:56 Go to previous messageGo to next message
Alex Kipling is currently offline Alex Kipling
Messages: 257
Registered: July 2012
Senior Member
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 17:41 Go to previous messageGo to next message
G. Smith is currently offline G. Smith
Messages: 12
Registered: August 2012
Junior Member
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 21:11 Go to previous message
Sopot Cela is currently offline Sopot Cela
Messages: 597
Registered: December 2010
Senior Member

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: Wed Oct 22 08:12:19 GMT 2014

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

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