Skip to content

Commit

Permalink
Add java based templates
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Mar 29, 2012
1 parent 9483265 commit 3a99f94
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions JavafxGriffonArchetype.groovy
Expand Up @@ -20,7 +20,7 @@
*/
class JavafxGriffonArchetype {
String version = '0.1'
String griffonVersion = '0.9.5-SNAPSHOT > *'
String griffonVersion = '0.9.5 > *'
String license = 'Apache Software License 2.0'
String source = 'https://github.com/deanriverson/griffon-javafx-archetype'
String documentation = ''
Expand All @@ -43,7 +43,7 @@ command, like this
Configuration
-------------
There's no additional configuration required by this archetype.'
There's no additional configuration required by this archetype.
[1]: http://javafx.com/
'''
Expand Down
2 changes: 2 additions & 0 deletions application.groovy
Expand Up @@ -34,6 +34,8 @@ target(name: 'createApplicationProject', description: 'Creates a new app project
argsMap.controller = 'ApplicationController'
argsMap.model = 'ApplicationModel'
createMVC()

updateMetadata(['app.toolkit': 'javafx'], new File("${basedir}/application.properties"))
}

setDefaultTarget(createApplicationProject)
4 changes: 1 addition & 3 deletions application.properties
@@ -1,4 +1,2 @@
#Griffon Metadata file
#Fri Feb 03 14:24:57 PST 2012
app.griffon.version=0.9.5-SNAPSHOT
app.griffon.version=0.9.5-rc2
app.name=javafx
2 changes: 1 addition & 1 deletion templates/artifacts/ApplicationController.java
Expand Up @@ -19,7 +19,7 @@ public void setView(@artifact.name.plain@View view) {
Please read chapter 9 of the Griffon Guide to know more.
public void action() {
execOutside(new Runnable() {
execOutsideUI(new Runnable() {
public void run() {
// action code
}
Expand Down
2 changes: 1 addition & 1 deletion templates/artifacts/ApplicationView.java
Expand Up @@ -58,7 +58,7 @@ private Scene init() {

@Override
public void mvcGroupInit(final Map<String, Object> args) {
execSync(new Runnable() {
execInsideUISync(new Runnable() {
public void run() {
Stage stage = (Stage) getApp().createApplicationContainer();
stage.setTitle("@griffon.project.name@");
Expand Down

0 comments on commit 3a99f94

Please sign in to comment.