Macromedia Flex .mxml file and oxygen 6.1

Having trouble installing Oxygen? Got a bug to report? Post it all here.
mike89
Posts: 3
Joined: Thu Aug 04, 2005 6:14 am

Macromedia Flex .mxml file and oxygen 6.1

Post by mike89 »

hello,
I am evaluating oxygen 6.1 plugin for eclipse 3.1 and not able to get tag insight work for Macromedia Flex .mxml files. however, if i rename .mxml to .xml, tag insight works fine.

the tag insight (Preferences /oXygen/Editor/Tag Insight/Default) was on top of default rules and was set up like:
namespace: http://www.macromedia.com/2003/mxml
root local name: <ANY>
file name: <ANY>
schema type: XML schema
schema URI: path_to_local_mxml_xsd_file

also same setting working fine for mxml files in eclipse 3.1 and oxygen 6.0.

any idea how to make oxygen 6.1 plugin work for mxml files?
thanks in advance.
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi Mike,

If the content completion works if the file has the xml extension then that is configured correctly. Please make sure you open the mxml file with the oXygen XML editor, for that use the Open With... contextual menu action and choose oXygen XML Editor. If you do not find it in the list of available editors then you should associate that with oXygen. To make a file association with the oXygen XML Editor in Eclipse you have to take the following steps:

1. Go to Window->Preferences -- General / Content Types page
2. Select Text->XML->oXygen XML
3. Click Add and enter *.mxml
4. Go to Window->Preferences -- General / Editors / File Associations page
5. Click Add from file types and enter *.mxml
6. Select the *.mxml entry and click Add from Associated editors
7. Select the Oxygen XML Editor
8. Make the Oxygen XML Editor the default editor

Best Regards,
George
mike89
Posts: 3
Joined: Thu Aug 04, 2005 6:14 am

Post by mike89 »

thanks George.
oXygen XML was set up as the default editor for mxml files, and i reset them as you suggested. still no luck.
model view shows correct element/attribute values, attribute view shows correct attribute values. but just no tag insight for editing mxml file.
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Do you see the syntax coloring right?
It looks like the file association problem of oXygen 6.1 on Eclipse, see
http://www.oxygenxml.com/forum/ftopic1123.html
We made a 6.1.1 available where we implemented an workaound for this issue, see
http://www.oxygenxml.com/forum/ftopic1151.html
For uninstalling an existing version see
http://www.oxygenxml.com/forum/ftopic1136.html

Best Regards,
George
mike89
Posts: 3
Joined: Thu Aug 04, 2005 6:14 am

Post by mike89 »

George, I really appreciate your help.

followed AggieScott's post in http://www.oxygenxml.com/forum/ftopic1123.html, I added mxml extension to plugin.xml and that fixed the problem.
Post Reply