Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF Viewmodel] No update for EnableRule
[EMF Viewmodel] No update for EnableRule [message #1708080] Sat, 12 September 2015 10:47 Go to next message
Tobias Zangl is currently offline Tobias ZanglFriend
Messages: 15
Registered: May 2015
Junior Member
Hey,

i have a small question regarding EMF Viewmodels with EnableRules.

The EnableRule itself works fine, but if i have a boolean variable for example which is used for the EnableRule and i change the variable while the view is open then the view does not get updated thus the part of the view is not changed to enabled (or the other way around).
Do i really have to close and reopen the view to update the EnableRule or is there another way? A notification for example?

Greetings,
Tobias
Re: [EMF Viewmodel] No update for EnableRule [message #1708129 is a reply to message #1708080] Mon, 14 September 2015 06:48 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
Hi Tobias,

no, of course the enablement should work without reopening. Could you
create a minimal example to reproduce this and report it as a Bug?

Best regards

Jonas


Am 12.09.2015 um 12:47 schrieb Tobias Zangl:
> Hey,
>
> i have a small question regarding EMF Viewmodels with EnableRules.
>
> The EnableRule itself works fine, but if i have a boolean variable for
> example which is used for the EnableRule and i change the variable while
> the view is open then the view does not get updated thus the part of the
> view is not changed to enabled (or the other way around).
> Do i really have to close and reopen the view to update the EnableRule
> or is there another way? A notification for example?
>
> Greetings,
> Tobias


--
--

Jonas Helming

Get professional Eclipse developer support:

http://eclipsesource.com/en/services/developer-support/
Re: [EMF Viewmodel] No update for EnableRule [message #1708232 is a reply to message #1708129] Mon, 14 September 2015 19:00 Go to previous message
Tobias Zangl is currently offline Tobias ZanglFriend
Messages: 15
Registered: May 2015
Junior Member
Hey Jonas,

i am really sorry.. I tried some stuff and it looks like the update with the EnableRule works fine. The problem is the boolean variable which is used for the EnableRule.
Its state is derived with the help of an OCL statement and i probably have to add a notification like mentioned here: https://wiki.eclipse.org/EMF/Recipes#Recipe:_Derived_Attribute_Notifier

Thanks anyway for your fast response!

Greetings,
Tobias
Previous Topic:[TEXO] Dao access: No Persistence provider for EntityManager named null
Next Topic:[ECP] Neon/Mars versions look weird
Goto Forum:
  


Current Time: Thu Dec 03 23:48:05 GMT 2020

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

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

Back to the top