Permalink
Browse files

ProjectGenerator tutorial finished

  • Loading branch information...
1 parent e6d6afd commit 043cf00369957ae26c7c87d71e9ee742fb602fc0 Alexander Bernauer committed Jul 13, 2010
@@ -10,6 +10,10 @@
<targetpaths>
<targetpath>
<path>src</path>
+ <build>
+ <buildConfig>a3cbd5b9-8e65-11df-88d6-a50cae917c2c</buildConfig>
+ <package>com.actifsource.projectgenerator.usage.**</package>
+ </build>
</targetpath>
</targetpaths>
</projectSettings>
@@ -0,0 +1,7 @@
+<?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.6"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src-gen"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
View
@@ -5,13 +5,35 @@
<projects>
</projects>
<buildSpec>
+ <buildCommand>
+ <name>ch.actifsource.ui.generator.javamodelbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
<buildCommand>
<name>ch.actifsource.environment.builder</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>ch.actifsource.environment.nature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.pde.PluginNature</nature>
</natures>
</projectDescription>
@@ -0,0 +1,8 @@
+#Tue Jul 13 11:37:22 CEST 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
@@ -0,0 +1,8 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: ProjectGenerator
+Bundle-SymbolicName: ProjectGenerator
+Bundle-Version: 1.0.0
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Require-Bundle: ch.actifsource.template;bundle-version="4.1.0",
+ ch.actifsource.core;bundle-version="4.1.0"

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<resource format="4.1.0" guid="a3cbd5b9-8e65-11df-88d6-a50cae917c2c">
+ <predicate guid="3169f49a-f91f-11d9-bb45-5fabdff7c7da">
+ <object statement-guid="a3cc23db-8e65-11df-88d6-a50cae917c2c" type="resource" guid="7b665745-d469-11da-8f5e-0f17beaa2c29" />
+ </predicate>
+ <predicate guid="33fc8660-f91f-11d9-bb45-5fabdff7c7da">
+ <object statement-guid="a3cc23dc-8e65-11df-88d6-a50cae917c2c" type="literal">ProjectBuild</object>
+ </predicate>
+ <predicate guid="2789b8e7-3c32-11db-99ea-73d5aa89e9be">
+ <object statement-guid="a3cc7202-8e65-11df-88d6-a50cae917c2c">
+ <resource guid="a3cc4aed-8e65-11df-88d6-a50cae917c2c">
+ <predicate guid="3169f49a-f91f-11d9-bb45-5fabdff7c7da">
+ <object statement-guid="a3cc4aef-8e65-11df-88d6-a50cae917c2c" type="resource" guid="11b444f7-dc94-11dd-8de2-bb051d76fa6e" />
+ </predicate>
+ <predicate guid="f251d91b-d8d4-11de-85c5-f93550bd5ed1">
+ <object statement-guid="a3cc7201-8e65-11df-88d6-a50cae917c2c" type="resource" guid="3896f306-8e62-11df-88d6-a50cae917c2c" />
+ </predicate>
+ <predicate guid="b8afc0be-fc5c-11de-a132-97280c50fe20">
+ <object statement-guid="a3cc7200-8e65-11df-88d6-a50cae917c2c" type="literal">false</object>
+ </predicate>
+ </resource>
+ </object>
+ <object statement-guid="a3cc9918-8e65-11df-88d6-a50cae917c2c">
+ <resource guid="a3cc7203-8e65-11df-88d6-a50cae917c2c">
+ <predicate guid="3169f49a-f91f-11d9-bb45-5fabdff7c7da">
+ <object statement-guid="a3cc7205-8e65-11df-88d6-a50cae917c2c" type="resource" guid="11b444f7-dc94-11dd-8de2-bb051d76fa6e" />
+ </predicate>
+ <predicate guid="f251d91b-d8d4-11de-85c5-f93550bd5ed1">
+ <object statement-guid="a3cc9917-8e65-11df-88d6-a50cae917c2c" type="resource" guid="0e19ffbe-8e65-11df-88d6-a50cae917c2c" />
+ </predicate>
+ <predicate guid="b8afc0be-fc5c-11de-a132-97280c50fe20">
+ <object statement-guid="a3cc7206-8e65-11df-88d6-a50cae917c2c" type="literal">false</object>
+ </predicate>
+ </resource>
+ </object>
+ </predicate>
+ <predicate guid="d6665b24-2b25-11de-946f-4b5c6ff62bd7">
+ <object statement-guid="a7d7e86c-8e65-11df-88d6-a50cae917c2c" type="literal">&lt;!--</object>
+ </predicate>
+ <predicate guid="ef02409a-2b25-11de-946f-4b5c6ff62bd7">
+ <object statement-guid="a9ff835d-8e65-11df-88d6-a50cae917c2c" type="literal">--&gt;</object>
+ </predicate>
+</resource>
+
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<resource format="4.1.0" guid="bbba3d6e-8e65-11df-88d6-a50cae917c2c">
+ <predicate guid="3169f49a-f91f-11d9-bb45-5fabdff7c7da">
+ <object statement-guid="bbba6480-8e65-11df-88d6-a50cae917c2c" type="resource" guid="eb8d09c5-8dda-11df-924a-6b7cb45b559b" />
+ </predicate>
+ <predicate guid="33fc8660-f91f-11d9-bb45-5fabdff7c7da">
+ <object statement-guid="bbba6481-8e65-11df-88d6-a50cae917c2c" type="literal">TestProject</object>
+ </predicate>
+</resource>
+
@@ -0,0 +1,3 @@
+source.. = src-gen/
+output.. = bin/
+bin.includes = META-INF/,\n .
@@ -0,0 +1,19 @@
+package com.actifsource.projectgenerator.spec;
+
+import java.util.List;
+
+/* Begin Protected Region [[0e19ffbe-8e65-11df-88d6-a50cae917c2c,imports]] */
+
+/* End Protected Region [[0e19ffbe-8e65-11df-88d6-a50cae917c2c,imports]] */
+
+@SuppressWarnings("unused")
+public class ProjectConfigTemplate {
+
+ /* Begin Protected Region [[0e19ffbe-8e65-11df-88d6-a50cae917c2c]] */
+
+ /* End Protected Region [[0e19ffbe-8e65-11df-88d6-a50cae917c2c]] */
+
+
+}
+
+/* Actifsource ID=[5349246f-db37-11de-82b8-17be2e034a3b,0e19ffbe-8e65-11df-88d6-a50cae917c2c] */
@@ -0,0 +1,19 @@
+package com.actifsource.projectgenerator.spec;
+
+import java.util.List;
+
+/* Begin Protected Region [[3896f306-8e62-11df-88d6-a50cae917c2c,imports]] */
+
+/* End Protected Region [[3896f306-8e62-11df-88d6-a50cae917c2c,imports]] */
+
+@SuppressWarnings("unused")
+public class ProjectSettingsTemplate {
+
+ /* Begin Protected Region [[3896f306-8e62-11df-88d6-a50cae917c2c]] */
+
+ /* End Protected Region [[3896f306-8e62-11df-88d6-a50cae917c2c]] */
+
+
+}
+
+/* Actifsource ID=[5349246f-db37-11de-82b8-17be2e034a3b,3896f306-8e62-11df-88d6-a50cae917c2c] */
@@ -0,0 +1,14 @@
+package com.actifsource.projectgenerator.spec.javamodel;
+
+import java.util.List;
+import java.util.Map;
+import ch.actifsource.util.collection.IMultiMapOrdered;
+
+@SuppressWarnings("unused")
+public interface IProject extends ch.actifsource.core.javamodel.INamedResource {
+
+ public static final ch.actifsource.core.Resource CLASS = new ch.actifsource.core.Resource("eb8d09c5-8dda-11df-924a-6b7cb45b559b");
+
+}
+
+/* Actifsource ID=[3ca9f967-db37-11de-82b8-17be2e034a3b,eb8d09c5-8dda-11df-924a-6b7cb45b559b,true] */
@@ -0,0 +1,39 @@
+package com.actifsource.projectgenerator.spec.javamodel;
+
+import java.util.List;
+import java.util.Map;
+import ch.actifsource.util.collection.IMultiMapOrdered;
+import ch.actifsource.core.dynamic.*;
+
+@SuppressWarnings("unused")
+@edu.umd.cs.findbugs.annotations.SuppressWarnings("EQ_DOESNT_OVERRIDE_EQUALS")
+public class Project extends DynamicActifsourceResource implements IProject {
+
+ private java.lang.String fName;
+
+ public Project() {}
+
+ public Project(IDynamicResourceRepository resourceRepository, ch.actifsource.core.Resource resource) {
+ super(resourceRepository, resource);
+ }
+
+ // attributes
+
+ @Override
+ public java.lang.String selectName() {
+ return fName;
+ }
+
+ public void setName(java.lang.String name) {
+ fName = name;
+ }
+
+ // relations
+
+ @Override
+ public ch.actifsource.core.javamodel.IClass selectTypeOf() {
+ return _getSingle(ch.actifsource.core.javamodel.IClass.class, "3169f49a-f91f-11d9-bb45-5fabdff7c7da");
+ }
+
+}
+/* Actifsource ID=[4d723cb5-db37-11de-82b8-17be2e034a3b,eb8d09c5-8dda-11df-924a-6b7cb45b559b,true,eb8d09c5-8dda-11df-924a-6b7cb45b559b] */
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>TestProject</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>ch.actifsource.ui.generator.javamodelbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>ch.actifsource.environment.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>ch.actifsource.environment.nature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
+<!--Actifsource ID=[389cbf9f-8e62-11df-88d6-a50cae917c2c,bbba3d6e-8e65-11df-88d6-a50cae917c2c]-->
@@ -0,0 +1,11 @@
+<?xml version="1.0"?>
+<project name="TestProject">
+ <dir name="src"/>
+ <dir name="bin"/>
+ <dir name="asrc"/>
+ <file src="src/TestProject/.project" dst=".project" overwrite="true"/>
+ <file src="src_common/.classpath" dst=".classpath" overwrite="false"/>
+ <file src="src_common/.asproject" dst=".asproject" overwrite="false"/>
+ <workingset name="TestProject"/>
+</project>
+<!--Actifsource ID=[0e1aea57-8e65-11df-88d6-a50cae917c2c,bbba3d6e-8e65-11df-88d6-a50cae917c2c]-->
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectSettings>
+ <version format="4.2.0" />
+ <resourcepaths>
+ <path>asrc</path>
+ <builtin>core</builtin>
+ <builtin>diagram</builtin>
+ <builtin>ecore</builtin>
+ </resourcepaths>
+ <templatepaths />
+ <targetpaths>
+ <targetpath>
+ <path>src</path>
+ </targetpath>
+ </targetpaths>
+</projectSettings>
+
@@ -0,0 +1,6 @@
+<?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.6"/>
+ <classpathentry kind="src" path="src-gen"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>

0 comments on commit 043cf00

Please sign in to comment.