Display multiple property as children [message #414371] |
Fri, 02 November 2007 18:13 |
Eclipse User |
|
|
|
Originally posted by: andreas.behnke1.gmx.de
Hi all,
I have a multiple property in my class which I would like to be
displayed as children in the tree editor. I have made the following
settings in the genmodel:
Children: true
Create Child: false (type is created elsewhere)
Notify: true
....
Property Sort Choices: true
Property Type: Editable
Every time the user adds a new choice to the property,
the tree view is not updated also "Notify" is set to true.
After reloading the model the view looks fine.
How can I notify the tree view about the model changes?
Thanks in advance,
Andreas
|
|
|
Re: Display multiple property as children [message #414373 is a reply to message #414371] |
Fri, 02 November 2007 18:56 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
This is a multi-part message in MIME format.
--------------020509010301090708090706
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Andreas,
How does the user add the new value? I would expect the notifyChanged
method of the generated item provider to handle the case for that
feature like this where the first true indicates that it's an update to
the children:
fireNotifyChanged(new ViewerNotification(notification,
notification.getNotifier(), true, false));
Andreas Behnke wrote:
> Hi all,
>
> I have a multiple property in my class which I would like to be
> displayed as children in the tree editor. I have made the following
> settings in the genmodel:
>
> Children: true
> Create Child: false (type is created elsewhere)
> Notify: true
> ....
> Property Sort Choices: true
> Property Type: Editable
>
> Every time the user adds a new choice to the property,
> the tree view is not updated also "Notify" is set to true.
> After reloading the model the view looks fine.
>
> How can I notify the tree view about the model changes?
>
> Thanks in advance,
> Andreas
--------------020509010301090708090706
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">
</head>
<body bgcolor="#ffffff" text="#000000">
Andreas,<br>
<br>
How does the user add the new value? I would expect the notifyChanged
method of the generated item provider to handle the case for that
feature like this where the first true indicates that it's an update to
the children:<br>
<blockquote>fireNotifyChanged(new ViewerNotification(notification,
notification.getNotifier(), true, false));<br>
</blockquote>
<br>
Andreas Behnke wrote:
<blockquote cite="mid:fgfpcq$8a5$1@build.eclipse.org" type="cite">Hi
all,
<br>
<br>
I have a multiple property in my class which I would like to be
displayed as children in the tree editor. I have made the following
settings in the genmodel:
<br>
<br>
Children: true
<br>
Create Child: false (type is created elsewhere)
<br>
Notify: true
<br>
.....
<br>
Property Sort Choices: true
<br>
Property Type: Editable
<br>
<br>
Every time the user adds a new choice to the property,
<br>
the tree view is not updated also "Notify" is set to true.
<br>
After reloading the model the view looks fine.
<br>
<br>
How can I notify the tree view about the model changes?
<br>
<br>
Thanks in advance,
<br>
Andreas
<br>
</blockquote>
<br>
</body>
</html>
--------------020509010301090708090706--
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03324 seconds