How to update framework Actions

Questions about XML that are not covered by the other forums should go here.
kwringe
Posts: 10
Joined: Thu Jun 18, 2009 9:30 pm

How to update framework Actions

Post by kwringe »

Is there any easy way to upgrade a framework file from one version to the next? I'm specifically concerned about updating the Actions.

We've added a number of Actions to help us insert elements (e.g, we have an action item that inserts our Task element template with our defaults and instructions). I would prefer not have to create a new framework based on the current 13.1 framework and add all these Actions (and their related toolbars., etc.).

Is there anything else I can do?

Thanks,
Kate
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: How to update framework Actions

Post by sorin_ristache »

Hi Kate,

No, you don't have to create your framework again based on the current 13.1 built-in one because the structure (and the syntax of the .framework file) is the same. Your custom Author framework created with an older version of Oxygen including any custom actions that you created and added to it should work by just adding the framework to the list of available frameworks from Options -> Preferences -> Document Type Association. Of course you have to make sure that the jar file containing the code of your custom Author actions is specified correctly in the Classpath section (the Classpath tab of the dialog box for editing an Author framework), the actions are added to the toolbar in the Author section, etc.

If you tried to use a custom framework in Oxygen 13.1 and it did not work (the actions were not displayed or they did not work, etc) please give us more details or the error messages that were reported by Oxygen.


Regards,
Sorin
kwringe
Posts: 10
Joined: Thu Jun 18, 2009 9:30 pm

Re: How to update framework Actions

Post by kwringe »

I am able to the older framework file with v13.1.

However, I would like to be able to take advantage of the changes that were introduced in the new version. If I use the older framework file, then I can't use the new Actions (i.e., the xinclude insertion).

I'm looking for an easy way to compare the Action items between the different frameworks. Diffing the files is tedious.

Thanks,
Kate
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: How to update framework Actions

Post by sorin_ristache »

Hi Kate,

In the current version you have to add the new actions manually in the old framework file because there is no automatic method for importing them in older frameworks. We will consider in a future version the simplification of the update of older frameworks.

If the creation of your custom framework did not entail extensive modifications of the built-in one I think it is easier to re-create the custom framework by re-applying the modifications to the built-in framework from version 13.1 rather than a diff between the two .framework files.


Best regards,
Sorin
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: How to update framework Actions

Post by Radu »

Hi,

Starting with Oxygen 16.0 which was released a couple of days ago you will have the possibility to extend a document type configuration in order to automatically benefit of all changes made to the base configuration in your extension.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply