aboutsummaryrefslogtreecommitdiff
path: root/js/io/workflow/newFileDialog/new-file-workflow-model.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/io/workflow/newFileDialog/new-file-workflow-model.js')
-rwxr-xr-x[-rw-r--r--]js/io/workflow/newFileDialog/new-file-workflow-model.js39
1 files changed, 32 insertions, 7 deletions
diff --git a/js/io/workflow/newFileDialog/new-file-workflow-model.js b/js/io/workflow/newFileDialog/new-file-workflow-model.js
index 49c9804d..bcaf8132 100644..100755
--- a/js/io/workflow/newFileDialog/new-file-workflow-model.js
+++ b/js/io/workflow/newFileDialog/new-file-workflow-model.js
@@ -22,14 +22,30 @@ exports.NewFileWorkflowModel = Object.create(Object.prototype, {
22 return contents; 22 return contents;
23 } 23 }
24 }, 24 },
25
26 defaultProjectType:{
27 writable: true,
28 enumerable: true,
29 value: null
30 },
31
32 callback : {
33 enumerable: true,
34 writable: true,
35 value: null
36 },
37
38 callbackScope : {
39 enumerable: true,
40 writable: true,
41 value: null
42 },
43
25 projectTypeData:{ 44 projectTypeData:{
26 writable:false, 45 writable:false,
27 enumerable:false, 46 enumerable:false,
28 value:{//dummy data for testing 47 value:{//dummy data for testing
29 "projectTypes":{ 48 "categories":{
30 "name":"Project Type",
31 "type":"directory",
32 "uri":"projectTypes",
33 "children":["newFile", "newProject", "fromTemplate"] 49 "children":["newFile", "newProject", "fromTemplate"]
34 }, 50 },
35 "newProject":{ 51 "newProject":{
@@ -104,18 +120,27 @@ exports.NewFileWorkflowModel = Object.create(Object.prototype, {
104 "htmlTemplate":{ 120 "htmlTemplate":{
105 "name":"HTML", 121 "name":"HTML",
106 "uri":"htmlTemplate", 122 "uri":"htmlTemplate",
107 "type":"file" 123 "type":"file",
124 "children":["defaultTemplate", "xoomApp", "iosApp", "androidApp", "bannerAd"]
108 }, 125 },
109 "cssTemplate":{ 126 "cssTemplate":{
110 "name":"CSS", 127 "name":"CSS",
111 "uri":"cssTemplate", 128 "uri":"cssTemplate",
112 "type":"file" 129 "type":"file",
130 "children":["defaultTemplate"]
113 }, 131 },
114 "javascriptTemplate":{ 132 "javascriptTemplate":{
115 "name":"Javascript", 133 "name":"JavaScript",
116 "uri":"javascriptTemplate", 134 "uri":"javascriptTemplate",
135 "type":"file",
136 "children":["defaultTemplate"]
137 },
138 defaultTemplate:{
139 "name": "default",
140 "uri": "defaultTemplate",
117 "type":"file" 141 "type":"file"
118 } 142 }
143
119 } 144 }
120 } 145 }
121}); 146});