Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » RCP Toolbar/Menu issues using the Compatibility Layer after migrating to 4.2
RCP Toolbar/Menu issues using the Compatibility Layer after migrating to 4.2 [message #1014719] Tue, 26 February 2013 05:42 Go to next message
Quang Tran is currently offline Quang Tran
Messages: 11
Registered: June 2012
Junior Member
Hi all,
we migrated from 3.7 to 4.2 using the Compatibility Layer.
After the migration all of our views have now a toolbar even though there is no content, it's taking too much place and looks weird with an empty bar.
Is there a way to disable this? We don't want to completely wire if off by patching the eclipse code because some of our view do have toolbar actions and menus


index.php/fa/13550/0/
  • Attachment: view.JPG
    (Size: 20.90KB, Downloaded 355 times)
Re: RCP Toolbar/Menu issues using the Compatibility Layer after migrating to 4.2 [message #1014792 is a reply to message #1014719] Tue, 26 February 2013 08:26 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de Alwis
Messages: 163
Registered: January 2012
Senior Member

Widen your stack on the right -- it's clearly narrower than the one on the left.

You might be able to adjust the sizes by writing your own CTabFolder renderer, but beware: there be dragons in that code.

Brian,


Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Re: RCP Toolbar/Menu issues using the Compatibility Layer after migrating to 4.2 [message #1014859 is a reply to message #1014792] Tue, 26 February 2013 10:55 Go to previous messageGo to next message
Quang Tran is currently offline Quang Tran
Messages: 11
Registered: June 2012
Junior Member
Hi Brian,
Isn't the problem in the CompatibilityView? it creates by default a toolbar
I found this link meanwhile:
http://dev.eclipse.org/mhonarc/lists/e4-dev/msg05033.html

I patched the CompatibilityView and it works, but the problem now is just that all views don't have toolbars. So writing a own renderer is the only option?
Re: RCP Toolbar/Menu issues using the Compatibility Layer after migrating to 4.2 [message #1014883 is a reply to message #1014859] Tue, 26 February 2013 11:36 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de Alwis
Messages: 163
Registered: January 2012
Senior Member

Your toolbar is wrapping as there isn't enough space -- if you widen your view, the toolbar will snap back up to the top line.

Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Re: RCP Toolbar/Menu issues using the Compatibility Layer after migrating to 4.2 [message #1015050 is a reply to message #1014883] Wed, 27 February 2013 04:56 Go to previous messageGo to next message
Quang Tran is currently offline Quang Tran
Messages: 11
Registered: June 2012
Junior Member
Hi Brian,
yes I know what you mean, that's why I took a screenshot with both cases, but wrapping is a eclipse feature.
By widen the views doesn't change the fact that there is still a toolbar.
Maybe you are confused by the triangle view menu?this is just another bug for me with CNF when migrating to 4.2 because the view menu is empty.
I think we are going to patch the CompatibilityView by wiring the toolbar and menubar off, don't know if this is the right approach though.
Re: RCP Toolbar/Menu issues using the Compatibility Layer after migrating to 4.2 [message #1015073 is a reply to message #1015050] Wed, 27 February 2013 06:14 Go to previous message
Brian de Alwis is currently offline Brian de Alwis
Messages: 163
Registered: January 2012
Senior Member

Oh! I thought you were asking about why it was wrapping. Sorry!

Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Previous Topic:Eclipse editor tooltip
Next Topic:Kepler M5 editor focus issue
Goto Forum:
  


Current Time: Mon Jul 28 00:28:54 EDT 2014

Powered by FUDForum. Page generated in 0.02513 seconds