Event Management
Oxygen general issues.
-
- Posts: 14
- Joined: Sat Nov 14, 2009 10:08 pm
Event Management
Hello Sorin,
I use oxygen (version eclipse plugin) and when I load a xml document (Open) in author mode, I suppose that oxygen uses an event-type "load file". How can I have access to this event (to get it and manipulate it ...) ?
Thank,
Regards.
I use oxygen (version eclipse plugin) and when I load a xml document (Open) in author mode, I suppose that oxygen uses an event-type "load file". How can I have access to this event (to get it and manipulate it ...) ?
Thank,
Regards.
-
- Posts: 14
- Joined: Sat Nov 14, 2009 10:08 pm
Re: Event Management
Thank Radu,
For example, when I change the contents of my xml file in author mode (using oxygen plugin version), I'd like power controller (programmatically) the registration of the new modified file, for example to set an automatic recording file every 10 minutes ...
Regards,
For example, when I change the contents of my xml file in author mode (using oxygen plugin version), I'd like power controller (programmatically) the registration of the new modified file, for example to set an automatic recording file every 10 minutes ...
Regards,
-
- Posts: 9511
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Event Management
Hi,
I understand you want some kind of auto-save every couple of minutes (or saving to a backup file).
We have some extensions available for Author editing allowing both the addition of new user-defined actions and also for a listener which could possibly achieve what you want.
See the Author SDK kit available here:
http://www.oxygenxml.com/developer.html
Basically you can register a listener of interface AuthorExtensionStateListener and when the callback:
gets called you can start a thread that every couple of minutes can either call "save()" on the current document or get the entire XML content of the edited file and save to a different location.
Regards,
Radu
I understand you want some kind of auto-save every couple of minutes (or saving to a backup file).
We have some extensions available for Author editing allowing both the addition of new user-defined actions and also for a listener which could possibly achieve what you want.
See the Author SDK kit available here:
http://www.oxygenxml.com/developer.html
Basically you can register a listener of interface AuthorExtensionStateListener and when the callback:
Code: Select all
void activated(AuthorAccess authorAccess);
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 14
- Joined: Sat Nov 14, 2009 10:08 pm
Re: Event Management
Hi Radu,
Thank you for your reply. I will therefore use the second solution you proposed: "implement a listener could possibly Which Achieve What I Want." I checked out the Author Kit SDK, I know how to implement a listerner, but I do not know where deploy it in oxygen ... is what I have to implement a class that inherits a class of oxygen?
Thank you in advance
Thank you for your reply. I will therefore use the second solution you proposed: "implement a listener could possibly Which Achieve What I Want." I checked out the Author Kit SDK, I know how to implement a listerner, but I do not know where deploy it in oxygen ... is what I have to implement a class that inherits a class of oxygen?
Thank you in advance
-
- Posts: 9511
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Event Management
Hi,
There is a chapter in the Oxygen User Guide called Author Developer Guide (which can be found also in the Author SDK package):
http://www.oxygenxml.com/doc/ug-oxygen/ ... guide.html
In that chapter there is a sub-section describing how to add extensions:
http://www.oxygenxml.com/doc/ug-oxygen/ ... sions.html
A quick not-detailed explanation:
The Oxygen installation directory contains a frameworks directory.
For each supported XML file type there is a subdirectory in that directory (for example "docbook"). That subdirectory contains document templates, the DTDs/XML Schemas used to validate the specific XML file type, the CSS used for rendering, a jar file containing the Author Extensions for that document type and a ".framework" file.
That file is created by Oxygen when you add a new external document type in the "Document Type Association" preferences page.
If you tell us what kind of XML files you are editing and send us a sample schema and CSS I'll try to create a sample framework directory to get you started.
Our email address is:
support@oxygenxml.com
Regards,
Radu
There is a chapter in the Oxygen User Guide called Author Developer Guide (which can be found also in the Author SDK package):
http://www.oxygenxml.com/doc/ug-oxygen/ ... guide.html
In that chapter there is a sub-section describing how to add extensions:
http://www.oxygenxml.com/doc/ug-oxygen/ ... sions.html
A quick not-detailed explanation:
The Oxygen installation directory contains a frameworks directory.
For each supported XML file type there is a subdirectory in that directory (for example "docbook"). That subdirectory contains document templates, the DTDs/XML Schemas used to validate the specific XML file type, the CSS used for rendering, a jar file containing the Author Extensions for that document type and a ".framework" file.
That file is created by Oxygen when you add a new external document type in the "Document Type Association" preferences page.
If you tell us what kind of XML files you are editing and send us a sample schema and CSS I'll try to create a sample framework directory to get you started.
Our email address is:
support@oxygenxml.com
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 14
- Joined: Sat Nov 14, 2009 10:08 pm
Re: Event Management
Hi Radu,
Thank you very much for your help, I have received your mail, it helped me a lot. I have another question please: In the XML editor, I would like tt control the mouse event "double left click" (of my mouse): For example, when I double left click on a tag in opened xml document, I would like to extract the contents of the tag selected. It Is there a way to do so? is it possible to place a listener on the double left click of my mouse?
Ragards,
leb
Thank you very much for your help, I have received your mail, it helped me a lot. I have another question please: In the XML editor, I would like tt control the mouse event "double left click" (of my mouse): For example, when I double left click on a tag in opened xml document, I would like to extract the contents of the tag selected. It Is there a way to do so? is it possible to place a listener on the double left click of my mouse?
Ragards,
leb
-
- Posts: 9511
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Event Management
Hi,
Can you be more specific?
Do you want to add this behavior in the "Text" or in the "Author" page?
What do you mean by "extract the contents"? Do you want to call a custom action which uses the tag's contents in some way or do you want to modify in the document and remove the element's tags, leaving only the contents?
Maybe you can give us a small example.
Regards,
Radu
Can you be more specific?
Do you want to add this behavior in the "Text" or in the "Author" page?
What do you mean by "extract the contents"? Do you want to call a custom action which uses the tag's contents in some way or do you want to modify in the document and remove the element's tags, leaving only the contents?
Maybe you can give us a small example.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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