Commit f630897b authored by Florian Hölzl's avatar Florian Hölzl

af3.micro refactoring

refs 190
parent 6463766d
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="generated-src"/>
<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"/>
<classpathentry kind="output" path="build"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.fortiss.af3.component</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.fortiss.ide.dev_tools.emf.builder.EcoreBuilder</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.fortiss.ide.dev_tools.warnings.RemoveWarningsBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.fortiss.af3.component;singleton:=true
Bundle-Version: 1.0.0
Bundle-ClassPath: .
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Bundle-ActivationPolicy: lazy
Bundle-Activator: org.fortiss.af3.component.AF3ComponentActivator
Require-Bundle: org.fortiss.af3.project
<?xml version="1.0" encoding="UTF-8"?>
<cspecExtension
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0"
xmlns="http://www.eclipse.org/buckminster/CSpec-1.0">
<actions>
<!-- Place your Actions here -->
<public name="generate-ecore" actor="jdt.ant" always="true">
<actorProperties>
<property key="buildFile" value="model/generate-ecore.xml" />
<property key="targets" value="generate-ecore"/>
</actorProperties>
<products>
<path path="generated-src" />
</products>
</public>
</actions>
<alterGroups>
<!-- Place your Group alterations here -->
<public name="eclipse.build.source">
<attribute name="generate-ecore"/>
</public>
</alterGroups>
</cspecExtension>
# <copyright>
# </copyright>
#
# $Id$
bin.includes = .,\
model/,\
META-INF/,\
plugin.xml,\
plugin.properties
source.. = src/,\
generated-src/
output.. = build/
<?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="model"
nsURI="http://www.fortiss.org/af3/base/project" nsPrefix="org-fortiss-af3-base-project">
<eClassifiers xsi:type="ecore:EClass" name="ComponentArchitecture" eSuperTypes="platform:/plugin/org.fortiss.tooling.kernel/model/kernel.ecore#//IProjectRootElement ../../org.fortiss.tooling.base/model/base.ecore#//element/IHierarchicElement"/>
<eClassifiers xsi:type="ecore:EClass" name="Component" eSuperTypes="../../org.fortiss.tooling.base/model/base.ecore#//base/HierarchicElementBase">
<eOperations name="getOutputPorts" upperBound="-1" eType="#//OutputPort">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="body" value="return org.fortiss.tooling.kernel.utils.EcoreUtils.pickInstanceOf(&#xA;&#x9;&#x9;&#x9;&#x9;OutputPort.class, getConnectorsList());"/>
</eAnnotations>
</eOperations>
<eOperations name="getInputPorts" upperBound="-1" eType="#//InputPort">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="body" value="return org.fortiss.tooling.kernel.utils.EcoreUtils.pickInstanceOf(&#xA;&#x9;&#x9;&#x9;&#x9;InputPort.class, getConnectorsList());"/>
</eAnnotations>
</eOperations>
<eOperations name="getChannels" upperBound="-1" eType="#//Channel">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="body" value="return org.fortiss.tooling.kernel.utils.EcoreUtils.convertList(&#xA;&#x9;&#x9;&#x9;&#x9;Channel.class, getConnectionsList());"/>
</eAnnotations>
</eOperations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Channel" eSuperTypes="../../org.fortiss.tooling.base/model/base.ecore#//base/ConnectionSegmentBase">
<eOperations name="getSource" eType="#//Port">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="body" value="return (Port) super.getSource();"/>
</eAnnotations>
</eOperations>
<eOperations name="getTarget" eType="#//Port">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="body" value="return (Port) super.getTarget();"/>
</eAnnotations>
</eOperations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Port" abstract="true" eSuperTypes="../../org.fortiss.tooling.base/model/base.ecore#//base/ConnectorBase">
<eOperations name="getPortSpecification" eType="#//PortSpecification">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="body" value="return org.fortiss.tooling.kernel.utils.EcoreUtils.pickInstanceOf(&#xA;&#x9;&#x9;&#x9;&#x9;PortSpecification.class, getSpecificationsList()).get(0);"/>
</eAnnotations>
</eOperations>
<eOperations name="getComponent" eType="#//Component">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="body" value="return (Component)eContainer();"/>
</eAnnotations>
</eOperations>
<eOperations name="getOutgoingChannels" upperBound="-1" eType="#//Channel">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="body" value="return org.fortiss.tooling.kernel.utils.EcoreUtils.pickInstanceOf(&#xA;&#x9;&#x9;&#x9;&#x9;Channel.class, getOutgoingList());"/>
</eAnnotations>
</eOperations>
<eOperations name="getIncomingChannels" upperBound="-1" eType="#//Channel">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="body" value="return org.fortiss.tooling.kernel.utils.EcoreUtils.pickInstanceOf(&#xA;&#x9;&#x9;&#x9;&#x9;Channel.class, getIncomingList());"/>
</eAnnotations>
</eOperations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="InputPort" eSuperTypes="#//Port ../../org.fortiss.tooling.base/model/base.ecore#//base/EntryConnectorBase"/>
<eClassifiers xsi:type="ecore:EClass" name="OutputPort" eSuperTypes="#//Port ../../org.fortiss.tooling.base/model/base.ecore#//base/ExitConnectorBase"/>
<eClassifiers xsi:type="ecore:EClass" name="CausalityComponentSpecification" eSuperTypes="../../org.fortiss.tooling.base/model/base.ecore#//element/IHiddenSpecification">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="stronglyCausal" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="PortSpecification" eSuperTypes="../../org.fortiss.tooling.base/model/base.ecore#//element/IHiddenSpecification">
<eStructuralFeatures xsi:type="ecore:EReference" name="type" eType="ecore:EClass platform:/plugin/org.fortiss.af3.project/model/project.ecore#//typesystem/IType"
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="initialValue" eType="ecore:EClass platform:/plugin/org.fortiss.af3.project/model/project.ecore#//typesystem/ITerm"
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="stateSignal" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
</eClassifiers>
<eSubpackages name="behavior" nsURI="http://www.fortiss.org/af3/component/behavior"
nsPrefix="org-fortiss-af3-component-behavior">
<eSubpackages name="common" nsURI="http://www.fortiss.org/af3/component/behavior/common"
nsPrefix="org-fortiss-af3-component-behavior-common">
<eClassifiers xsi:type="ecore:EClass" name="DataStateVariable" eSuperTypes="platform:/plugin/org.fortiss.tooling.kernel/model/kernel.ecore#//IIdLabeled">
<eStructuralFeatures xsi:type="ecore:EReference" name="variable" eType="ecore:EClass ../../org.fortiss.af3.expression/model/expression.ecore#//terms/Var"
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="initialValue" eType="ecore:EClass platform:/plugin/org.fortiss.af3.project/model/project.ecore#//typesystem/ITerm"
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="type" eType="ecore:EClass platform:/plugin/org.fortiss.af3.project/model/project.ecore#//typesystem/IType"
containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Guard">
<eStructuralFeatures xsi:type="ecore:EReference" name="expression" eType="ecore:EClass platform:/plugin/org.fortiss.af3.project/model/project.ecore#//typesystem/ITerm"
containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Action">
<eStructuralFeatures xsi:type="ecore:EReference" name="variable" eType="ecore:EClass ../../org.fortiss.af3.expression/model/expression.ecore#//terms/Var"
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="value" eType="ecore:EClass platform:/plugin/org.fortiss.af3.project/model/project.ecore#//typesystem/ITerm"
containment="true"/>
</eClassifiers>
</eSubpackages>
<eSubpackages name="code" nsURI="http://www.fortiss.org/af3/component/behavior/code"
nsPrefix="org-fortiss-af3-component-behavior-code">
<eClassifiers xsi:type="ecore:EClass" name="CodeSpecification" eSuperTypes="../../org.fortiss.tooling.base/model/base.ecore#//element/IModelElementSpecification">
<eOperations name="getComponent" eType="#//Component">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="body" value="return (org.fortiss.af3.micro.model.architecture.component.Component) eContainer();"/>
</eAnnotations>
</eOperations>
<eStructuralFeatures xsi:type="ecore:EReference" name="body" eType="ecore:EClass ../../org.fortiss.af3.expression/model/expression.ecore#//terms/imperative/StatementSequence"
containment="true"/>
</eClassifiers>
</eSubpackages>
</eSubpackages>
</ecore:EPackage>
<?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" copyrightText="(c) 2011 ForTISS GmbH"
modelDirectory="/org.fortiss.af3.component/generated-src" editDirectory="org.fortiss.af3.component.edit/src"
editorDirectory="/org.fortiss.af3.component.editor/src" modelPluginID="org.fortiss.af3.component"
modelName="Model" modelPluginClass="" editPluginClass="org.fortiss.af3.component.model.provider.ModelEditPlugin"
editorPluginClass="org.fortiss.af3.component.model.presentation.ModelEditorPlugin"
testsDirectory="/org.fortiss.af3.component.tests/test-src" importerID="org.eclipse.emf.importer.ecore"
containmentProxies="true" arrayAccessors="true" complianceLevel="5.0" copyrightFields="false"
language="" usedGenPackages="platform:/plugin/org.fortiss.tooling.base/model/base.genmodel#//model platform:/plugin/org.fortiss.af3.project/model/project.genmodel#//model platform:/plugin/org.fortiss.tooling.kernel/model/kernel.genmodel#//model">
<foreignModel>component.ecore</foreignModel>
<genPackages prefix="AF3Component" basePackage="org.fortiss.af3.component" disposableProviderFactory="true"
ecorePackage="component.ecore#/">
<genClasses ecoreClass="component.ecore#//ComponentArchitecture"/>
<genClasses ecoreClass="component.ecore#//Component">
<genOperations ecoreOperation="component.ecore#//Component/getOutputPorts"/>
<genOperations ecoreOperation="component.ecore#//Component/getInputPorts"/>
<genOperations ecoreOperation="component.ecore#//Component/getChannels"/>
</genClasses>
<genClasses ecoreClass="component.ecore#//Channel">
<genOperations ecoreOperation="component.ecore#//Channel/getSource"/>
<genOperations ecoreOperation="component.ecore#//Channel/getTarget"/>
</genClasses>
<genClasses image="false" ecoreClass="component.ecore#//Port">
<genOperations ecoreOperation="component.ecore#//Port/getPortSpecification"/>
<genOperations ecoreOperation="component.ecore#//Port/getComponent"/>
<genOperations ecoreOperation="component.ecore#//Port/getOutgoingChannels"/>
<genOperations ecoreOperation="component.ecore#//Port/getIncomingChannels"/>
</genClasses>
<genClasses ecoreClass="component.ecore#//InputPort"/>
<genClasses ecoreClass="component.ecore#//OutputPort"/>
<genClasses ecoreClass="component.ecore#//CausalityComponentSpecification">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute component.ecore#//CausalityComponentSpecification/stronglyCausal"/>
</genClasses>
<genClasses ecoreClass="component.ecore#//PortSpecification">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference component.ecore#//PortSpecification/type"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference component.ecore#//PortSpecification/initialValue"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute component.ecore#//PortSpecification/stateSignal"/>
</genClasses>
<nestedGenPackages prefix="Behavior" disposableProviderFactory="true" ecorePackage="component.ecore#//behavior">
<nestedGenPackages prefix="Common" disposableProviderFactory="true" ecorePackage="component.ecore#//behavior/common">
<genClasses ecoreClass="component.ecore#//behavior/common/DataStateVariable">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference component.ecore#//behavior/common/DataStateVariable/variable"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference component.ecore#//behavior/common/DataStateVariable/initialValue"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference component.ecore#//behavior/common/DataStateVariable/type"/>
</genClasses>
<genClasses ecoreClass="component.ecore#//behavior/common/Guard">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference component.ecore#//behavior/common/Guard/expression"/>
</genClasses>
<genClasses ecoreClass="component.ecore#//behavior/common/Action">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference component.ecore#//behavior/common/Action/variable"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference component.ecore#//behavior/common/Action/value"/>
</genClasses>
</nestedGenPackages>
<nestedGenPackages prefix="Code" disposableProviderFactory="true" ecorePackage="component.ecore#//behavior/code">
<genClasses ecoreClass="component.ecore#//behavior/code/CodeSpecification">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference component.ecore#//behavior/code/CodeSpecification/body"/>
<genOperations ecoreOperation="component.ecore#//behavior/code/CodeSpecification/getComponent"/>
</genClasses>
</nestedGenPackages>
</nestedGenPackages>
</genPackages>
</genmodel:GenModel>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project name="org.fortiss.af3.component" default="generate-ecore" basedir="..">
<property name="model.name" value="component" />
<property name="model.project" value="org.fortiss.af3.component" />
<!-- Classpath Definition -->
<buckminster.valuepath id="project.classpath" value="${fs:project.classpath}" />
<path id="classpath">
<path refid="project.classpath"/>
<!-- add src to the classpath as only the bin directory is in the classpath
and some resources such as the workflow or properties file might not yet
have been copied to the bin directory -->
<pathelement location="src"/>
</path>
<!-- Generation Tasks -->
<target name="generate-ecore">
<emf.Ecore2Java
model="model/${model.name}.ecore"
genModel="model/${model.name}.genmodel"
modelProject="/${model.project}"
modelProjectFragmentPath="generated-src"
reconcileGenModel="reload">
</emf.Ecore2Java>
</target>
</project>
\ No newline at end of file
# <copyright>
# </copyright>
#
# $Id$
pluginName = Micro Model
providerName = www.example.org
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<!--
<copyright>
</copyright>
$Id$
-->
<plugin>
</plugin>
package org.fortiss.af3.component;
import org.eclipse.core.runtime.Plugin;
import org.osgi.framework.BundleContext;
/**
* The activator class controls the plug-in life cycle.
*/
public class AF3ComponentActivator extends Plugin {
/** The plug-in ID. */
public static final String PLUGIN_ID = "org.fortiss.af3.component"; //$NON-NLS-1$
/** The shared instance. */
private static AF3ComponentActivator plugin;
/** Constructor. */
public AF3ComponentActivator() {
// do nothing
}
/** {@inheritDoc} */
@Override
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
}
/** {@inheritDoc} */
@Override
public void stop(BundleContext context) throws Exception {
plugin = null;
super.stop(context);
}
/** Returns the shared instance. */
public static AF3ComponentActivator getDefault() {
return plugin;
}
}
<?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="/org.fortiss.af3.expression/generated-src"
modelPluginID="org.fortiss.af3.expression" modelName="Model" importerID="org.eclipse.emf.importer.ecore"
containmentProxies="true" arrayAccessors="true" complianceLevel="6.0" copyrightFields="false"
usedGenPackages="platform:/plugin/org.fortiss.af3.project/model/project.genmodel#//model platform:/plugin/org.fortiss.tooling.kernel/model/kernel.genmodel#//model">
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText="(c) 2011 ForTISS GmbH"
modelDirectory="/org.fortiss.af3.expression/generated-src" editDirectory="org.fortiss.af3.expression.edit/src"
editorDirectory="/org.fortiss.af3.expression.editor/src" modelPluginID="org.fortiss.af3.expression"
modelName="Model" modelPluginClass="" editPluginClass="org.fortiss.af3.expression.model.provider.ModelEditPlugin"
editorPluginClass="org.fortiss.af3.expression.model.presentation.ModelEditorPlugin"
testsDirectory="/org.fortiss.af3.expression.tests/test-src" importerID="org.eclipse.emf.importer.ecore"
containmentProxies="true" arrayAccessors="true" complianceLevel="5.0" copyrightFields="false"
language="" usedGenPackages="platform:/plugin/org.fortiss.af3.project/model/project.genmodel#//model platform:/plugin/org.fortiss.tooling.kernel/model/kernel.genmodel#//model">
<foreignModel>expression.ecore</foreignModel>
<genPackages prefix="Model" disposableProviderFactory="true" ecorePackage="expression.ecore#/">
<genPackages prefix="AF3Expression" basePackage="org.fortiss.af3.expression" disposableProviderFactory="true"
ecorePackage="expression.ecore#/">
<genClasses ecoreClass="expression.ecore#//MicroTypeSystem"/>
<genClasses ecoreClass="expression.ecore#//DataDictionary">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference expression.ecore#//DataDictionary/typeDefinitions"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment