From 2c8f4ec0759c0e6643761f488e1d21d6c720bf64 Mon Sep 17 00:00:00 2001
From: "john.j.camilleri" NZ?yPbbWi@vod4cC{w~<29k|1C@i*<`
zHD8l%tv3ov@>HAfV#1!Ky4QZh|M>E{LaOw&ORsTs#D4XjecHb+Y29ME=>Or!Hr+jY
ze&%0_mYVaf{^a)f-0(#O+7=4~euwUxqEY*MYJP#N(~k~ePO%4vs&I@J{_ZgCRlO?~
zRd-uIh;!xNRZZLCC7GozS{coK`#w+kTG)}Y9ao;NEZ_I+cK-geKevC~n#Uq}y7;%N
zNM6IO^s(oNF(m2D?nvWYw*F}*X>XUz=CJvF@=*V_?OP9Le@mCy`dw*B
zprEF8-y^HMwEA_9uMN~Ct@$79%Hqkb-BeM%rajkc)6LzVt!MQ{otyNoS5v=D?cV+Q
z(_idQzZ);7Zu!DaO@Hs)jB>4LasQ_U+xoo0y`hOwQaATRAAM@J_vNm)oNBce+_P`C
z^&f59e$(yJftNPZ{_se@kN2$
i6`|=D*5*Qrt{)x@51e0mmV`ew#Du9?46xECX0P|G(W6()sYte3U@d4
za|s@&ukq~NuDm

Use the GF Module wizard from File → New → Other → GF Module:

You can find some small examples at http://www.grammaticalframework.org/eclipse/examples/. Download the -files and manually add them to your Eclipse workspace to experiment with some of the plugin features.
+You can find some small examples at http://www.grammaticalframework.org/eclipse/examples/. Download the files and manually add them to your Eclipse workspace to experiment with some of the plugin features.
-You can change your syntax colouring styles as you wish from Window → Preferences → Grammatical Framework → Syntax Coloring
+If you want to clone an existing module into a new language, you can now do so via the Clone GF Module wizard. This is also available as a context menu option in the Project Explorer, via <Richt click> → Grammatical Framework → Compile for new language:
-

This will create and open a new module with the relevant replacements made. Note how in this case string constants are replaced by the empty string "". This wizard currently only works on concrete and instance modules.


The Outline view in the bottom-right offers a quite overview of your module structure. Clicking any of the terms will make your cursor jump to that point in the file.
@@ -204,12 +207,26 @@ files and manually add them to your Eclipse workspace to experiment with some of
For validation to work correctly, the project’s Build Automatically option should be turned on.
+ +The in-editor validation sometimes needs to be triggered/updated by a keystroke. If you can still see errors which you believe should be correct, try adding a space character to ensure the validation is re-triggered.
+ +Sometimes you may get an entire file marked with errors, even though in fact there is only a single error which is causing the internal builder to fail. In such cases referring to the Problems view should help you locate the cause. This issue is particularly relevant when changes made to one module may induce errors in its descendants (e.g. renaming a parameter in a resource module). This behaviour will hopefully be improved in future versions.
+Use the built-in code formatter to tidy your code automatically. Right-click in the editor and choose Format or use the keyboard shortcut Ctrl+Shift+F.

You can change your syntax colouring styles as you wish from Window → Preferences → Grammatical Framework → Syntax Coloring
+ +
Set up a launch configuration from Run → Run Configurations… → Grammatical Framework. You will see the dialog below with some fields automatically filled in for you.
@@ -245,6 +262,29 @@ files and manually add them to your Eclipse workspace to experiment with some ofThe Eclipse console implementation does not support command history (up arrow) or auto-completion (tab).
+This view is automatically populated with a list of all the external modules referenced by the current file. Double-clicking on any item provides a quick way of opening GF files which are imported into your grammar from outside your Eclipse project, for example the GF Resource Grammar Library.
+ +
Future versions of this view will contain a full tree of all identifiers available in the current scope.
+ +This feature works together with the launch configurations to make the process of testing treebanks against your grammars quick and easy. The general concept (independent of GFEP) is this:
+ +test.trees which contains a bunch of abstract syntax trees, which you want to testrf -lines -tree -file=test.trees | l -table | wf -file=test.trees.outtest.trees.out and save it as your gold standard file test.gold.diff or some other comparison tool.The Treebank Manager view follows this same pattern but provides a convenient graphical interface for running your treebanks and also for looking at the output, just using a few clicks:
+ +
The GFEP writes to the Eclipse platform log. This can be accessed in two ways:
@@ -256,14 +296,6 @@ files and manually add them to your Eclipse workspace to experiment with some ofYou can set the log verbosity from Window → Preferences → Grammatical Framework.
-For validation to work correctly, the project’s Build Automatically option should be turned on.
- -The in-editor validation sometimes needs to be triggered/updated by a keystroke. If you can still see errors which you believe should be correct, try adding a space character to ensure the validation is re-triggered.
- -Sometimes you may get an entire file marked with errors, even though in fact there is only a single error which is causing the internal builder to fail. In such cases referring to the Problems view should help you locate the cause. This issue is particularly relevant when changes made to one module may induce errors in its descendants (e.g. renaming a parameter in a resource module). This behaviour will hopefully be improved in future versions.
-