Skip to content

Commit

Permalink
[SimpleApp] Add a simple app for basic testing
Browse files Browse the repository at this point in the history
Current version tests local storage.
  • Loading branch information
sacnl committed May 16, 2013
1 parent 910b514 commit 85c2e8a
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 0 deletions.
6 changes: 6 additions & 0 deletions de.wwu.md2.simple/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
<classpathentry kind="output" path="bin"/>
</classpath>
23 changes: 23 additions & 0 deletions de.wwu.md2.simple/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>de.wwu.md2.simple</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
</natures>
</projectDescription>
2 changes: 2 additions & 0 deletions de.wwu.md2.simple/.settings/org.eclipse.core.resources.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
encoding/<project>=UTF-8
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package de.wwu.md2.simple.controllers

/*
* Implement the controller here
*/
main {
appName "Simple App"
appVersion "0.1"
modelVersion "0.1"
startView SimpleView
onInitialized init
}

contentProvider TestEntity localTestStore {
providerType local
}

action CustomAction init {
bind action DataAction(load localTestStore) on SimpleView.loadBtn.onTouch
bind action DataAction(save localTestStore) on SimpleView.saveBtn.onTouch
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package de.wwu.md2.simple.models

/*
* Implement the model here
*/
entity TestEntity {
testString : string
testDate : date
}
12 changes: 12 additions & 0 deletions de.wwu.md2.simple/src/de/wwu/md2/simple/views/defaultView.md2
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package de.wwu.md2.simple.views

/*
* Implement the view here
*/
FlowLayoutPane SimpleView(vertical) {
AutoGenerator testEntityGen {
contentProvider localTestStore
}
Button loadBtn("Load")
Button saveBtn("Save")
}

0 comments on commit 85c2e8a

Please sign in to comment.