How to find PartStacks? Not parts... [message #650123] |
Fri, 21 January 2011 14:47  |
Eclipse User |
|
|
|
Hi,
I have a sash that contains two part stacks each which have parts... I would like to resize the sash dynamically.
-My first question is which container data should we use, the sash one I guess?
-My second question, is, how to find the sash by elementId?
I am using
injectedPartService.findPart(String elementId) of EPartService,
which is able to find parts, but not able to find sashes or partstacks (returns null for those)....
Thanks for your help!
|
|
|
Re: How to find PartStacks? Not parts... [message #650220 is a reply to message #650123] |
Sun, 23 January 2011 05:26  |
Eclipse User |
|
|
|
Am 21.01.11 20:47, schrieb AppleJus:
> Hi,
>
> I have a sash that contains two part stacks each which have parts... I
> would like to resize the sash dynamically.
>
> -My first question is which container data should we use, the sash one I
> guess?
>
No. The Sash is using the container data of it children. So you set the
containerdata on PartStacks.
> -My second question, is, how to find the sash by elementId?
> I am using
> injectedPartService.findPart(String elementId) of EPartService,
> which is able to find parts, but not able to find sashes or partstacks
> (returns null for those)....
The ModelService will help you to find any element.
>
> Thanks for your help!
>
>
Tom
|
|
|
Powered by
FUDForum. Page generated in 0.04247 seconds