Skip to main content


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 19:46 Go to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 9
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 07:47 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
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: Tue Apr 23 11:39:37 GMT 2024

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

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

Back to the top