Difference between revisions of "Configure the Examples"

From WeizmannWiki
Jump to: navigation, search
 
Line 1: Line 1:
Before you can compile and run the examples, you need to configure them:  
+
Before you can compile and run the examples, you need to configure them:
  
<span style="font-size: larger"><big>1. </big></span>From Window menu, choose Preferences-&gt;Google-&gt;Web Toolkit. Configure it to point to your &lt;PlayGo&gt;\plugins\com.google.gwt.eclipse.sdkbundle.2.0.0_2.0.0.v200912062003\gwt-2.0.0 directory:  
+
<span style="font-size: larger"><big>1. </big></span>From Window menu, choose Preferences-&gt;Google-&gt;Web Toolkit. Configure it to point to your &lt;PlayGo&gt;\plugins\com.google.gwt.eclipse.sdkbundle.2.0.0_2.0.0.v200912062003\gwt-2.0.0 directory:
  
[[Image:Gwt.preferences.jpg]]  
+
[[Image:Gwt.preferences.jpg]]
  
 
<br>
 
<br>
  
<big>2.</big> From Window menu, choose Preferences-&gt;Google-&gt;App Engine. Configure it to point to your &lt;PlayGo&gt;\plugins\com.google.appengine.eclipse.sdkbundle.1.3.0_1.3.0.v200912141120\appengine-java-sdk-1.3.0 directory:  
+
<big>2.</big> From Window menu, choose Preferences-&gt;Google-&gt;App Engine. Configure it to point to your &lt;PlayGo&gt;\plugins\com.google.appengine.eclipse.sdkbundle.1.3.0_1.3.0.v200912141120\appengine-java-sdk-1.3.0 directory:
  
[[Image:Gwt.preferences2.jpg]]  
+
[[Image:Gwt.preferences2.jpg]]
  
 
<br>
 
<br>
  
<big>3.</big> From Window menu, choose Preferences-&gt;Java-&gt;Build PathClasspath Variables. Edit the PLAYGO_PLUGINS variable to point to your &lt;PlayGo&gt;/plugins/ directory:  
+
<big>3.</big> From Window menu, choose Preferences-&gt;Java-&gt;Build PathClasspath Variables. Edit the PLAYGO_PLUGINS variable to point to your &lt;PlayGo&gt;/plugins/ directory:
  
[[Image:Classpath.references.jpg]]  
+
[[Image:Classpath.references.jpg]]
  
 
<br>
 
<br>
  
<big>4.</big> Basically the examples provided are configured with relative paths and should work well in your environment, but this is a good opportunity to introduce some parts of the configuration you can control. Right click the GWTMemoryGame project-&gt;Properties-&gt;S2A Builder:  
+
<big>4.</big> Basically the examples provided are configured with relative paths and should work well in your environment, but this is a good opportunity to introduce some parts of the configuration you can control. Right click the GWTMemoryGame project-&gt;Properties-&gt;S2A Builder:
  
[[Image:Playgo.s2a.properties.jpg]]  
+
[[Image:Playgo.s2a.properties.jpg]]
  
As shown in the screenshot above, there are 3 tabs in which you can configure properties related to S2A:  
+
As shown in the screenshot above, there are 3 tabs in which you can configure properties related to S2A:
  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A. S2A Compilation  
+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A. S2A Compilation
  
 
       i. Here you can add and remove models which you want to compile with S2A.
 
       i. Here you can add and remove models which you want to compile with S2A.
  
For those models you add, you may choose which LSCs should be compiled by S2A. In other words, for which Interactions S2A will generate aspects.  
+
For those models you add, you may choose which LSCs should be compiled by S2A. In other words, for which Interactions S2A will generate aspects.
  
 
     ii. Target Folder: here you specify the directory in which the generated aspects will be located.
 
     ii. Target Folder: here you specify the directory in which the generated aspects will be located.
Line 35: Line 35:
 
     iv. Polymorphism – enable or disable polymorphism.
 
     iv. Polymorphism – enable or disable polymorphism.
  
B. Imports  
+
B. Imports
  
 
       i. Here you may specify packages that will be imported in the generated aspects.
 
       i. Here you may specify packages that will be imported in the generated aspects.
Line 44: Line 44:
 
<big></big>
 
<big></big>
  
<big>5.</big> S2A preferences – Advanced From the Windows menu, select Preferences-&gt;PlayGo-&gt;S2A Builder  
+
<big>5.</big> S2A preferences – Advanced From the Windows menu, select Preferences-&gt;PlayGo-&gt;S2A Builder
  
[[Image:Playgo.s2a.properties.advanced.jpg]]  
+
[[Image:Playgo.s2a.properties.advanced.jpg]]
  
 
<br>Here you can choose the strategy you want to activate. Currently the only strategy implemented is the Naive strategy and this is the one being used.
 
<br>Here you can choose the strategy you want to activate. Currently the only strategy implemented is the Naive strategy and this is the one being used.
 +
 +
 +
[[What You Can Do with the Provided Workspace]]

Latest revision as of 15:47, 19 August 2010

Before you can compile and run the examples, you need to configure them:

1. From Window menu, choose Preferences->Google->Web Toolkit. Configure it to point to your <PlayGo>\plugins\com.google.gwt.eclipse.sdkbundle.2.0.0_2.0.0.v200912062003\gwt-2.0.0 directory:

Gwt.preferences.jpg


2. From Window menu, choose Preferences->Google->App Engine. Configure it to point to your <PlayGo>\plugins\com.google.appengine.eclipse.sdkbundle.1.3.0_1.3.0.v200912141120\appengine-java-sdk-1.3.0 directory:

Gwt.preferences2.jpg


3. From Window menu, choose Preferences->Java->Build PathClasspath Variables. Edit the PLAYGO_PLUGINS variable to point to your <PlayGo>/plugins/ directory:

Classpath.references.jpg


4. Basically the examples provided are configured with relative paths and should work well in your environment, but this is a good opportunity to introduce some parts of the configuration you can control. Right click the GWTMemoryGame project->Properties->S2A Builder:

Playgo.s2a.properties.jpg

As shown in the screenshot above, there are 3 tabs in which you can configure properties related to S2A:

      A. S2A Compilation

     i.	Here you can add and remove models which you want to compile with S2A.

For those models you add, you may choose which LSCs should be compiled by S2A. In other words, for which Interactions S2A will generate aspects.

    ii.	Target Folder: here you specify the directory in which the generated aspects will be located.
   iii.	Clear Automatically – if on, cleans the aspects directory before generating new aspects.
    iv.	Polymorphism – enable or disable polymorphism.

B. Imports

     i.	Here you may specify packages that will be imported in the generated aspects.
    ii.	Output package name – the package of the generated aspects.

   C. General – currently used only for specifying the log4j configuration location.

5. S2A preferences – Advanced From the Windows menu, select Preferences->PlayGo->S2A Builder

Playgo.s2a.properties.advanced.jpg


Here you can choose the strategy you want to activate. Currently the only strategy implemented is the Naive strategy and this is the one being used.


What You Can Do with the Provided Workspace