-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SimpleApp] Add a simple app for basic testing
Current version tests local storage.
- Loading branch information
Showing
6 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
eclipse.preferences.version=1 | ||
encoding/<project>=UTF-8 |
21 changes: 21 additions & 0 deletions
21
de.wwu.md2.simple/src/de/wwu/md2/simple/controllers/defaultController.md2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
9 changes: 9 additions & 0 deletions
9
de.wwu.md2.simple/src/de/wwu/md2/simple/models/defaultModel.md2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
12
de.wwu.md2.simple/src/de/wwu/md2/simple/views/defaultView.md2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | ||
} |