Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Cheatsheet: async action problem
Cheatsheet: async action problem [message #1005789] Mon, 28 January 2013 12:58
Eclipse UserFriend
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: Sat Jul 05 22:09:48 EDT 2025

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

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

Back to the top