|
Re: [EMF.edit] Properties edition, provide default values ? [message #420724 is a reply to message #420684] |
Tue, 08 July 2008 19:00 |
Ed Merks 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. 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/
|
|
|
Powered by
FUDForum. Page generated in 0.02742 seconds