Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Cheatsheet: async action problem
Cheatsheet: async action problem [message #1005789] Mon, 28 January 2013 17:58
Marco Orlandin is currently offline Marco OrlandinFriend
Messages: 6
Registered: January 2013
Junior Member
Hi,
i have a chetsheet that execute an action, lets call it TestAction, subclass of jface.action.Action. This action in his run method open a dialog. Since the dialog is modal the step in the chetsheet that run the action has the properties dialog="true" to transfer the control from the main windows to the dialog.

The problem is that even if i can advance with the cheatsheet when i close the dialog the step that opened it will still be "open", because the action that opened the dialog is terminated when it is closed. So we can say that the cheatsheet thing that the step of the action is just finished.

Not a big problem, but ugly to see. To change this i tought to open the dialog with an async call with:

	@Override
	public void run() {
		Display.getCurrent().asyncExec(new Runnable() {
			public void run() {
				someDialog.open();
		    }
		});
	}


It works but doing this the chetesheet dosen't transfer the control to the dialog when it is opened, and i don't unerstand why. How can i have the control of the cheatsheet in the dialog and execute an async action at the same time? thanks!
Previous Topic:Hiding and restoring a view in RCP
Next Topic:How run javaScript form eclipse in commondline
Goto Forum:
  


Current Time: Thu Apr 25 19:59:50 GMT 2024

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

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

Back to the top