Eclipse RCP [message #1160456] |
Tue, 29 October 2013 02:19  |
Eclipse User |
|
|
|
This is a example come from a book. createInitialLayout()in Perspective.java:
//layout.addStandaloneView(IAppConstants.TEACH_UNIT_CLASS_VIEW_ID, true, IPageLayout.RIGHT, 0.26f, editorArea);
layout.addView(IAppConstants.TEACH_UNIT_CLASS_VIEW_ID, IPageLayout.RIGHT, 0.26f, editorArea);
layout.getViewLayout(IAppConstants.TEACH_UNIT_CLASS_VIEW_ID).setCloseable(false);
layout.getViewLayout(IAppConstants.TEACH_UNIT_CLASS_VIEW_ID).setMoveable(false);
If I use addView(), A view will be shown in UI. If use addStandaloneView(), I get nothing in UI.
Attachment: 1.JPG
(Size: 30.05KB, Downloaded 175 times)
Attachment: 2.JPG
(Size: 26.70KB, Downloaded 163 times)
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08436 seconds