Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse RCP(how to use addStandaloneView())
Eclipse RCP [message #1160456] Tue, 29 October 2013 06:19 Go to next message
hb rk is currently offline hb rkFriend
Messages: 3
Registered: October 2013
Junior Member
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: 2.JPG
    (Size: 26.70KB, Downloaded 137 times)
  • Attachment: 1.JPG
    (Size: 30.05KB, Downloaded 149 times)
Re: Eclipse RCP [message #1169077 is a reply to message #1160456] Sun, 03 November 2013 20:00 Go to previous messageGo to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
please ask the RCP experts Smile
Re: Eclipse RCP [message #1169504 is a reply to message #1160456] Mon, 04 November 2013 02:54 Go to previous message
hb rk is currently offline hb rkFriend
Messages: 3
Registered: October 2013
Junior Member
I have found the reason. It can work at eclipse 3.7.2, don't work at eclipse 4.3 or 3.2 . It is a compatible problem.
Previous Topic:Eclipse can't find standard libs (java.io etc.) after Ubuntu upgrade / system rebuild
Next Topic:Excel as a data source
Goto Forum:
  


Current Time: Thu Apr 18 14:27:20 GMT 2024

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

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

Back to the top