- Open Eclipse.
- Select File -> Import -> XML -> XML Catalog.
- Browse to and select daffodil-lib/src/main/resources/eclipse-xml-catalog.xml. Click OK.
- Close Eclipse.
Import Eclipse Settings: Windows
- Close Eclipse.
- Open Windows Explorer and open the folder of your local dfdl git repository.
- Navigate to the following file: daffodil-core/src/main/resources/eclipse-settings.zip
- Copy this file.
- Navigate to the location of your Eclipse workspace.
- Navigate to ".metadata/.plugins/org.eclipse.core.runtime/".
- Here, paste the eclipse-settings.zip file.
- Right-click eclipse-settings.zip -> 7 Zip -> Extract Here
- You may be asked if you'd like to replace the files. Select yes to all.
Import Eclipse Settings: Linux
Open a Terminal and cd to your local dfdl git repository. Likely "/home/username/git/dfdl" or "~/git/dfdl".
$ cd ~/git/dfdl $ cp daffodil-core/src/main/resources/eclipse_settings.zip ~/workspace/.metadata/.plugins/org.eclipse.core.runtime/ $ cd ~/workspace/.metadata/.plugins/org.eclipse.core.runtime/ $ ls -la
The above commands essentially copy the eclipse_settings.zip file to the "org.eclipse.core.runtime" folder of your workspace.
The 'ls -la' command should show you that "org.eclipse.core.runtime" contains the zip file and a hidden ".settings" folder.
Now we need to unzip the file and replace the contents of the ".settings" folder.
$ unzip eclipse_settings.zip
You will be asked if you want to replace. Enter "A". This will replace all of the files.
Close the Terminal.
Test It Out
With the settings and XML Catalog above, you can edit DFDL Schemas, and get support from Eclipse.
- From the Windows Start Menu, click Control Panel.
- In the Control Panel select Windows Update.
- Here you will want to make sure to show all hidden updates as you will need to install one of them if you haven't already.
- Choose the Japanese language pack. Install it. Reboot
On Linux, UTF-8 and good unicode fonts are the default. Nothing to do here.