Skip to main content



      Home
Home » Eclipse Projects » GEF » How to open a Dialog over the Toolbar
How to open a Dialog over the Toolbar [message #234656] Sun, 27 May 2007 10:25 Go to next message
Eclipse UserFriend
Originally posted by: Lehmann.j.gmx.net

Hello,

i got another problem with my GEF Application.
I want to open a Dialog Window when the user click on a Toolbar Button.
Can someone tell me how to do that ?

kind regards
Re: How to open a Dialog over the Toolbar [message #234662 is a reply to message #234656] Mon, 28 May 2007 01:52 Go to previous message
Eclipse UserFriend
Hi Jens,

The buttons on the toolbar are probably actions that your editor
contributes to the toolbar. In your action #run() method (or the one that
executes the action) you can create your dialog or message and depending
on the result from the dialog/message run the action accordingly. You
could look at GMF's logic example from M7 for "Modify Ports Color" on the
context menu for LEDs and circuits as examples.

Cheers,
Alex
Previous Topic:GEF ComboBox inside Properties Window
Next Topic:Content outline trigger?
Goto Forum:
  


Current Time: Sat Jul 05 23:48:05 EDT 2025

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

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

Back to the top