Skip to content

Commit eebc542

Browse files
committed
Remove useless exercises and move them in the Old folder
1 parent ca709ab commit eebc542

File tree

251 files changed

+30859
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

251 files changed

+30859
-0
lines changed

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
*.class
2+
bin/
3+
target/
4+
5+
# generated source code
6+
**/xtend-gen/**/.*.java._trace
7+
**/xtend-gen/**/.*.xtendbin
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
4+
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
5+
<classpathentry kind="src" path="src"/>
6+
<classpathentry kind="output" path="bin"/>
7+
</classpath>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/bin
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>com.opcoach.training.diagram.core</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.pde.ManifestBuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.pde.SchemaBuilder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
23+
</buildSpec>
24+
<natures>
25+
<nature>org.eclipse.jdt.core.javanature</nature>
26+
<nature>org.eclipse.pde.PluginNature</nature>
27+
</natures>
28+
</projectDescription>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#Thu Jan 19 12:48:34 CET 2012
2+
eclipse.preferences.version=1
3+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
4+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
5+
org.eclipse.jdt.core.compiler.compliance=1.6
6+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
7+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
8+
org.eclipse.jdt.core.compiler.source=1.6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Manifest-Version: 1.0
2+
Bundle-ManifestVersion: 2
3+
Bundle-Name: %pluginName
4+
Bundle-SymbolicName: com.opcoach.training.diagram.core;singleton:=true
5+
Bundle-Version: 1.0.0.qualifier
6+
Bundle-ClassPath: .
7+
Bundle-Vendor: %providerName
8+
Bundle-Localization: plugin
9+
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
10+
Export-Package: com.opcoach.training.diagram,
11+
com.opcoach.training.diagram.editor,
12+
com.opcoach.training.diagram.impl,
13+
com.opcoach.training.diagram.util
14+
Require-Bundle: org.eclipse.core.runtime,
15+
org.eclipse.emf.ecore;visibility:=reexport,
16+
org.eclipse.gef;bundle-version="3.7.0";visibility:=reexport,
17+
org.eclipse.ui;bundle-version="3.7.0",
18+
org.eclipse.ui.views;bundle-version="3.6.0",
19+
org.eclipse.emf.edit;bundle-version="2.7.1",
20+
org.eclipse.emf.edit.ui;bundle-version="2.7.0",
21+
org.eclipse.core.resources;bundle-version="3.7.100",
22+
org.eclipse.ui.editors;bundle-version="3.7.0",
23+
org.eclipse.ui.ide;bundle-version="3.7.0",
24+
org.eclipse.core.expressions,
25+
org.eclipse.emf.ecore.xmi;bundle-version="2.7.0"
26+
Bundle-ActivationPolicy: lazy
27+
Bundle-Activator: com.opcoach.training.diagram.editor.DiagramCoreActivator
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
# <copyright>
3+
# </copyright>
4+
#
5+
# $Id$
6+
7+
bin.includes = .,\
8+
model/,\
9+
META-INF/,\
10+
plugin.xml,\
11+
plugin.properties
12+
jars.compile.order = .
13+
source.. = src/
14+
output.. = bin/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<ecore:EPackage xmi:version="2.0"
3+
xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="diagram"
5+
nsURI="http://www.opcoach.com/diagram/1.0" nsPrefix="d">
6+
<eClassifiers xsi:type="ecore:EClass" name="Diagram">
7+
<eStructuralFeatures xsi:type="ecore:EReference" name="elements" upperBound="-1"
8+
eType="#//DiagramElement" containment="true"/>
9+
<eStructuralFeatures xsi:type="ecore:EReference" name="content" lowerBound="1"
10+
eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
11+
</eClassifiers>
12+
<eClassifiers xsi:type="ecore:EClass" name="Node" eSuperTypes="#//DiagramElement"/>
13+
<eClassifiers xsi:type="ecore:EClass" name="DiagramElement">
14+
<eStructuralFeatures xsi:type="ecore:EAttribute" name="x" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
15+
<eStructuralFeatures xsi:type="ecore:EAttribute" name="y" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
16+
<eStructuralFeatures xsi:type="ecore:EAttribute" name="w" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
17+
<eStructuralFeatures xsi:type="ecore:EAttribute" name="h" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
18+
<eStructuralFeatures xsi:type="ecore:EReference" name="model" lowerBound="1" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
19+
</eClassifiers>
20+
<eClassifiers xsi:type="ecore:EClass" name="Connection" eSuperTypes="#//DiagramElement"/>
21+
</ecore:EPackage>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<genmodel:GenModel xmi:version="2.0"
3+
xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
4+
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/com.opcoach.training.diagram.core/src"
5+
modelPluginID="com.opcoach.training.diagram.core" modelName="Diagram" importerID="org.eclipse.emf.importer.ecore"
6+
complianceLevel="6.0" copyrightFields="false">
7+
<foreignModel>diagram.ecore</foreignModel>
8+
<genPackages prefix="Diagram" basePackage="com.opcoach.training" disposableProviderFactory="true"
9+
ecorePackage="diagram.ecore#/">
10+
<genClasses ecoreClass="diagram.ecore#//Diagram">
11+
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference diagram.ecore#//Diagram/elements"/>
12+
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference diagram.ecore#//Diagram/content"/>
13+
</genClasses>
14+
<genClasses ecoreClass="diagram.ecore#//Node"/>
15+
<genClasses ecoreClass="diagram.ecore#//DiagramElement">
16+
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute diagram.ecore#//DiagramElement/x"/>
17+
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute diagram.ecore#//DiagramElement/y"/>
18+
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute diagram.ecore#//DiagramElement/w"/>
19+
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute diagram.ecore#//DiagramElement/h"/>
20+
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference diagram.ecore#//DiagramElement/model"/>
21+
</genClasses>
22+
<genClasses ecoreClass="diagram.ecore#//Connection"/>
23+
</genPackages>
24+
</genmodel:GenModel>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
# <copyright>
3+
# </copyright>
4+
#
5+
# $Id$
6+
7+
pluginName = Diagram Model
8+
providerName = www.example.org
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<?eclipse version="3.0"?>
3+
4+
<!--
5+
<copyright>
6+
</copyright>
7+
8+
$Id$
9+
-->
10+
11+
<plugin>
12+
13+
<extension point="org.eclipse.emf.ecore.generated_package">
14+
<package
15+
uri="http://www.opcoach.com/diagram/1.0"
16+
class="com.opcoach.training.diagram.DiagramPackage"
17+
genModel="model/diagram.genmodel"/>
18+
</extension>
19+
<extension
20+
point="org.eclipse.ui.commands">
21+
<command
22+
id="com.opcoach.training.diagram.core.createDiagram"
23+
name="Create Diagram">
24+
</command>
25+
</extension>
26+
<extension
27+
point="org.eclipse.ui.handlers">
28+
<handler
29+
class="com.opcoach.training.diagram.editor.CreateDiagramHandler"
30+
commandId="com.opcoach.training.diagram.core.createDiagram">
31+
<activeWhen>
32+
<reference
33+
definitionId="com.opcoach.training.diagram.core.oneIFileSelected">
34+
</reference></activeWhen>
35+
<enabledWhen>
36+
<reference
37+
definitionId="com.opcoach.training.diagram.core.oneIFileSelected">
38+
</reference>
39+
</enabledWhen>
40+
</handler>
41+
</extension>
42+
<extension
43+
point="org.eclipse.core.expressions.definitions">
44+
<definition
45+
id="com.opcoach.training.diagram.core.oneIFileSelected">
46+
<and>
47+
<count
48+
value="1">
49+
</count>
50+
<iterate>
51+
<instanceof
52+
value="org.eclipse.core.resources.IFile">
53+
</instanceof>
54+
</iterate>
55+
</and>
56+
</definition>
57+
</extension>
58+
<extension
59+
point="org.eclipse.ui.menus">
60+
<menuContribution
61+
allPopups="false"
62+
locationURI="popup:org.eclipse.ui.popup.any?after=additions">
63+
<command
64+
commandId="com.opcoach.training.diagram.core.createDiagram"
65+
style="push">
66+
</command>
67+
</menuContribution>
68+
</extension>
69+
70+
</plugin>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* <copyright>
3+
* </copyright>
4+
*
5+
* $Id$
6+
*/
7+
package com.opcoach.training.diagram;
8+
9+
10+
/**
11+
* <!-- begin-user-doc -->
12+
* A representation of the model object '<em><b>Connection</b></em>'.
13+
* <!-- end-user-doc -->
14+
*
15+
*
16+
* @see com.opcoach.training.diagram.DiagramPackage#getConnection()
17+
* @model
18+
* @generated
19+
*/
20+
public interface Connection extends DiagramElement
21+
{
22+
} // Connection
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
/**
2+
* <copyright>
3+
* </copyright>
4+
*
5+
* $Id$
6+
*/
7+
package com.opcoach.training.diagram;
8+
9+
import org.eclipse.emf.common.util.EList;
10+
11+
import org.eclipse.emf.ecore.EObject;
12+
13+
/**
14+
* <!-- begin-user-doc -->
15+
* A representation of the model object '<em><b>Diagram</b></em>'.
16+
* <!-- end-user-doc -->
17+
*
18+
* <p>
19+
* The following features are supported:
20+
* <ul>
21+
* <li>{@link com.opcoach.training.diagram.Diagram#getElements <em>Elements</em>}</li>
22+
* <li>{@link com.opcoach.training.diagram.Diagram#getContent <em>Content</em>}</li>
23+
* </ul>
24+
* </p>
25+
*
26+
* @see com.opcoach.training.diagram.DiagramPackage#getDiagram()
27+
* @model
28+
* @generated
29+
*/
30+
public interface Diagram extends EObject
31+
{
32+
/**
33+
* Returns the value of the '<em><b>Elements</b></em>' containment reference list.
34+
* The list contents are of type {@link com.opcoach.training.diagram.DiagramElement}.
35+
* <!-- begin-user-doc -->
36+
* <p>
37+
* If the meaning of the '<em>Elements</em>' containment reference list isn't clear,
38+
* there really should be more of a description here...
39+
* </p>
40+
* <!-- end-user-doc -->
41+
* @return the value of the '<em>Elements</em>' containment reference list.
42+
* @see com.opcoach.training.diagram.DiagramPackage#getDiagram_Elements()
43+
* @model containment="true"
44+
* @generated
45+
*/
46+
EList<DiagramElement> getElements();
47+
48+
/**
49+
* Returns the value of the '<em><b>Content</b></em>' reference.
50+
* <!-- begin-user-doc -->
51+
* <p>
52+
* If the meaning of the '<em>Content</em>' reference isn't clear,
53+
* there really should be more of a description here...
54+
* </p>
55+
* <!-- end-user-doc -->
56+
* @return the value of the '<em>Content</em>' reference.
57+
* @see #setContent(EObject)
58+
* @see com.opcoach.training.diagram.DiagramPackage#getDiagram_Content()
59+
* @model required="true"
60+
* @generated
61+
*/
62+
EObject getContent();
63+
64+
/**
65+
* Sets the value of the '{@link com.opcoach.training.diagram.Diagram#getContent <em>Content</em>}' reference.
66+
* <!-- begin-user-doc -->
67+
* <!-- end-user-doc -->
68+
* @param value the new value of the '<em>Content</em>' reference.
69+
* @see #getContent()
70+
* @generated
71+
*/
72+
void setContent(EObject value);
73+
74+
} // Diagram

0 commit comments

Comments
 (0)