Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[xtext-dev] XTextEditor and long running operations while loading

Hi all,

 

atm I am fighting with really annoying problem and maybe you guys have an idea how to solve that.

So first let me explain what the problem is.

 

We have created a DSL in which we describe changes to a “schema”. Small amounts of code lines may result in “heavy” operations in our model which replicates the described changes into the schema.  When opening a file with the generated xtexteditor the whole UI freezes cause of the loading times (normally loading takes less than a second, but sometimes it takes 5sec +).

This is not a problem of xtext. I am totally aware of that… I just want to inform the user about the heavyweight operation and not block him with a non-responding UI.

 

To address this issue my idea was to separate the loading of the resource and the creation of the UI. Long story short I loaded my resource in a Job and wanted to pass the result to the editor.

And here I got stuck. Sure I can create my own editorinput but this seems to be a bit to “much” effort.

 

Did anyone run into a similar issue and maybe give me a hint how to solve the issue correctly?

 

Kind regards

 

Michael

 

 






     


SEEBURGER AG   Vorstand/Seeburger Executive Board:
Sitz der Gesellschaft/Registered Office:   Bernd Seeburger, Axel Haas, Michael Kleeberg
Edisonstr. 1  
D-75015 Bretten Vorsitzender des Aufsichtsrats/Chairperson of the Seeburger Supervisory Board:
Tel.: 07252 / 96 - 0 Dr. Franz Scherer
Fax: 07252 / 96 - 2222
Internet: http://www.seeburger.de Registergericht/Commercial Register:
e-mail: info@xxxxxxxxxxxx HRB 240708 Mannheim


Dieses E-Mail ist nur für den Empfänger bestimmt, an den es gerichtet ist und kann vertrauliches bzw. unter das Berufsgeheimnis fallendes Material enthalten. Jegliche darin enthaltene Ansicht oder Meinungsäußerung ist die des Autors und stellt nicht notwendigerweise die Ansicht oder Meinung der SEEBURGER AG dar. Sind Sie nicht der Empfänger, so haben Sie diese E-Mail irrtümlich erhalten und jegliche Verwendung, Veröffentlichung, Weiterleitung, Abschrift oder jeglicher Druck dieser E-Mail ist strengstens untersagt. Weder die SEEBURGER AG noch der Absender (Rehberg. Michael) übernehmen die Haftung für Viren; es obliegt Ihrer Verantwortung, die E-Mail und deren Anhänge auf Viren zu prüfen.

This email is intended only for the recipient(s) to whom it is addressed. This email may contain confidential material that may be protected by professional secrecy. Any fact or opinion contained, or _expression_ of the material herein, does not necessarily reflect that of SEEBURGER AG. If you are not the addressee or if you have received this email in error, any use, publication or distribution including forwarding, copying or printing is strictly prohibited. Neither SEEBURGER AG, nor the sender (Rehberg. Michael) accept liability for viruses; it is your responsibility to check this email and its attachments for viruses.


Back to the top