Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » rcp app, using hexapixel ribbon - main menu problem
rcp app, using hexapixel ribbon - main menu problem [message #630721] Mon, 04 October 2010 16:54 Go to next message
Robert Starzer is currently offline Robert StarzerFriend
Messages: 6
Registered: October 2010
Junior Member
I'm using the hexapixel ribbon and a custom renderer to transfer the main menu items into the "bigButton" menu.
The problem is that this menu is also set to the current shell on setup() of WorkbenchWindow -> shell.setMenuBar(menu);

is there a way to prevent this?

thanks
Re: rcp app, using hexapixel ribbon - main menu problem [message #630772 is a reply to message #630721] Mon, 04 October 2010 21:32 Go to previous messageGo to next message
Robert Starzer is currently offline Robert StarzerFriend
Messages: 6
Registered: October 2010
Junior Member
more problems:
PartRenderingEngine: fixZOrder is changing my composite order... it moves the main perspective area above the ribbon toolbar

any idea?

thanks
Re: rcp app, using hexapixel ribbon - main menu problem [message #630864 is a reply to message #630721] Tue, 05 October 2010 11:50 Go to previous messageGo to next message
Remy Suen is currently offline Remy SuenFriend
Messages: 462
Registered: July 2009
Senior Member
Robert Starzer wrote on Mon, 04 October 2010 12:54
I'm using the hexapixel ribbon and a custom renderer to transfer the main menu items into the "bigButton" menu.
The problem is that this menu is also set to the current shell on setup() of WorkbenchWindow -> shell.setMenuBar(menu);

is there a way to prevent this?

No, as that is hardcoded in directly. I can change the code to only set it if the MMenu's widget actually is an SWT Menu if that would help you (assuming you are working with code from HEAD).

Robert Starzer wrote on Mon, 04 October 2010 17:32
more problems:
PartRenderingEngine: fixZOrder is changing my composite order... it moves the main perspective area above the ribbon toolbar

Please open a bug describing your problem.
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=e4&c omponent=UI
Re: rcp app, using hexapixel ribbon - main menu problem [message #630985 is a reply to message #630864] Tue, 05 October 2010 18:05 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
though this might fix things for compat. I think the real solution in an
e4 world is to write your own Window,Menu,Toolbar-Rendering code.

Tom

Am 05.10.10 13:50, schrieb Remy Suen:
> Robert Starzer wrote on Mon, 04 October 2010 12:54
>> I'm using the hexapixel ribbon and a custom renderer to transfer the
>> main menu items into the "bigButton" menu.
>> The problem is that this menu is also set to the current shell on
>> setup() of WorkbenchWindow -> shell.setMenuBar(menu);
>>
>> is there a way to prevent this?
>
> No, as that is hardcoded in directly. I can change the code to only set
> it if the MMenu's widget actually is an SWT Menu if that would help you
> (assuming you are working with code from HEAD).
>
> Robert Starzer wrote on Mon, 04 October 2010 17:32
>> more problems:
>> PartRenderingEngine: fixZOrder is changing my composite order... it
>> moves the main perspective area above the ribbon toolbar
>
> Please open a bug describing your problem.
> https://bugs.eclipse.org/bugs/enter_bug.cgi?product=e4&c omponent=UI
Re: rcp app, using hexapixel ribbon - main menu problem [message #630994 is a reply to message #630721] Tue, 05 October 2010 18:58 Go to previous messageGo to next message
Robert Starzer is currently offline Robert StarzerFriend
Messages: 6
Registered: October 2010
Junior Member
actually i'm using your https://svn.tomsondev.com/svn/ufacekit/desktop/org.ufacekit. ui.e4.renderer/src/org/ufacekit/ui/e4/renderer/ source but having these problems - or do you mean starting from scratch?

thanks
Re: rcp app, using hexapixel ribbon - main menu problem [message #631011 is a reply to message #630994] Tue, 05 October 2010 19:56 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Well interesting that this code still works it is quite old but yes
that's the way to go so do i get it right the compat layer is doing bad
things to you?

Tom

Am 05.10.10 20:58, schrieb Robert Starzer:
> actually i'm using your
> https://svn.tomsondev.com/svn/ufacekit/desktop/org.ufacekit. ui.e4.renderer/src/org/ufacekit/ui/e4/renderer/
> source but having these problems - or do you mean starting from scratch?
>
> thanks
Re: rcp app, using hexapixel ribbon - main menu problem [message #631082 is a reply to message #630721] Wed, 06 October 2010 07:00 Go to previous messageGo to next message
Robert Starzer is currently offline Robert StarzerFriend
Messages: 6
Registered: October 2010
Junior Member
I do not think it is the compat layer since the shell.setMenuBar(..) and the fixZOrder (PartRenderingEngine) is not part of the compat layer (?)

i do not know why a fixZOrder (....workbench.swt 0.9.1) is necessary (rearranging the composite order) - perhaps it isn't a good idea the ribbon-stuff is adding a composite directly to the shell and not via some kind of renderer callback;

i'm not an swt-renderer-package expert (not yet Wink) so i can't tell...
Re: rcp app, using hexapixel ribbon - main menu problem [message #631088 is a reply to message #631082] Wed, 06 October 2010 07:11 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
I think only Eric can tell us. So please file a bug report (if not yet
done - feel free to cc me on it) and so we can discuss there with the
experts :-)

Tom

Am 06.10.10 09:00, schrieb Robert Starzer:
> I do not think it is the compat layer since the shell.setMenuBar(..) and
> the fixZOrder (PartRenderingEngine) is not part of the compat layer (?)
>
> i do not know why a fixZOrder (....workbench.swt 0.9.1) is necessary
> (rearranging the composite order) - perhaps it isn't a good idea the
> ribbon-stuff is adding a composite directly to the shell and not via
> some kind of renderer callback;
>
> i'm not an swt-renderer-package expert (not yet ;)) so i can't tell...
Re: rcp app, using hexapixel ribbon - main menu problem [message #632576 is a reply to message #630721] Wed, 13 October 2010 13:39 Go to previous message
Robert Starzer is currently offline Robert StarzerFriend
Messages: 6
Registered: October 2010
Junior Member
ok thanks.
I'm trying with the head-e4 bundles now to check any changes in there before filing a bug...
Previous Topic:TitleAreaDialog and XWT
Next Topic:LegacyIDE.e4xmi moved?
Goto Forum:
  


Current Time: Fri Mar 29 08:05:35 GMT 2024

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

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

Back to the top