Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » workbench.xmi not updated?(My app is updated but the old xmi is loaded)
workbench.xmi not updated? [message #1268490] Mon, 10 March 2014 15:12 Go to next message
Sebastien Pennec is currently offline Sebastien PennecFriend
Messages: 27
Registered: April 2013
Location: Switzerland
Junior Member
Hello,

I have an E4 app that updates itself at startup, based on an update site.

Today I corrected a bug related to key bindings, and pushed a new version. The app correctly updated itself at launch but the bug was still there.

I finally found out that by deleting the file located at ".metadata/plugins/org.eclipse.e4.workbench/workspace.xmi" and restarting, the bug disapeared.

What are the rules that trigger the creation of a new workspace.xmi file? Is it something that I can force at startup time?

Thanks for your help,

Sébastien
Re: workbench.xmi not updated? [message #1268878 is a reply to message #1268490] Tue, 11 March 2014 05:00 Go to previous messageGo to next message
Sumit Singh is currently offline Sumit SinghFriend
Messages: 141
Registered: October 2012
Location: Bangalore
Senior Member

Use -clearPersistedState option.

[Updated on: Tue, 11 March 2014 05:00]

Report message to a moderator

Re: workbench.xmi not updated? [message #1268912 is a reply to message #1268878] Tue, 11 March 2014 06:07 Go to previous messageGo to next message
Sebastien Pennec is currently offline Sebastien PennecFriend
Messages: 27
Registered: April 2013
Location: Switzerland
Junior Member
Hi,

Thanks for your answer.

It's true that using the option to clear the persisted state solves the problem, but I'm not going to ask my users to do it. It's a technical operation they do not need to worry about.

The situation here is that I deploy a new version of the app but the old version's XMI is still used. What should I do to prevent that?
Re: workbench.xmi not updated? [message #1268944 is a reply to message #1268912] Tue, 11 March 2014 07:05 Go to previous messageGo to next message
Sumit Singh is currently offline Sumit SinghFriend
Messages: 141
Registered: October 2012
Location: Bangalore
Senior Member

Open you product and you can add this option under Launching Argument. See the below image.
index.php/fa/17698/0/
  • Attachment: Untitled.png
    (Size: 48.62KB, Downloaded 2994 times)
Re: workbench.xmi not updated? [message #1268969 is a reply to message #1268944] Tue, 11 March 2014 07:59 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
I think he generally wants persist the state and not clear it always, so
what he needs is a way to clear it only when the application is updated.

I don't think there's a general solution in place for e4 and one has to
develop ones own. A custom solution I could think of is to use the
lifecycle PostContextCreate and proactively remove the workbench.xmi
when an update is detected on the first start after the update.

I think that we (=e4) should provide a general solution to this problem
so I'd like you to file a bug and ask for a solution provide by the
framework!

Tom

On 11.03.14 08:05, sumit singh wrote:
> Open you product and you can add this option under Launching Argument. See the below image.
>
Re: workbench.xmi not updated? [message #1269045 is a reply to message #1268969] Tue, 11 March 2014 10:05 Go to previous messageGo to next message
Sebastien Pennec is currently offline Sebastien PennecFriend
Messages: 27
Registered: April 2013
Location: Switzerland
Junior Member
Thanks Thomas, I'll do that right away. Where should I open it? Platform/Runtime? Or E4/Runtime?
Re: workbench.xmi not updated? [message #1269058 is a reply to message #1269045] Tue, 11 March 2014 10:20 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
I think Platform/UI is the right component

Tom

On 11.03.14 11:05, Sebastien Pennec wrote:
> Thanks Thomas, I'll do that right away. Where should I open it?
> Platform/Runtime? Or E4/Runtime?
Re: workbench.xmi not updated? [message #1269098 is a reply to message #1269058] Tue, 11 March 2014 11:25 Go to previous message
Sebastien Pennec is currently offline Sebastien PennecFriend
Messages: 27
Registered: April 2013
Location: Switzerland
Junior Member
Here's the link to the bug entry: https://bugs.eclipse.org/bugs/show_bug.cgi?id=430090
Previous Topic:set max item count for PartStack
Next Topic:FolderLayout / PartStack stay open in compatibility mode
Goto Forum:
  


Current Time: Fri Mar 29 06:11:41 GMT 2024

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

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

Back to the top