treeridget - the child nodes name not visible [message #554710] |
Tue, 24 August 2010 07:44 |
Eclipse User |
|
|
|
Originally posted by: matthiasrodler.gmx.net
Hi,
I have some problems with the tree ridget. The first binding of my data
structure works well but at the following bindings the child nodes do
not show their names (The root nodes are fine). The folder icon is
visible but the name is missing. After opening the child folder the name
appears on the screen. To I have to change my binding?
Thanks
Matthias
|
|
|
|
Re: treeridget - the child nodes name not visible [message #555968 is a reply to message #555723] |
Mon, 30 August 2010 12:04 |
Eclipse User |
|
|
|
Originally posted by: matthiasrodler.gmx.net
Am 27.08.2010 22:50, schrieb Christian Campo:
> Am 24.08.10 09:44, schrieb Matthias Rodler:
>> Hi,
>>
>> I have some problems with the tree ridget. The first binding of my data
>> structure works well but at the following bindings the child nodes do
>> not show their names (The root nodes are fine). The folder icon is
>> visible but the name is missing. After opening the child folder the name
>> appears on the screen. To I have to change my binding?
>>
>> Thanks
>>
>> Matthias
> "The following binding" means that you updated the model or that you
> really called the method "bind" again for the same tree widget with a
> different model instance ?
>
> If you just updated the model you might try the updateFromModel call in
> the right API (or updateAllRidgetsFromModel in the SubModuleController
> API).
>
> Maybe you can describe the steps one by one.....
>
> christian
I use your ridgets in a rcp application and bind the controller by
myself(delegate.injectAndBind(controller)). The problem occurs with both
scenarios you described.
My binding:
treeRidget.bindToModel(roots.toArray(), MyObject.class,
MyObject.PROPERTY_CHILDREN, MyObject.PROPERTY_PARENT,
MyObject.PROPERTY_VALUE, null, null, "icon");
I also tried it with a TreeTableRidget but the outcome is the same.
My current workaround is:
treeRidget.expandAll();
treeRidget.updateFromModel();
treeRidget.collapseAll();
which makes all node names visible. But this works only at a binding of
a different model. Changes in the model are recognized automatically(by
using property change support). But it makes no difference if I call
updateFromModel() or not. Names of child nodes (nodes which are not
visible) are not shown if I expand the tree.
+Node
-Node
+Subnode(Name not visible)
-Node
-Subnode(Name will appear if I expand it)
-Subnode(Name not visible)
I hope this makes my problem more understandable for you.
Matthias
|
|
|
|
Re: treeridget - the child nodes name not visible [message #586811 is a reply to message #555723] |
Mon, 30 August 2010 12:04 |
Eclipse User |
|
|
|
Originally posted by: matthiasrodler.gmx.net
Am 27.08.2010 22:50, schrieb Christian Campo:
> Am 24.08.10 09:44, schrieb Matthias Rodler:
>> Hi,
>>
>> I have some problems with the tree ridget. The first binding of my data
>> structure works well but at the following bindings the child nodes do
>> not show their names (The root nodes are fine). The folder icon is
>> visible but the name is missing. After opening the child folder the name
>> appears on the screen. To I have to change my binding?
>>
>> Thanks
>>
>> Matthias
> "The following binding" means that you updated the model or that you
> really called the method "bind" again for the same tree widget with a
> different model instance ?
>
> If you just updated the model you might try the updateFromModel call in
> the right API (or updateAllRidgetsFromModel in the SubModuleController
> API).
>
> Maybe you can describe the steps one by one.....
>
> christian
I use your ridgets in a rcp application and bind the controller by
myself(delegate.injectAndBind(controller)). The problem occurs with both
scenarios you described.
My binding:
treeRidget.bindToModel(roots.toArray(), MyObject.class,
MyObject.PROPERTY_CHILDREN, MyObject.PROPERTY_PARENT,
MyObject.PROPERTY_VALUE, null, null, "icon");
I also tried it with a TreeTableRidget but the outcome is the same.
My current workaround is:
treeRidget.expandAll();
treeRidget.updateFromModel();
treeRidget.collapseAll();
which makes all node names visible. But this works only at a binding of
a different model. Changes in the model are recognized automatically(by
using property change support). But it makes no difference if I call
updateFromModel() or not. Names of child nodes (nodes which are not
visible) are not shown if I expand the tree.
+Node
-Node
+Subnode(Name not visible)
-Node
-Subnode(Name will appear if I expand it)
-Subnode(Name not visible)
I hope this makes my problem more understandable for you.
Matthias
|
|
|
Powered by
FUDForum. Page generated in 0.03448 seconds