Update QueryFormatter.xtend so that it properly formats everything.
To see how the formatter works, install everything per the setup instructions. Then start a second Eclipse.
In that second Eclipse,
- create a new blank project (File -> New -> Project or File->New->Other->General->Project) and click Next.
- Give it a name and click Finish.
- copy the following file from the first Eclipse to the new project:
/com.epistimis.uddl.tests/src/com/epistimis/uddl/tests/UDDL_SDM_Min.uddl
- Open the UDDL file in the new project.
- Select the edit window, and use Cmd-Shift-F on Mac or Alt-Shift-F on Windows to format the file.
Modifying the code
The code that formats UDDL Queries can be found in
/com.epistimis.uddl.query/src/com/epistimis/uddl/query/formatting2/QueryFormatter.xtend
For examples of how to do this (and some generic functions you can use), see
/com.epistimis.uddl/src/com/epistimis/uddl/formatting2/UddlFormatter.xtend
The task is to use what you see as an example and extend the code to properly format every Query grammar element. You'll need to create one or more query files, each containing at least 3 of each of the things described in the Query.xtext file.
Update QueryFormatter.xtend so that it properly formats everything.
To see how the formatter works, install everything per the setup instructions. Then start a second Eclipse.
In that second Eclipse,
/com.epistimis.uddl.tests/src/com/epistimis/uddl/tests/UDDL_SDM_Min.uddl
Modifying the code
The code that formats UDDL Queries can be found in
/com.epistimis.uddl.query/src/com/epistimis/uddl/query/formatting2/QueryFormatter.xtend
For examples of how to do this (and some generic functions you can use), see
/com.epistimis.uddl/src/com/epistimis/uddl/formatting2/UddlFormatter.xtend
The task is to use what you see as an example and extend the code to properly format every Query grammar element. You'll need to create one or more query files, each containing at least 3 of each of the things described in the Query.xtext file.