Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Riena » treeridget - the child nodes name not visible
treeridget - the child nodes name not visible [message #554710] Tue, 24 August 2010 07:44 Go to next message
Eclipse UserFriend
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 #555723 is a reply to message #554710] Fri, 27 August 2010 20:50 Go to previous messageGo to next message
Christian Campo is currently offline Christian CampoFriend
Messages: 597
Registered: July 2009
Senior Member
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
Re: treeridget - the child nodes name not visible [message #555968 is a reply to message #555723] Mon, 30 August 2010 12:04 Go to previous message
Eclipse UserFriend
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 #586794 is a reply to message #554710] Fri, 27 August 2010 20:50 Go to previous message
Christian Campo is currently offline Christian CampoFriend
Messages: 597
Registered: July 2009
Senior Member
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
Re: treeridget - the child nodes name not visible [message #586811 is a reply to message #555723] Mon, 30 August 2010 12:04 Go to previous message
Eclipse UserFriend
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
Previous Topic:treeridget - the child nodes name not visible
Next Topic:ISaveable vs. Riena: Why supporting the Eclipse Jobs API might not be enough
Goto Forum:
  


Current Time: Sat Apr 20 01:33:17 GMT 2024

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

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

Back to the top