Eclipse RCP [message #1160478] |
Tue, 29 October 2013 06:39 |
hb rk Messages: 3 Registered: October 2013 |
Junior Member |
|
|
It is a example come from a book(based eclipse 3.2). but I donot get same result with provided by book.I found addStandaloneView() do not works in my eclipse 4.3. This is code in createInitialLayout(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 is shown in UI. But If I use addStandaloneView(), I can not see anything in UI. Why ? addView() and addStandaloneView() are so different ?
-
Attachment: 1.JPG
(Size: 30.05KB, Downloaded 128 times) -
Attachment: 2.JPG
(Size: 26.70KB, Downloaded 145 times)
|
|
|
Powered by
FUDForum. Page generated in 0.03581 seconds