Hide last authors
cmot 18.1 1 {{info}}
cds 21.1 2 These examples were created and tested under KIELER Pragmatics 0.10.0.
cmot 18.1 3 {{/info}}
4
5
6
cmot 13.1 7 These instructions should guide you if you'd like to try out using KLighD for visualizing your own models or data structures.
cmot 1.1 8
bdu 31.3 9 == Two Examples ==
cmot 13.1 10
cmot 22.1 11 We provide two minimal step-by-step examples:
cmot 13.1 12
cmot 24.1 13 |=(((
cmot 25.1 14 ====== [[image:attach:klighd-minimal-example.png]] ======
cmot 22.1 15
cmot 24.1 16 (% style="text-align: center;" %)
Niklas Rentz 40.1 17 [[(1) Minimal Example (Java Model)>>doc:KIELER.Discontinued Projects.KLighD old Minimal Example HowTo.Minimal Example (Java Model).WebHome]]
cmot 24.1 18
cmot 25.1 19 (% style="text-align: center;" %)
20 demonstrates a KLighD visualization of a trivial
21 (% style="color: rgb(0,128,0);" %)Java data(%%) (% style="color: rgb(0,128,0);" %)structure
cmot 24.1 22 )))|=(((
23 [[image:attach:myxtextdata.png]]
24
25 (% style="text-align: center;" %)
26
27
bdu 32.1 28
bdu 31.3 29
Alexander Schulz-Rosengarten 34.1 30
bdu 33.1 31
Alexander Schulz-Rosengarten 37.1 32
Alexander Schulz-Rosengarten 35.1 33
Niklas Rentz 40.1 34
Alexander Schulz-Rosengarten 38.1 35
Niklas Rentz 41.1 36 [[(2) Minimal Example (Xtext Model)>>doc:KIELER.Discontinued Projects.KLighD old Minimal Example HowTo.Minimal Example (Xtext Model).WebHome]]
37
cmot 24.1 38 (% style="text-align: center;" %)
cmot 25.1 39 demonstrates a KLighD visualization of a trivial
40 (% style="color: rgb(0,128,0);" %)Xtext model
cmot 24.1 41 )))
42
bdu 30.1 43 Both examples require an Eclipse Kepler Modeling setup with the KLighD framework installed. Please follow the instruction below in order to setup an Eclipse suitable to run the examples. It is suggested to start with a fresh copy of Eclipse. You can install both examples in the same workspace and run them together, or, if you are only interested in one of them, you can choose to install only one of the examples in your workspace.
cmot 13.1 44
bdu 29.1 45
46
cmot 23.1 47 == Eclipse Installation (pre-requirement) ==
cmot 1.1 48
bdu 29.1 49 In order to get these examples working, you need an Eclipse installation according to the following instructions:
cmot 1.1 50
cmot 7.1 51 1. Download Eclipse Kepler (Modeling Edition):
cmot 10.1 52 Windows x64: [[http:~~/~~/www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/kepler/SR1/eclipse-modeling-kepler-SR1-win32-x86_64.zip&mirror_id=546>>url:http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/kepler/SR1/eclipse-modeling-kepler-SR1-win32-x86_64.zip&mirror_id=546||shape="rect"]]
53 Mac x64: [[http:~~/~~/www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/kepler/SR1/eclipse-modeling-kepler-SR1-macosx-cocoa-x86_64.tar.gz>>url:http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/kepler/SR1/eclipse-modeling-kepler-SR1-macosx-cocoa-x86_64.tar.gz||shape="rect"]]
54 Other: [[http:~~/~~/www.eclipse.org/downloads/packages/eclipse-modeling-tools/keplersr1>>url:http://www.eclipse.org/downloads/packages/eclipse-modeling-tools/keplersr1||shape="rect"]]
bdu 27.1 55 1. Start Eclipse.
bdu 31.3 56 1. Add the KIELER Pragmatics release 0.10.0 update site to your Eclipse (Help -> Install New Software ... -> Add)[[:>>url:http://rtsys.informatik.uni-kiel.de/~~kieler/updatesite/||shape="rect"]][[http:~~/~~/rtsys.informatik.uni-kiel.de/~~~~kieler/updatesite/release_pragmatics_0.10.0/>>url:http://rtsys.informatik.uni-kiel.de/~~kieler/updatesite/release_pragmatics_0.10.0/||shape="rect"]]
cmot 7.1 57 1. Select
58 [x] Layout,
59 [x] Lightweight Diagrams, and
60 [x] Sources
cmot 16.1 61 to be installed into your Eclipse. You may need to re-start Eclipse after finishing the installation process. Note that you may be asked to review installation process where kieler.ptolemy features are opt out. You can safely accept these proposed changes as this feature is not mandatory in order to properly run the examples.
cmot 7.1 62
63
cmot 16.1 64
65 == Run-Configuration ==
66
bdu 30.1 67 When you have setup the examples as explained in the sub-pages, you finally want to run the examples. You need to setup a run-configuration to do so. You can run both examples using the same run-configuration.
cmot 16.1 68
cmot 17.1 69 1. Click on Run -> Run Configurations ...
70 1. Right click on Eclipse Applications and then click on New
71 1. Give the run-configuration a proper name, e.g. KLighD Example
72 1. (((
bdu 28.1 73 In the Arguments tab, set the **VM arguments** to:
cmot 17.1 74
75 {{code}}
76 -Dosgi.requiredJavaVersion=1.5 -Dhelp.lucene.tokenizer=standard -Xms80m -Xmx1048m -Xss2048k -XX:MaxPermSize=196m
77 {{/code}}
78 )))
79 1. Finally, click on Apply, then click Run to start the example.