Page 1 of 1
Disable toolbar while operation is running
Posted: Fri Sep 05, 2008 2:48 pm
by vladdu
Hi,
If the toolbar buttons (and the commands) were disabled while a long running operation is ongoing, it would save some frustration for the user that has to close the dialogs saying "wait until I'm done".
best regards,
Vlad
Re: Disable toolbar while operation is running
Posted: Fri Sep 05, 2008 5:06 pm
by sorin_ristache
Hello,
I assume you use the Eclipse plugin because in Oxygen standalone the actions started by the toolbar buttons do not block the UI. When there is a long operation which the user may want to cancel Oxygen standalone displays a progress dialog with a Cancel button which you can press at any time. Oxygen standalone does not block the UI.
On the Eclipse platform the actions started by the toolbar buttons are executed on the same thread as the user actions (clicking on other toolbar buttons, opening other files, etc) and the Oxygen plugin cannot change that. It is a rule enforced by the Eclipse paltform.
What is the action executed by the Oxygen plugin that blocks the Eclipse UI?
Regards,
Sorin
Re: Disable toolbar while operation is running
Posted: Fri Sep 05, 2008 10:00 pm
by vladdu
Hi,
Yes, it's the Eclipse plugin that I use.
The UI is being blocked by the validation, for example, and the message in the status bar is very discrete (i.e. easy to miss). Since the toolbar is being disabled when the current file isn't xml, I think it would be easy and useful to disable it even while an action is running, as they are unusable anyway.
Of course, this is just my opinion

best regards,
Vlad
Re: Disable toolbar while operation is running
Posted: Mon Sep 08, 2008 2:39 pm
by sorin_ristache
Hello,
The toolbar is not disabled because other operations available on the toolbar can be executed at the same time with the running operation. For example the actions Clear Validation Markers, Check Spelling, Show Definition can be executed while a transformation started by Apply Transformation Scenario is in progress.
If the current file is not an XML one and the file is not opened with an editor of the Oxygen plugin (Oxygen XML Editor, Oxygen XSL Editor, Oxygen XSD Editor, etc.) then the toolbar is not visible at all and this is done by the Eclipse platform, not by a plugin.
Regards,
Sorin