Resize Eclipse RCP Part

2019-07-20 02:08发布

问题:

I'm creating an application using eclipse RCP, I have many Part and I want to resize them. Some of these parts don't need many space.

I've checked in Application.4xmi but I didn't found anything helpful.

Any ideas?

回答1:

You can set the size of a Trimmed Window in the Application.e4xmi by setting the Bounds width and height values.

Usually you then use PartSashContainer to divide up the window. You specify a percentage used for each child in the Container Data for the child.