Skip to main content


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 19:47 Go to next message
AppleJus Mising name is currently offline AppleJus Mising nameFriend
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 10:26 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
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: Tue Apr 23 12:39:50 GMT 2024

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

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

Back to the top