Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » How to find PartStacks? Not parts...
How to find PartStacks? Not parts... [message #650123] Fri, 21 January 2011 14:47 Go to next message
AppleJus Mising name is currently offline AppleJus Mising name
Messages: 46
Registered: July 2010
Member
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 Go to previous message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5296
Registered: July 2009
Senior Member
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
Previous Topic:e4 source code is giving some unexpected error
Next Topic:PreferenceDialog
Goto Forum:
  


Current Time: Sun Aug 31 00:36:19 EDT 2014

Powered by FUDForum. Page generated in 0.02390 seconds