Editing MXML files with Eclipse 3.1
Eclipse 3.1 rocks! Much faster than before, and much kinder to my old laptop.
To work with MXML documents in Eclipse, use the Eclipse Web Tools Platform http://www.eclipse.org/webtools/index.html. Follow instructions to get Web Tools going with Eclipse.
Once it is working, you need to do the following to get the plugin to recognize MXML xml schema (for tag insight/code completion).
Set XML Catalog:
Goto Preferences > Web & XML > XML Catalog.
Create a "User Specified Entry" pointing to the MXML schema file with Flex 1.5. Settings on my machine are as follows (you will have to plug in the path to mxml.xsd on your machine):
<div class="code">URI: file:<A TARGET="_blank" xhref="C:\Program Files">C:\Program Files</A>\Macromedia\Flex1.5\extras\schema\mxml.xsd<br>
Key Type: Namespace Name
Key: <A TARGET="_blank" xhref="http://www.macromedia.com/2003/mxml" mce_href="http://www.macromedia.com/2003/mxml">http://www.macromedia.com/2003/mxml</A></div>
Setup Association:
Goto Preferences > Editors > Content Types. Under "XML" add "*.mxml".
Apply and Save.
Next time you open MXML file it should be color-coded and should have tag completion/tag insight. To get tag insight going, you will have to type in "<mx:" followed by CTRL key and SPACE.
Make sure you also have the "Properties" view on by going to Windows > Show View > Properties. This way all properties of a given tag show up in the Properties view.
Thanks Vlad for your help.
Comments
There are no comments for this page as yet.
print page
