Skip to main content



      Home
Home » Eclipse Projects » Eclipse 4 » Linking Handled Tool and Menu Items(How can I link the checked state of a Toolbar Item and a Menu Item)
Linking Handled Tool and Menu Items [message #1807319] Tue, 28 May 2019 02:40
Eclipse UserFriend
Background : Converting an Eclipse 3.x RCP application to E4

I have a Main window with a Menu and a Toolbar. The toolbar can be hidden if required.

Both menu and toolbar have an item that is of type "checked" and they are attached to the same Handler and Command. There states should be in sync at all times, but there seems no mechanism to link the two items together.

It seems wrong for the handler class to know what items are attached too it as that would go against the idea of defining these connections declaratively in the Application.e4xmi file.

Is there a way to associate the items together?
Previous Topic:Generic Editor PDE Wizard example: no access to underlying editor widget?
Next Topic:TIFF image too large to display?
Goto Forum:
  


Current Time: Fri Jul 11 20:32:04 EDT 2025

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

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

Back to the top