简体   繁体   中英

Viewpart Eclipse RCP resize

I'm writing an Eclipse RCP 3 application. The application contains a menu on the left and the working view on the right. When the application starts the two viewparts are splitting the screen in two parts. Now I'm searching for a way to set the width of the menu so that it not use the full half part of the screen.

I have already done some tests with ISizeProvider but without any luck. What is the easiest way to set a default width on a viewpart?

在此处输入图片说明

I can't find anything in the Eclipse source that actually uses the ISizeProvider so it looks like it may have been dropped for Eclipse 4.

If you want to set the relative sizes of views you put then in a Perspective and use the perspective layout factory to set the proportions of the window use by each view.

I started all over again with the mailexample in Eclipse. Now I hava it and without any need to code something.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM