This page is a script (of sorts) for how to do all the various eclipse settings needed, and do them "the hard way", by hand, from a clean eclipse install.
Eclipse XML Settings
The following is the script for creating the XML settings
(Please improve this)
Following are steps to modify the eclipse XML settings to aid in the creation of DFDL schemas:
Window > Preferences > Validation
- turn off
XML Schema Validator
- turn off
DTD Validator
- click the
...
settings
- turn off
- Window-Preferences-Validation
- turn off XML Schema Validation
- turn off DTD Validation
- Window-Preferences-Validation click
- box to the right of
XML Validator
.
- box to the right of
- Window Preferences search for content type
- (details TBD) Add content type XML for extension TDML, and for dfdl.xsd
- Window-Preferences-XML-Editor
- uncheck "format comments"
Issue: Folder Structure Must Match Package Structure
Scala as a language does not require file names to match class names, nor file directory paths to match package names.
However, the Eclipse IDE support for scala as of Scala IDE 3.0.0 (2014-04-04), allows class names to differ from file names, but is very dependent on directory structure matching the package structure. Without this unit tests will not be found, and so cannot be conveniently run from the IDE. (Error: No tests found for Junit... If you get this error, assume package and folder structure are not matching.)
...
-
- Select
Include Group
- Click
Add Rule
- Select
File Extension
- Click
Next
- Add extensions
tdml
- Click
Finish
- Repeat steps
i-vi
, replacingtdml
withdfdl.xsd
- Select
-
Window > Preferences > General > Content Types
- Select
Text > XML
- Click
Add...
- Set Content type to
*.dfdl.xsd
- Repeat steps
b-c
with content type set to *.tdml
- Select
Window > Preferences > XML > XML Files > Editor
- Uncheck
Format comments
- Uncheck