2011-08-08 24 views
0

我的主窗口如下所示:如何禁用调整在查看

____________________________ 
|Upper View     | 
|___________________________| 
|Left View|Editor|Right view| 
|   |  |   | 
|   |  |   | 
|   |  |   | 

,我想使上视图不调整大小。

的Perspective.createInitialLayout是:

layout.addStandaloneView(URLView.ID, false, IPageLayout.TOP, 0f, layout.getEditorArea()); 
layout.addStandaloneView(ServicesView.ID, false, IPageLayout.LEFT, 0.2f, layout.getEditorArea()); 
IFolderLayout folder = layout.createFolder("responses", IPageLayout.RIGHT, 0.6f, layout.getEditorArea()); 
folder.addPlaceholder(ResponseView.ID + ":*"); 
folder.addView(ResponseView.ID); 
layout.getViewLayout(ResponseView.ID).setCloseable(true); 

有没有办法做到这一点? 谢谢!

回答

0

有没有简单的方法来使视图不可调整大小。一种可能的方式可能是引入横幅以将该视图的内容放置在该横幅内。我前段时间写过一个small example

+0

谢谢汤姆。这正是我需要的。 – Turin