Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

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:

  1. Window > Preferences > Validation
    1. turn off XML Schema Validator
    2. turn off DTD Validator
    3. click the ... settings
  2. Window-Preferences-Validation
    1. turn off XML Schema Validation
    2. turn off DTD Validation
  3. Window-Preferences-Validation click
    1. box to the right of XML Validator.
    Click on top includes, then Add Rule -> FileExension. Add extensions tdml and dfdl.xsd as XML validation extensions
  4. Window Preferences search for content type
    1. (details TBD) Add content type XML for extension TDML, and for dfdl.xsd
  5. Window-Preferences-XML-Editor
    1. 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.)

...

    1.  
      1. Select Include Group
      2. Click Add Rule
      3. Select File Extension
      4. Click Next
      5. Add extensions tdml
      6. Click Finish
      7. Repeat steps i-vi, replacing tdml with dfdl.xsd
  1. Window > Preferences > General > Content Types
    1. Select Text > XML
    2. Click Add...
    3. Set Content type to *.dfdl.xsd
    4. Repeat steps b-c with content type set to *.tdml
  2. Window > Preferences > XML > XML Files > Editor
    1. Uncheck Format comments