Skip to content

Commit

Permalink
initial commit of prototype code, reorganized as modular maven
Browse files Browse the repository at this point in the history
projects..
  • Loading branch information
gregjan committed Jul 28, 2012
1 parent a446aa0 commit cba8f46
Show file tree
Hide file tree
Showing 84 changed files with 11,930 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .classpath
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="bin"/>
</classpath>
23 changes: 23 additions & 0 deletions .project
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Warmok</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
4 changes: 4 additions & 0 deletions .settings/org.eclipse.m2e.core.prefs
@@ -0,0 +1,4 @@
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
8 changes: 8 additions & 0 deletions game-model/.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.6"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" output="target/classes" path="src/main/java"/>
<classpathentry kind="src" path="src/texo/java"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
47 changes: 47 additions & 0 deletions game-model/.project
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Games Model</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</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>
<buildCommand>
<name>org.maven.ide.eclipse.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.maven.ide.eclipse.maven2Nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.emf.texo.eclipse.nature</nature>
</natures>
</projectDescription>
3 changes: 3 additions & 0 deletions game-model/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,3 @@
eclipse.preferences.version=1
encoding/<project>=UTF-8
encoding/src=UTF-8
8 changes: 8 additions & 0 deletions game-model/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,8 @@
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.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.source=1.6
4 changes: 4 additions & 0 deletions game-model/.settings/org.eclipse.m2e.core.prefs
@@ -0,0 +1,4 @@
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<installed facet="java" version="1.6"/>
</faceted-project>
8 changes: 8 additions & 0 deletions game-model/.settings/org.maven.ide.eclipse.prefs
@@ -0,0 +1,8 @@
#Mon Sep 05 14:04:49 EDT 2011
activeProfiles=
eclipse.preferences.version=1
fullBuildGoals=process-test-resources
resolveWorkspaceProjects=true
resourceFilterGoals=process-resources resources\:testResources
skipCompilerPlugin=true
version=1
16 changes: 16 additions & 0 deletions game-model/META-INF/MANIFEST.MF
@@ -0,0 +1,16 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: Games_Model;singleton:=true
Bundle-Version: 1.0.0
Bundle-ClassPath: .
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.emf.ecore;visibility:=reexport,
org.eclipse.emf.texo;bundle-version="0.1.0";visibility:=reexport,
org.eclipse.emf.texo.xml;bundle-version="0.1.0";visibility:=reexport
Export-Package: org.meekmok.Games,
org.meekmok.Games.impl,
org.meekmok.Games.util
15 changes: 15 additions & 0 deletions game-model/build.properties
@@ -0,0 +1,15 @@

# <copyright>
# </copyright>
#
# $Id$

bin.includes = .,\
model/,\
META-INF/,\
plugin.xml,\
plugin.properties
jars.compile.order = .
source.. = src/main/java/,src/texo/java
output.. = target/classes
jre.compilation.profile = J2SE-1.5
24 changes: 24 additions & 0 deletions game-model/model/games.ecore
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="Games"
nsURI="http://www.meekmok.com/Games" nsPrefix="games">
<eClassifiers xsi:type="ecore:EClass" name="Profile">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="openid" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="players" upperBound="-1"
eType="#//Player"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Game">
<eStructuralFeatures xsi:type="ecore:EReference" name="players" upperBound="-1"
eType="#//Player" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Player">
<eStructuralFeatures xsi:type="ecore:EReference" name="profile" lowerBound="1"
eType="#//Profile"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Profiles">
<eStructuralFeatures xsi:type="ecore:EReference" name="profiles" upperBound="-1"
eType="#//Profile"/>
</eClassifiers>
</ecore:EPackage>
26 changes: 26 additions & 0 deletions game-model/model/games.genmodel
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<genmodel:GenModel xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/Games Model/src/main/java"
editDirectory="/Games Model.edit/src/main/java" modelPluginID="Games_Model" modelName="Games"
testsDirectory="/Games Model.tests/src/main/java" importerID="org.eclipse.emf.importer.ecore"
complianceLevel="5.0" copyrightFields="false">
<foreignModel>games.ecore</foreignModel>
<genPackages prefix="Games" basePackage="org.meekmok" disposableProviderFactory="true"
ecorePackage="games.ecore#/">
<genClasses ecoreClass="games.ecore#//Profile">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute games.ecore#//Profile/name"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute games.ecore#//Profile/openid"/>
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference games.ecore#//Profile/players"/>
</genClasses>
<genClasses ecoreClass="games.ecore#//Game">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference games.ecore#//Game/players"/>
</genClasses>
<genClasses ecoreClass="games.ecore#//Player">
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference games.ecore#//Player/profile"/>
</genClasses>
<genClasses ecoreClass="games.ecore#//Profiles">
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference games.ecore#//Profiles/profiles"/>
</genClasses>
</genPackages>
</genmodel:GenModel>
8 changes: 8 additions & 0 deletions game-model/plugin.properties
@@ -0,0 +1,8 @@

# <copyright>
# </copyright>
#
# $Id$

pluginName = Warmok Model
providerName = www.example.org
19 changes: 19 additions & 0 deletions game-model/plugin.xml
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>

<!--
<copyright>
</copyright>
$Id$
-->

<plugin>

<extension point="org.eclipse.emf.ecore.generated_package">
<package
uri="http://www.meekmok.com/Games"
class="org.meekmok.Games.GamesPackage"/>
</extension>

</plugin>
30 changes: 30 additions & 0 deletions game-model/pom.xml
@@ -0,0 +1,30 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>game-model</artifactId>
<build>
<plugins>
<plugin>
<groupId>${tycho-groupid}</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>${tycho-version}</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>${tycho-groupid}</groupId>
<artifactId>maven-osgi-compiler-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
<parent>
<groupId>com.meekmok</groupId>
<artifactId>warmok</artifactId>
<version>0.0.1-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
</project>
46 changes: 46 additions & 0 deletions game-model/src/main/java/org/meekmok/Games/Game.java
@@ -0,0 +1,46 @@
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package org.meekmok.Games;

import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EObject;

/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Game</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.meekmok.Games.Game#getPlayers <em>Players</em>}</li>
* </ul>
* </p>
*
* @see org.meekmok.Games.GamesPackage#getGame()
* @model
* @generated
*/
public interface Game extends EObject {
/**
* Returns the value of the '<em><b>Players</b></em>' containment reference list.
* The list contents are of type {@link org.meekmok.Games.Player}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Players</em>' containment reference list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Players</em>' containment reference list.
* @see org.meekmok.Games.GamesPackage#getGame_Players()
* @model containment="true"
* @generated
*/
EList<Player> getPlayers();

} // Game
73 changes: 73 additions & 0 deletions game-model/src/main/java/org/meekmok/Games/GamesFactory.java
@@ -0,0 +1,73 @@
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package org.meekmok.Games;

import org.eclipse.emf.ecore.EFactory;

/**
* <!-- begin-user-doc -->
* The <b>Factory</b> for the model.
* It provides a create method for each non-abstract class of the model.
* <!-- end-user-doc -->
* @see org.meekmok.Games.GamesPackage
* @generated
*/
public interface GamesFactory extends EFactory {
/**
* The singleton instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
GamesFactory eINSTANCE = org.meekmok.Games.impl.GamesFactoryImpl.init();

/**
* Returns a new object of class '<em>Profile</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Profile</em>'.
* @generated
*/
Profile createProfile();

/**
* Returns a new object of class '<em>Game</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Game</em>'.
* @generated
*/
Game createGame();

/**
* Returns a new object of class '<em>Player</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Player</em>'.
* @generated
*/
Player createPlayer();

/**
* Returns a new object of class '<em>Profiles</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Profiles</em>'.
* @generated
*/
Profiles createProfiles();

/**
* Returns the package supported by this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the package supported by this factory.
* @generated
*/
GamesPackage getGamesPackage();

} //GamesFactory

0 comments on commit cba8f46

Please sign in to comment.