Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Change Part size dynamically
Change Part size dynamically [message #732056] Mon, 03 October 2011 15:46 Go to next message
jyl is currently offline jyl
Messages: 8
Registered: July 2009
Junior Member
Hi,

PartSashContainer
Part(id=part1, containerData=10) contains a menu composite
Part(id=part2, containerData=90)

The part1 displays a menu
icon1 title1
icon2 title2
icon3 title3

I want to collapse the part1 and only show icons.

1. I try to change size of the parts by code :
part1 = partService.findPart("part1"); //inject is ok and part1 not null
part2 = partService.findPart("part2"); // part2 not null
part1.setContainerData("5");
part1.setContainerData("95");

and changes ... are ignored. Is there a solution to do this by code ?


2. lack of precision
I need more precision than %. When my menu is collapsed, if width of icons are 32px, so is it possible to say part1 has the same width that my menu composite ?

Thx,
regards


Re: Change Part size dynamically [message #732196 is a reply to message #732056] Tue, 04 October 2011 03:47 Go to previous message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5242
Registered: July 2009
Senior Member
Hi,

Please file feature requests for both of your requests, if none are yet
logged.

Tom

Am 03.10.11 21:46, schrieb jyl:
> Hi,
>
> PartSashContainer
> Part(id=part1, containerData=10) contains a menu composite
> Part(id=part2, containerData=90)
>
> The part1 displays a menu
> icon1 title1
> icon2 title2
> icon3 title3
>
> I want to collapse the part1 and only show icons.
>
> 1. I try to change size of the parts by code :
> part1 = partService.findPart("part1"); //inject is ok and part1 not null
> part2 = partService.findPart("part2"); // part2 not null
> part1.setContainerData("5");
> part1.setContainerData("95");
>
> and changes ... are ignored. Is there a solution to do this by code ?
>
>
> 2. lack of precision
> I need more precision than %. When my menu is collapsed, if width of
> icons are 32px, so is it possible to say part1 has the same width that
> my menu composite ?
>
> Thx,
> regards
>
>
>
Previous Topic:@Optional doesn't work as I expect
Next Topic:@PreDestroy methods not being called
Goto Forum:
  


Current Time: Fri Jul 25 09:44:21 EDT 2014

Powered by FUDForum. Page generated in 0.01394 seconds