Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse RCP(about UI layout )
Eclipse RCP [message #1160478] Tue, 29 October 2013 06:39
hb rk is currently offline hb rkFriend
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)
Previous Topic:eclipse not loading getting no virtual machine
Next Topic:Trouble using JUNIT on windows 8.1
Goto Forum:
  


Current Time: Fri Mar 29 15:50:24 GMT 2024

Powered by FUDForum. Page generated in 0.03581 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top