Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [EEF] making some properties read-only basing on runtime information
[EEF] making some properties read-only basing on runtime information [message #732255] Tue, 04 October 2011 10:52 Go to next message
Matteo Miraz is currently offline Matteo MirazFriend
Messages: 38
Registered: March 2011
Member
Hi,

I'm using EEF to create some data-entry wizards (& property pages).

The elements of my model can be in two status: EDITING or RUNNING. Each element has a derived attribute that returns its own status. Depending on the status of an element, I want its properties to be editable or read-only.

How can I instruct EEF to behave in this way?
Re: [EEF] making some properties read-only basing on runtime information [message #733634 is a reply to message #732255] Wed, 05 October 2011 09:05 Go to previous messageGo to next message
Stephane Bouchet is currently offline Stephane BouchetFriend
Messages: 280
Registered: July 2009
Senior Member
Hi,

see comments below.

Le 04/10/2011 12:52, Matteo a écrit :
> Hi,
>
> I'm using EEF to create some data-entry wizards (& property pages).
> The elements of my model can be in two status: EDITING or RUNNING. Each
> element has a derived attribute that returns its own status. Depending
> on the status of an element, I want its properties to be editable or
> read-only.
>
> How can I instruct EEF to behave in this way?

this is not possible using the eef component model. but you can do it
programmatically, because EEF provides a readonly status for all its
views. just modify the correct component class to achieve it.

--
Cheers,

Stéphane Bouchet, OBEO
Re: [EEF] making some properties read-only basing on runtime information [message #734262 is a reply to message #733634] Fri, 07 October 2011 10:19 Go to previous messageGo to next message
Matteo Miraz is currently offline Matteo MirazFriend
Messages: 38
Registered: March 2011
Member
Hi,

jeah, I saw that with EEF I can make some properties read-only, but I need to do that at run-time.

I too was thinking about modifying the generated source code, but I was afraid of keeping this modification consistent during subsequent code generations...

Thanks,
Matteo
Re: [EEF] making some properties read-only basing on runtime information [message #734933 is a reply to message #734262] Mon, 10 October 2011 13:05 Go to previous messageGo to next message
Stephane Bouchet is currently offline Stephane BouchetFriend
Messages: 280
Registered: July 2009
Senior Member
Le 07/10/2011 12:19, Matteo a écrit :
> Hi,
>
> jeah, I saw that with EEF I can make some properties read-only, but I
> need to do that at run-time.
>
> I too was thinking about modifying the generated source code, but I was
> afraid of keeping this modification consistent during subsequent code
> generations...

you can safely edit the generated code if you write the code between the
"Start of user code / end of user code" lines of every generated class.
next generation will keep your manual code .

http://wiki.eclipse.org/Acceleo/Getting_Started#User_code_blocks


>
> Thanks,
> Matteo


--
Cheers,

Stéphane Bouchet, OBEO
Re: [EEF] making some properties read-only basing on runtime information [message #769267 is a reply to message #732255] Wed, 21 December 2011 17:15 Go to previous message
Mauricio Reyes is currently offline Mauricio ReyesFriend
Messages: 26
Registered: August 2011
Junior Member
Hi Matteo, I'm starting to use EEF and I'm interested in use the generated widgets to populate my own wizards. Do you mind exchanging some basic points that you find particularly useful if you did something similar?

Thanks in advance,
Mauricio
Previous Topic:Multi value containment cross document references.
Next Topic:Disable Modification of EMF resources
Goto Forum:
  


Current Time: Fri Apr 19 19:37:05 GMT 2024

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

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

Back to the top