Skip to content

Commit 0bb0908

Browse files
luiferluifer
luifer
authored and
luifer
committed
first version
0 parents  commit 0bb0908

11 files changed

+1076
-0
lines changed

.classpath

+7
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.8"/>
4+
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
5+
<classpathentry kind="src" output="bin" path="src"/>
6+
<classpathentry kind="output" path="bin"/>
7+
</classpath>

.project

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>miniuml.generator</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+
<buildCommand>
24+
<name>org.eclipse.acceleo.ide.ui.acceleoBuilder</name>
25+
<arguments>
26+
<dictionary>
27+
<key>compilation.kind</key>
28+
<value>compilation.platform.resource</value>
29+
</dictionary>
30+
<dictionary>
31+
<key>compliance</key>
32+
<value>pragmatic</value>
33+
</dictionary>
34+
<dictionary>
35+
<key>resource.kind</key>
36+
<value>xmi</value>
37+
</dictionary>
38+
<dictionary>
39+
<key>trim-position</key>
40+
<value>false</value>
41+
</dictionary>
42+
</arguments>
43+
</buildCommand>
44+
</buildSpec>
45+
<natures>
46+
<nature>org.eclipse.acceleo.ide.ui.acceleoNature</nature>
47+
<nature>org.eclipse.jdt.core.javanature</nature>
48+
<nature>org.eclipse.pde.PluginNature</nature>
49+
</natures>
50+
</projectDescription>

Generate Java from MiniUML.launch

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<launchConfiguration type="org.eclipse.acceleo.ide.ui.launching.launchConfigurationType">
3+
<stringAttribute key="org.eclipse.acceleo.ide.ui.ARGUMENTS" value=""/>
4+
<booleanAttribute key="org.eclipse.acceleo.ide.ui.COMPUTE_PROFILING" value="false"/>
5+
<booleanAttribute key="org.eclipse.acceleo.ide.ui.COMPUTE_TRACEABILITY" value="false"/>
6+
<stringAttribute key="org.eclipse.acceleo.ide.ui.LAUNCHING_STRATEGY_DESCRIPTION" value="Java Application"/>
7+
<stringAttribute key="org.eclipse.acceleo.ide.ui.MODEL_PATH" value="/miniuml/model/Model.xmi"/>
8+
<stringAttribute key="org.eclipse.acceleo.ide.ui.TARGET_PATH" value="/soquersingo"/>
9+
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
10+
<listEntry value="/miniuml.generator/src/miniuml/generator/main/Generate.java"/>
11+
</listAttribute>
12+
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
13+
<listEntry value="1"/>
14+
</listAttribute>
15+
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="miniuml.generator.main.Generate"/>
16+
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="&quot;/home/luifer/workspace/miniuml/model/Model.xmi&quot; &quot;/home/luifer/Development/Rails/soquersingo&quot;"/>
17+
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="miniuml.generator"/>
18+
</launchConfiguration>

META-INF/MANIFEST.MF

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Manifest-Version: 1.0
2+
Bundle-ManifestVersion: 2
3+
Bundle-Name: Acceleo Generator Module Runtime Plug-in
4+
Bundle-SymbolicName: miniuml.generator
5+
Bundle-Version: 1.0.0.qualifier
6+
Bundle-Activator: miniuml.generator.Activator
7+
Bundle-Vendor: Eclipse Modeling Project
8+
Require-Bundle: org.eclipse.core.runtime,
9+
org.eclipse.emf.ecore,
10+
org.eclipse.emf.ecore,
11+
org.eclipse.emf.ecore.xmi,
12+
org.eclipse.ocl,
13+
org.eclipse.ocl.ecore,
14+
org.eclipse.acceleo.common;bundle-version="3.3.0",
15+
org.eclipse.acceleo.model;bundle-version="3.3.0",
16+
org.eclipse.acceleo.profiler;bundle-version="3.3.0",
17+
org.eclipse.acceleo.engine;bundle-version="3.3.0",
18+
com.google.guava
19+
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
20+
Bundle-ActivationPolicy: lazy
21+
Eclipse-LazyStart: true
22+
Export-Package: miniuml.generator.main
23+

bin/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/miniuml/

build.properties

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
source.. = src/
2+
output.. = bin/
3+
bin.includes = META-INF/,\
4+
.
5+
jre.compilation.profile = JavaSE-1.8

src/miniuml/generator/Activator.java

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2008, 2011 Obeo.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the Eclipse Public License v1.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.eclipse.org/legal/epl-v10.html
7+
*
8+
* Contributors:
9+
* Obeo - initial API and implementation
10+
*******************************************************************************/
11+
package miniuml.generator;
12+
13+
import org.eclipse.core.runtime.Plugin;
14+
import org.osgi.framework.BundleContext;
15+
16+
/**
17+
* The activator class controls the plug-in life cycle.
18+
*/
19+
public class Activator extends Plugin {
20+
21+
/**
22+
* The plug-in ID.
23+
*/
24+
public static final String PLUGIN_ID = "miniuml.generator";
25+
26+
/**
27+
* The shared instance.
28+
*/
29+
private static Activator plugin;
30+
31+
/**
32+
* The constructor.
33+
*/
34+
public Activator() {
35+
}
36+
37+
/**
38+
* {@inheritDoc}
39+
*
40+
* @see org.eclipse.core.runtime.Plugin#start(org.osgi.framework.BundleContext)
41+
*/
42+
public void start(BundleContext context) throws Exception {
43+
super.start(context);
44+
plugin = this;
45+
}
46+
47+
/**
48+
* {@inheritDoc}
49+
*
50+
* @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
51+
*/
52+
public void stop(BundleContext context) throws Exception {
53+
plugin = null;
54+
super.stop(context);
55+
}
56+
57+
/**
58+
* Returns the shared instance.
59+
*
60+
* @return the shared instance
61+
*/
62+
public static Activator getDefault() {
63+
return plugin;
64+
}
65+
66+
}

0 commit comments

Comments
 (0)