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 46 times)
  • Attachment: 1.JPG
    (Size: 30.05KB, Downloaded 39 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: 1051
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: Mon Dec 22 16:24:14 GMT 2014

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

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