Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 06:40
Trevor Campbell is currently offline Trevor CampbellFriend
Messages: 4
Registered: February 2019
Junior Member
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: Wed Apr 14 06:01:39 GMT 2021

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

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

Back to the top