Show the framework action progress
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 124
- Joined: Tue May 29, 2012 5:42 pm
Show the framework action progress
Post by sebastienlavandier »
Hello,
I have an Oxygen customized framework, which contain a custom action.
This action can often take long time (with a specific thread).
That why I want indicate to the user, that the action is in progress.
How I can disable the toolbar button, unfortunatly I'm in the Oxygen framework's module and so I can't access to the toolbar.
else how I can access to the status bar, for indicate the action's progress to user ...
Could you give an idea for help me.
Thanks in advance for your help.
Sébastien
I have an Oxygen customized framework, which contain a custom action.
This action can often take long time (with a specific thread).
That why I want indicate to the user, that the action is in progress.
How I can disable the toolbar button, unfortunatly I'm in the Oxygen framework's module and so I can't access to the toolbar.
else how I can access to the status bar, for indicate the action's progress to user ...
Could you give an idea for help me.
Thanks in advance for your help.
Sébastien
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Show the framework action progress
Hi Sébastien,
To change the status in Oxygen you have this API:
Basically your operation could also do something like this:
1) Start a thread which fetches stuff from the server.
2) Change the status, maybe also show a modal JDialog (with a Cancel button?) which will block user interraction while the operation is in progress.
3) At the end of the thread's run() method change the status to something else and hide the modal dialog.
It's important that all modifications made to the Author nodes should be done on the AWT thread (and not on your started thread). So if you make modifications directly on your thread, just invoke them on AWT like.
Regards,
Radu
To change the status in Oxygen you have this API:
Code: Select all
authorAccess.getWorkspaceAccess().showStatusMessage(statusMessage);
1) Start a thread which fetches stuff from the server.
2) Change the status, maybe also show a modal JDialog (with a Cancel button?) which will block user interraction while the operation is in progress.
3) At the end of the thread's run() method change the status to something else and hide the modal dialog.
It's important that all modifications made to the Author nodes should be done on the AWT thread (and not on your started thread). So if you make modifications directly on your thread, just invoke them on AWT like
Code: Select all
SwingUtilities.invokeAndWait
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “SDK-API, Frameworks - Document Types”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service