See also Installing Eclipse and Configure Eclipse - Part 1.
This is additional Eclipse configuration - particularly to get XML aspects of Eclipse working reasonably.
This page assumes you have installed Eclipse' XML support, i.e., the "Eclipse XML Editors and Tools" software. If this is not already installed in your Eclipse instance, you can install it from the update site for your version of Eclipse.
Getting eclipse to validate DFDL Schemas using its XML validation capabilities requires some configuration. Without this you will get hundreds (at least) of XML and XML Schema validation errors from the daffodil code base.
There is a single file of interest to this located in your dfdl git repository:
IMPORTANT: You'll likely need to split out into two distinct workspaces and two distinct copies of Eclipse.
Select Window -> Preferences
Select Validation. Verify that the following are NOT checked at all: DTD Validator, HTML Syntax Validator, XML Schema Validator.
Your selections should look similar to the following:
Click the "..." button next to XML Validator. The following window should pop-up:
Your "Validation Filters for XML Validator" window should now look similar to the one pictured above.
You should now be back at the "Validation" screen. Click Apply. Click OK.
Window -> Preferences -> General -> Content Types
Under 'Content types' click Text. This will expand.
Text will appear under 'File associations'. To the right of this box click Add.
In the pop-up enter "*.tdml" without quotes as pictured below.
Under 'File associations' you should now see "*.tdml".
In the left menu, select Editors -> File Associations.
Click 'Add'. Enter "*.tdml" in the text field of the pop-up as pictured below.
Under 'File types' you should now see "*.tdml".
Select "*.tdml" and look at the 'Associated editors' field.
If it contains "XML Editor", you are done and may click OK. Otherwise, you'll need to add it:
Click 'Add'. Select "XML Editor". Click OK.
Click 'Add'. Select "Text Editor". Click OK.
With the settings and XML Catalog above, you can edit DFDL Schemas, and get support from Eclipse.
You need to describe where you cloned the daffodil repository. To do so, perform the following:
A US install normally doesn't default to a Unicode friendly environment. One of the features of the Scala programming language is that it is completely unicode aware.
See Setup Microsoft Windows for Unicode, to insure your MS Windows installation can properly cope with Unicode characters.
But, to make a USA windows default install of Windows itself, and Eclipse unicode friendly you have to take a few steps.
Do not exit this dialog as of yet.
From the left pane select General -> Appearance -> Colors and Fonts
For the text font (bottom of list usually), change it to Courier New by clicking Edit and selecting Courier New. This font has many of the glyphs for unicode characters in it.
In the Package Explorer. Select all of the daffodil projects. (Click the first daffodil project. Hold Shift. Click the last daffodil project. Release Shift.)
Right-click the first daffodil project.
On Linux, UTF-8 and good unicode fonts are the default. Nothing to do here.