Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Schindl2015-11-26 18:57:29 +0000
committerTom Schindl2015-11-26 18:57:29 +0000
commitefd87c8bf47c86327c5c944c2076ffc6641f83f4 (patch)
treedb4720bc75e4cbcc4089a81b35b897f1ed24984f
parent0f0fb0d2c01a6ed637e931a934115f1e7e48a961 (diff)
downloadorg.eclipse.efxclipse-efd87c8bf47c86327c5c944c2076ffc6641f83f4.tar.gz
org.eclipse.efxclipse-efd87c8bf47c86327c5c944c2076ffc6641f83f4.tar.xz
org.eclipse.efxclipse-efd87c8bf47c86327c5c944c2076ffc6641f83f4.zip
Bug 483105 - Add an editor for JSON
-rw-r--r--bundles/runtime/org.eclipse.fx.json.schema/.classpath8
-rw-r--r--bundles/runtime/org.eclipse.fx.json.schema/.gitignore1
-rw-r--r--bundles/runtime/org.eclipse.fx.json.schema/.project34
-rw-r--r--bundles/runtime/org.eclipse.fx.json.schema/.settings/org.eclipse.jdt.core.prefs7
-rw-r--r--bundles/runtime/org.eclipse.fx.json.schema/META-INF/MANIFEST.MF7
-rw-r--r--bundles/runtime/org.eclipse.fx.json.schema/build.properties5
-rw-r--r--bundles/runtime/org.eclipse.fx.json.schema/src-gen/org/eclipse/fx/json/schema/.gitignore4
-rw-r--r--bundles/runtime/org.eclipse.fx.json.schema/src-gen/org/eclipse/fx/json/schema/gson/.gitignore4
-rw-r--r--bundles/runtime/org.eclipse.fx.json.schema/src/org/eclipse/fx/json/schema/JsonSchema.gmod41
9 files changed, 111 insertions, 0 deletions
diff --git a/bundles/runtime/org.eclipse.fx.json.schema/.classpath b/bundles/runtime/org.eclipse.fx.json.schema/.classpath
new file mode 100644
index 000000000..f0c554985
--- /dev/null
+++ b/bundles/runtime/org.eclipse.fx.json.schema/.classpath
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" path="src-gen"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/bundles/runtime/org.eclipse.fx.json.schema/.gitignore b/bundles/runtime/org.eclipse.fx.json.schema/.gitignore
new file mode 100644
index 000000000..ae3c17260
--- /dev/null
+++ b/bundles/runtime/org.eclipse.fx.json.schema/.gitignore
@@ -0,0 +1 @@
+/bin/
diff --git a/bundles/runtime/org.eclipse.fx.json.schema/.project b/bundles/runtime/org.eclipse.fx.json.schema/.project
new file mode 100644
index 000000000..2052304ef
--- /dev/null
+++ b/bundles/runtime/org.eclipse.fx.json.schema/.project
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.fx.json.schema</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
+ </natures>
+</projectDescription>
diff --git a/bundles/runtime/org.eclipse.fx.json.schema/.settings/org.eclipse.jdt.core.prefs b/bundles/runtime/org.eclipse.fx.json.schema/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 000000000..0c68a61dc
--- /dev/null
+++ b/bundles/runtime/org.eclipse.fx.json.schema/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,7 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
+org.eclipse.jdt.core.compiler.compliance=1.8
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.8
diff --git a/bundles/runtime/org.eclipse.fx.json.schema/META-INF/MANIFEST.MF b/bundles/runtime/org.eclipse.fx.json.schema/META-INF/MANIFEST.MF
new file mode 100644
index 000000000..607e7a7b0
--- /dev/null
+++ b/bundles/runtime/org.eclipse.fx.json.schema/META-INF/MANIFEST.MF
@@ -0,0 +1,7 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Schema
+Bundle-SymbolicName: org.eclipse.fx.json.schema
+Bundle-Version: 1.0.0.qualifier
+Bundle-RequiredExecutionEnvironment: JavaSE-1.8
+Require-Bundle: com.google.gson;bundle-version="2.2.4"
diff --git a/bundles/runtime/org.eclipse.fx.json.schema/build.properties b/bundles/runtime/org.eclipse.fx.json.schema/build.properties
new file mode 100644
index 000000000..d4e29431a
--- /dev/null
+++ b/bundles/runtime/org.eclipse.fx.json.schema/build.properties
@@ -0,0 +1,5 @@
+source.. = src/,\
+ src-gen/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
diff --git a/bundles/runtime/org.eclipse.fx.json.schema/src-gen/org/eclipse/fx/json/schema/.gitignore b/bundles/runtime/org.eclipse.fx.json.schema/src-gen/org/eclipse/fx/json/schema/.gitignore
new file mode 100644
index 000000000..7881f2f3b
--- /dev/null
+++ b/bundles/runtime/org.eclipse.fx.json.schema/src-gen/org/eclipse/fx/json/schema/.gitignore
@@ -0,0 +1,4 @@
+/JsonSchema.java
+/JsonSchemaBase.java
+/JsonSchemaGModel.java
+/JsonSchemaMap.java
diff --git a/bundles/runtime/org.eclipse.fx.json.schema/src-gen/org/eclipse/fx/json/schema/gson/.gitignore b/bundles/runtime/org.eclipse.fx.json.schema/src-gen/org/eclipse/fx/json/schema/gson/.gitignore
new file mode 100644
index 000000000..4263f7187
--- /dev/null
+++ b/bundles/runtime/org.eclipse.fx.json.schema/src-gen/org/eclipse/fx/json/schema/gson/.gitignore
@@ -0,0 +1,4 @@
+/GsonBase.java
+/GsonElementFactory.java
+/GsonJsonSchemaImpl.java
+/GsonJsonSchemaMapImpl.java
diff --git a/bundles/runtime/org.eclipse.fx.json.schema/src/org/eclipse/fx/json/schema/JsonSchema.gmod b/bundles/runtime/org.eclipse.fx.json.schema/src/org/eclipse/fx/json/schema/JsonSchema.gmod
new file mode 100644
index 000000000..8559630d1
--- /dev/null
+++ b/bundles/runtime/org.eclipse.fx.json.schema/src/org/eclipse/fx/json/schema/JsonSchema.gmod
@@ -0,0 +1,41 @@
+package org.eclipse.fx.json.schema {
+ type JsonSchema {
+ String id;
+ String schema;
+ String title;
+ String description;
+ // default???
+ // multipleOf
+ Double maximum;
+ // exclusiveMaximum
+ Double minimum;
+ // exclusiveMinimum
+ // maxLength
+ // minLength
+ // pattern
+ // additionalItems
+ // items
+ // maxItems
+ // minItems
+ // uniqueItems
+ // maxProperties
+ // minProperties
+ // additionalProperties
+ // definitions
+ // patternProperties
+ // dependencies
+ // enum
+ // allOf
+ // anyOf
+ // oneOf
+ // not
+ String ^type;
+ String[] required;
+
+ JsonSchemaMap properties;
+ JsonSchemaMap definitions;
+ }
+ type JsonSchemaMap {
+ map JsonSchema
+ }
+} \ No newline at end of file

Back to the top