Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [EMF.edit] Properties edition, provide default values ?
[EMF.edit] Properties edition, provide default values ? [message #420684] Mon, 07 July 2008 15:57 Go to next message
Guillaume Gauffre is currently offline Guillaume GauffreFriend
Messages: 65
Registered: July 2009
Member
Hi,

For a particular element of my models, I would like to provide default
values for some String properties. My first approach was to use the
method getChoiceOfValues or getComboBoxObjects of
ItemPropertyDescriptor. A list of values is added but it is not possible
to add a custom String of characters.
Is it possible to do that ?

Thanks,
Guillaume
Re: [EMF.edit] Properties edition, provide default values ? [message #420724 is a reply to message #420684] Tue, 08 July 2008 19:00 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------050506030305080507060608
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Guillaume,

Sorry, for some reason I didn't notice you didn't get an answer yet....

We don't currently have any support for having both a drop down and and
editable field. You could accomplish it using the approach in the recipes:

3.1 Recipe: Create your own property editor in a generated
application
< http://wiki.eclipse.org/EMF/Recipes#Recipe:_Create_your_own_ property_editor_in_a_generated_application>


Guillaume wrote:
> Hi,
>
> For a particular element of my models, I would like to provide default
> values for some String properties. My first approach was to use the
> method getChoiceOfValues or getComboBoxObjects of
> ItemPropertyDescriptor. A list of values is added but it is not
> possible to add a custom String of characters.
> Is it possible to do that ?
>
> Thanks,
> Guillaume

--------------050506030305080507060608
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Guillaume,<br>
<br>
Sorry, for some reason I didn't notice you didn't get an answer yet....<br>
<br>
We don't currently have any support for having both a drop down and and
editable field.&nbsp;&nbsp; You could accomplish it using the approach in the
recipes:<br>
<blockquote><a
href=" http://wiki.eclipse.org/EMF/Recipes#Recipe:_Create_your_own_ property_editor_in_a_generated_application"><span
class="tocnumber">3.1</span> <span class="toctext">Recipe: Create
your own property editor in a generated application</span></a><br>
</blockquote>
<br>
Guillaume wrote:
<blockquote cite="mid:g4ted3$1gm$1@build.eclipse.org" type="cite">Hi,
<br>
<br>
For a particular element of my models, I would like to provide default
values for some String properties. My first approach was to use the
method getChoiceOfValues or getComboBoxObjects of
ItemPropertyDescriptor. A list of values is added but it is not
possible to add a custom String of characters.
<br>
Is it possible to do that ?
<br>
<br>
Thanks,
<br>
Guillaume
<br>
</blockquote>
</body>
</html>

--------------050506030305080507060608--


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Creation Icons
Next Topic:Problems Validation with OCL an atribute of EDataType
Goto Forum:
  


Current Time: Fri Apr 26 17:27:02 GMT 2024

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

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

Back to the top