Skip to content
Snippets Groups Projects
Commit d342c76e authored by Sergey Zverlov's avatar Sergey Zverlov
Browse files

RP plugin first commit

refs 2506
parents
No related branches found
No related tags found
No related merge requests found
Showing
with 1310 additions and 0 deletions
<?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.platform.raspberry</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: Fortiss AF3 Platform Raspberry
Bundle-SymbolicName: org.fortiss.af3.platform.raspberry;singleton:=true
Bundle-Version: 2.9.0.qualifier
Bundle-ClassPath: .
Bundle-Vendor: fortiss GmbH
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-ActivationPolicy: lazy
Bundle-Activator: org.fortiss.af3.platform.raspberry.AF3PlatformRaspberryActivator
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/
/**
*/
package org.fortiss.af3.base.project.model;
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.fortiss.af3.base.project.model.AF3BaseProjectPackage
* @generated
*/
public interface AF3BaseProjectFactory extends EFactory {
/**
* The singleton instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
AF3BaseProjectFactory eINSTANCE = org.fortiss.af3.base.project.model.impl.AF3BaseProjectFactoryImpl.init();
/**
* Returns a new object of class '<em>Dummy Model Element</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Dummy Model Element</em>'.
* @generated
*/
DummyModelElement createDummyModelElement();
/**
* Returns the package supported by this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the package supported by this factory.
* @generated
*/
AF3BaseProjectPackage getAF3BaseProjectPackage();
} //AF3BaseProjectFactory
/**
*/
package org.fortiss.af3.base.project.model;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.fortiss.tooling.kernel.model.FortissToolingKernelPackage;
/**
* <!-- begin-user-doc -->
* The <b>Package</b> for the model.
* It contains accessors for the meta objects to represent
* <ul>
* <li>each class,</li>
* <li>each feature of each class,</li>
* <li>each enum,</li>
* <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
* @see org.fortiss.af3.base.project.model.AF3BaseProjectFactory
* @model kind="package"
* @generated
*/
public interface AF3BaseProjectPackage extends EPackage {
/**
* The package name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
String eNAME = "model";
/**
* The package namespace URI.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
String eNS_URI = "http://www.fortiss.org/af3/base/project";
/**
* The package namespace name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
String eNS_PREFIX = "org-fortiss-af3-base-project";
/**
* The singleton instance of the package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
AF3BaseProjectPackage eINSTANCE = org.fortiss.af3.base.project.model.impl.AF3BaseProjectPackageImpl.init();
/**
* The meta object id for the '{@link org.fortiss.af3.base.project.model.impl.DummyModelElementImpl <em>Dummy Model Element</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see org.fortiss.af3.base.project.model.impl.DummyModelElementImpl
* @see org.fortiss.af3.base.project.model.impl.AF3BaseProjectPackageImpl#getDummyModelElement()
* @generated
*/
int DUMMY_MODEL_ELEMENT = 0;
/**
* The feature id for the '<em><b>Id</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DUMMY_MODEL_ELEMENT__ID = FortissToolingKernelPackage.INAMED_COMMENTED_ELEMENT__ID;
/**
* The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DUMMY_MODEL_ELEMENT__NAME = FortissToolingKernelPackage.INAMED_COMMENTED_ELEMENT__NAME;
/**
* The feature id for the '<em><b>Comment</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DUMMY_MODEL_ELEMENT__COMMENT = FortissToolingKernelPackage.INAMED_COMMENTED_ELEMENT__COMMENT;
/**
* The number of structural features of the '<em>Dummy Model Element</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DUMMY_MODEL_ELEMENT_FEATURE_COUNT = FortissToolingKernelPackage.INAMED_COMMENTED_ELEMENT_FEATURE_COUNT + 0;
/**
* Returns the meta object for class '{@link org.fortiss.af3.base.project.model.DummyModelElement <em>Dummy Model Element</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Dummy Model Element</em>'.
* @see org.fortiss.af3.base.project.model.DummyModelElement
* @generated
*/
EClass getDummyModelElement();
/**
* Returns the factory that creates the instances of the model.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the factory that creates the instances of the model.
* @generated
*/
AF3BaseProjectFactory getAF3BaseProjectFactory();
/**
* <!-- begin-user-doc -->
* Defines literals for the meta objects that represent
* <ul>
* <li>each class,</li>
* <li>each feature of each class,</li>
* <li>each enum,</li>
* <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
* @generated
*/
interface Literals {
/**
* The meta object literal for the '{@link org.fortiss.af3.base.project.model.impl.DummyModelElementImpl <em>Dummy Model Element</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see org.fortiss.af3.base.project.model.impl.DummyModelElementImpl
* @see org.fortiss.af3.base.project.model.impl.AF3BaseProjectPackageImpl#getDummyModelElement()
* @generated
*/
EClass DUMMY_MODEL_ELEMENT = eINSTANCE.getDummyModelElement();
}
} //AF3BaseProjectPackage
/**
*/
package org.fortiss.af3.base.project.model;
import org.fortiss.tooling.kernel.model.INamedCommentedElement;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Dummy Model Element</b></em>'.
* <!-- end-user-doc -->
*
*
* @see org.fortiss.af3.base.project.model.AF3BaseProjectPackage#getDummyModelElement()
* @model
* @generated
*/
public interface DummyModelElement extends INamedCommentedElement {
} // DummyModelElement
/**
*/
package org.fortiss.af3.base.project.model.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.impl.EFactoryImpl;
import org.eclipse.emf.ecore.plugin.EcorePlugin;
import org.fortiss.af3.base.project.model.*;
/**
* <!-- begin-user-doc -->
* An implementation of the model <b>Factory</b>.
* <!-- end-user-doc -->
* @generated
*/
public class AF3BaseProjectFactoryImpl extends EFactoryImpl implements AF3BaseProjectFactory {
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static AF3BaseProjectFactory init() {
try {
AF3BaseProjectFactory theAF3BaseProjectFactory = (AF3BaseProjectFactory)EPackage.Registry.INSTANCE.getEFactory(AF3BaseProjectPackage.eNS_URI);
if (theAF3BaseProjectFactory != null) {
return theAF3BaseProjectFactory;
}
}
catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new AF3BaseProjectFactoryImpl();
}
/**
* Creates an instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public AF3BaseProjectFactoryImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
case AF3BaseProjectPackage.DUMMY_MODEL_ELEMENT: return createDummyModelElement();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public DummyModelElement createDummyModelElement() {
DummyModelElementImpl dummyModelElement = new DummyModelElementImpl();
return dummyModelElement;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public AF3BaseProjectPackage getAF3BaseProjectPackage() {
return (AF3BaseProjectPackage)getEPackage();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @deprecated
* @generated
*/
@Deprecated
public static AF3BaseProjectPackage getPackage() {
return AF3BaseProjectPackage.eINSTANCE;
}
} //AF3BaseProjectFactoryImpl
/**
*/
package org.fortiss.af3.base.project.model.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.impl.EPackageImpl;
import org.fortiss.af3.base.project.model.AF3BaseProjectFactory;
import org.fortiss.af3.base.project.model.AF3BaseProjectPackage;
import org.fortiss.af3.base.project.model.DummyModelElement;
import org.fortiss.tooling.kernel.model.FortissToolingKernelPackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model <b>Package</b>.
* <!-- end-user-doc -->
* @generated
*/
public class AF3BaseProjectPackageImpl extends EPackageImpl implements AF3BaseProjectPackage {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass dummyModelElementEClass = null;
/**
* Creates an instance of the model <b>Package</b>, registered with
* {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
* package URI value.
* <p>Note: the correct way to create the package is via the static
* factory method {@link #init init()}, which also performs
* initialization of the package, or returns the registered package,
* if one already exists.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see org.eclipse.emf.ecore.EPackage.Registry
* @see org.fortiss.af3.base.project.model.AF3BaseProjectPackage#eNS_URI
* @see #init()
* @generated
*/
private AF3BaseProjectPackageImpl() {
super(eNS_URI, AF3BaseProjectFactory.eINSTANCE);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static boolean isInited = false;
/**
* Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
*
* <p>This method is used to initialize {@link AF3BaseProjectPackage#eINSTANCE} when that field is accessed.
* Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #eNS_URI
* @see #createPackageContents()
* @see #initializePackageContents()
* @generated
*/
public static AF3BaseProjectPackage init() {
if (isInited) return (AF3BaseProjectPackage)EPackage.Registry.INSTANCE.getEPackage(AF3BaseProjectPackage.eNS_URI);
// Obtain or create and register package
AF3BaseProjectPackageImpl theAF3BaseProjectPackage = (AF3BaseProjectPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof AF3BaseProjectPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new AF3BaseProjectPackageImpl());
isInited = true;
// Initialize simple dependencies
FortissToolingKernelPackage.eINSTANCE.eClass();
// Create package meta-data objects
theAF3BaseProjectPackage.createPackageContents();
// Initialize created meta-data
theAF3BaseProjectPackage.initializePackageContents();
// Mark meta-data to indicate it can't be changed
theAF3BaseProjectPackage.freeze();
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(AF3BaseProjectPackage.eNS_URI, theAF3BaseProjectPackage);
return theAF3BaseProjectPackage;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getDummyModelElement() {
return dummyModelElementEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public AF3BaseProjectFactory getAF3BaseProjectFactory() {
return (AF3BaseProjectFactory)getEFactoryInstance();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private boolean isCreated = false;
/**
* Creates the meta-model objects for the package. This method is
* guarded to have no affect on any invocation but its first.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void createPackageContents() {
if (isCreated) return;
isCreated = true;
// Create classes and their features
dummyModelElementEClass = createEClass(DUMMY_MODEL_ELEMENT);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private boolean isInitialized = false;
/**
* Complete the initialization of the package and its meta-model. This
* method is guarded to have no affect on any invocation but its first.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void initializePackageContents() {
if (isInitialized) return;
isInitialized = true;
// Initialize package
setName(eNAME);
setNsPrefix(eNS_PREFIX);
setNsURI(eNS_URI);
// Obtain other dependent packages
FortissToolingKernelPackage theFortissToolingKernelPackage = (FortissToolingKernelPackage)EPackage.Registry.INSTANCE.getEPackage(FortissToolingKernelPackage.eNS_URI);
// Create type parameters
// Set bounds for type parameters
// Add supertypes to classes
dummyModelElementEClass.getESuperTypes().add(theFortissToolingKernelPackage.getINamedCommentedElement());
// Initialize classes and features; add operations and parameters
initEClass(dummyModelElementEClass, DummyModelElement.class, "DummyModelElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
// Create resource
createResource(eNS_URI);
}
} //AF3BaseProjectPackageImpl
/**
*/
package org.fortiss.af3.base.project.model.impl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
import org.fortiss.af3.base.project.model.AF3BaseProjectPackage;
import org.fortiss.af3.base.project.model.DummyModelElement;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Dummy Model Element</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link org.fortiss.af3.base.project.model.impl.DummyModelElementImpl#getId <em>Id</em>}</li>
* <li>{@link org.fortiss.af3.base.project.model.impl.DummyModelElementImpl#getName <em>Name</em>}</li>
* <li>{@link org.fortiss.af3.base.project.model.impl.DummyModelElementImpl#getComment <em>Comment</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class DummyModelElementImpl extends EObjectImpl implements DummyModelElement {
/**
* The default value of the '{@link #getId() <em>Id</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getId()
* @generated
* @ordered
*/
protected static final int ID_EDEFAULT = 0;
/**
* The cached value of the '{@link #getId() <em>Id</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getId()
* @generated
* @ordered
*/
protected int id = ID_EDEFAULT;
/**
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getName()
* @generated
* @ordered
*/
protected static final String NAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getName()
* @generated
* @ordered
*/
protected String name = NAME_EDEFAULT;
/**
* The default value of the '{@link #getComment() <em>Comment</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getComment()
* @generated
* @ordered
*/
protected static final String COMMENT_EDEFAULT = null;
/**
* The cached value of the '{@link #getComment() <em>Comment</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getComment()
* @generated
* @ordered
*/
protected String comment = COMMENT_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected DummyModelElementImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return AF3BaseProjectPackage.Literals.DUMMY_MODEL_ELEMENT;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public int getId() {
return id;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setId(int newId) {
int oldId = id;
id = newId;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, AF3BaseProjectPackage.DUMMY_MODEL_ELEMENT__ID, oldId, id));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setName(String newName) {
String oldName = name;
name = newName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, AF3BaseProjectPackage.DUMMY_MODEL_ELEMENT__NAME, oldName, name));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getComment() {
return comment;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setComment(String newComment) {
String oldComment = comment;
comment = newComment;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, AF3BaseProjectPackage.DUMMY_MODEL_ELEMENT__COMMENT, oldComment, comment));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case AF3BaseProjectPackage.DUMMY_MODEL_ELEMENT__ID:
return getId();
case AF3BaseProjectPackage.DUMMY_MODEL_ELEMENT__NAME:
return getName();
case AF3BaseProjectPackage.DUMMY_MODEL_ELEMENT__COMMENT:
return getComment();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case AF3BaseProjectPackage.DUMMY_MODEL_ELEMENT__ID:
setId((Integer)newValue);
return;
case AF3BaseProjectPackage.DUMMY_MODEL_ELEMENT__NAME:
setName((String)newValue);
return;
case AF3BaseProjectPackage.DUMMY_MODEL_ELEMENT__COMMENT:
setComment((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case AF3BaseProjectPackage.DUMMY_MODEL_ELEMENT__ID:
setId(ID_EDEFAULT);
return;
case AF3BaseProjectPackage.DUMMY_MODEL_ELEMENT__NAME:
setName(NAME_EDEFAULT);
return;
case AF3BaseProjectPackage.DUMMY_MODEL_ELEMENT__COMMENT:
setComment(COMMENT_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case AF3BaseProjectPackage.DUMMY_MODEL_ELEMENT__ID:
return id != ID_EDEFAULT;
case AF3BaseProjectPackage.DUMMY_MODEL_ELEMENT__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
case AF3BaseProjectPackage.DUMMY_MODEL_ELEMENT__COMMENT:
return COMMENT_EDEFAULT == null ? comment != null : !COMMENT_EDEFAULT.equals(comment);
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (id: ");
result.append(id);
result.append(", name: ");
result.append(name);
result.append(", comment: ");
result.append(comment);
result.append(')');
return result.toString();
}
} //DummyModelElementImpl
/**
*/
package org.fortiss.af3.base.project.model.util;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
import org.eclipse.emf.ecore.EObject;
import org.fortiss.af3.base.project.model.*;
import org.fortiss.tooling.kernel.model.IIdLabeled;
import org.fortiss.tooling.kernel.model.INamedCommentedElement;
import org.fortiss.tooling.kernel.model.INamedElement;
/**
* <!-- begin-user-doc -->
* The <b>Adapter Factory</b> for the model.
* It provides an adapter <code>createXXX</code> method for each class of the model.
* <!-- end-user-doc -->
* @see org.fortiss.af3.base.project.model.AF3BaseProjectPackage
* @generated
*/
public class AF3BaseProjectAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static AF3BaseProjectPackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public AF3BaseProjectAdapterFactory() {
if (modelPackage == null) {
modelPackage = AF3BaseProjectPackage.eINSTANCE;
}
}
/**
* Returns whether this factory is applicable for the type of the object.
* <!-- begin-user-doc -->
* This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
* <!-- end-user-doc -->
* @return whether this factory is applicable for the type of the object.
* @generated
*/
@Override
public boolean isFactoryForType(Object object) {
if (object == modelPackage) {
return true;
}
if (object instanceof EObject) {
return ((EObject)object).eClass().getEPackage() == modelPackage;
}
return false;
}
/**
* The switch that delegates to the <code>createXXX</code> methods.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected AF3BaseProjectSwitch<Adapter> modelSwitch =
new AF3BaseProjectSwitch<Adapter>() {
@Override
public Adapter caseDummyModelElement(DummyModelElement object) {
return createDummyModelElementAdapter();
}
@Override
public Adapter caseIIdLabeled(IIdLabeled object) {
return createIIdLabeledAdapter();
}
@Override
public Adapter caseINamedElement(INamedElement object) {
return createINamedElementAdapter();
}
@Override
public Adapter caseINamedCommentedElement(INamedCommentedElement object) {
return createINamedCommentedElementAdapter();
}
@Override
public Adapter defaultCase(EObject object) {
return createEObjectAdapter();
}
};
/**
* Creates an adapter for the <code>target</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param target the object to adapt.
* @return the adapter for the <code>target</code>.
* @generated
*/
@Override
public Adapter createAdapter(Notifier target) {
return modelSwitch.doSwitch((EObject)target);
}
/**
* Creates a new adapter for an object of class '{@link org.fortiss.af3.base.project.model.DummyModelElement <em>Dummy Model Element</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.fortiss.af3.base.project.model.DummyModelElement
* @generated
*/
public Adapter createDummyModelElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.fortiss.tooling.kernel.model.IIdLabeled <em>IId Labeled</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.fortiss.tooling.kernel.model.IIdLabeled
* @generated
*/
public Adapter createIIdLabeledAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.fortiss.tooling.kernel.model.INamedElement <em>INamed Element</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.fortiss.tooling.kernel.model.INamedElement
* @generated
*/
public Adapter createINamedElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.fortiss.tooling.kernel.model.INamedCommentedElement <em>INamed Commented Element</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.fortiss.tooling.kernel.model.INamedCommentedElement
* @generated
*/
public Adapter createINamedCommentedElementAdapter() {
return null;
}
/**
* Creates a new adapter for the default case.
* <!-- begin-user-doc -->
* This default implementation returns null.
* <!-- end-user-doc -->
* @return the new adapter.
* @generated
*/
public Adapter createEObjectAdapter() {
return null;
}
} //AF3BaseProjectAdapterFactory
/**
*/
package org.fortiss.af3.base.project.model.util;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.util.Switch;
import org.fortiss.af3.base.project.model.*;
import org.fortiss.tooling.kernel.model.IIdLabeled;
import org.fortiss.tooling.kernel.model.INamedCommentedElement;
import org.fortiss.tooling.kernel.model.INamedElement;
/**
* <!-- begin-user-doc -->
* The <b>Switch</b> for the model's inheritance hierarchy.
* It supports the call {@link #doSwitch(EObject) doSwitch(object)}
* to invoke the <code>caseXXX</code> method for each class of the model,
* starting with the actual class of the object
* and proceeding up the inheritance hierarchy
* until a non-null result is returned,
* which is the result of the switch.
* <!-- end-user-doc -->
* @see org.fortiss.af3.base.project.model.AF3BaseProjectPackage
* @generated
*/
public class AF3BaseProjectSwitch<T> extends Switch<T> {
/**
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static AF3BaseProjectPackage modelPackage;
/**
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public AF3BaseProjectSwitch() {
if (modelPackage == null) {
modelPackage = AF3BaseProjectPackage.eINSTANCE;
}
}
/**
* Checks whether this is a switch for the given package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @parameter ePackage the package in question.
* @return whether this is a switch for the given package.
* @generated
*/
@Override
protected boolean isSwitchFor(EPackage ePackage) {
return ePackage == modelPackage;
}
/**
* Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the first non-null result returned by a <code>caseXXX</code> call.
* @generated
*/
@Override
protected T doSwitch(int classifierID, EObject theEObject) {
switch (classifierID) {
case AF3BaseProjectPackage.DUMMY_MODEL_ELEMENT: {
DummyModelElement dummyModelElement = (DummyModelElement)theEObject;
T result = caseDummyModelElement(dummyModelElement);
if (result == null) result = caseINamedCommentedElement(dummyModelElement);
if (result == null) result = caseINamedElement(dummyModelElement);
if (result == null) result = caseIIdLabeled(dummyModelElement);
if (result == null) result = defaultCase(theEObject);
return result;
}
default: return defaultCase(theEObject);
}
}
/**
* Returns the result of interpreting the object as an instance of '<em>Dummy Model Element</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Dummy Model Element</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseDummyModelElement(DummyModelElement object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>IId Labeled</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>IId Labeled</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseIIdLabeled(IIdLabeled object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>INamed Element</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>INamed Element</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseINamedElement(INamedElement object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>INamed Commented Element</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>INamed Commented Element</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseINamedCommentedElement(INamedCommentedElement object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch, but this is the last case anyway.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>EObject</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject)
* @generated
*/
@Override
public T defaultCase(EObject object) {
return null;
}
} //AF3BaseProjectSwitch
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project name="org.fortiss.af3.platform.raspberry" default="generate-ecore" basedir="..">
<property name="model.name" value="raspberry" />
<property name="model.project" value="org.fortiss.af3.platform.raspberry" />
<!-- 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.Ecore2Javaw
model="model/${model.name}.ecore"
genModel="model/${model.name}.genmodel"
modelProject="/${model.project}"
modelProjectFragmentPath="generated-src"
reconcileGenModel="reload">
</emf.Ecore2Javaw>
</target>
</project>
\ No newline at end of file
<?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/platform/raspberry"
nsPrefix="org-fortiss-af3-platform-raspberry">
<eClassifiers xsi:type="ecore:EClass" name="DummyModelElement" eSuperTypes="platform:/resource/org.fortiss.tooling.kernel/model/kernel.ecore#//INamedCommentedElement"/>
</ecore:EPackage>
<?xml version="1.0" encoding="UTF-8"?>
<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel"
modelDirectory="/org.fortiss.af3.platform.raspberry/generated-src" editDirectory="/org.fortiss.af3.platform.raspberry.edit/generated-src"
editorDirectory="/org.fortiss.af3.platform.raspberry.editor/generated-src" modelPluginID="org.fortiss.af3.platform.raspberry"
modelName="Model" testsDirectory="/org.fortiss.af3.platform.raspberry.tests/generated-src"
importerID="org.eclipse.emf.importer.ecore" containmentProxies="true" arrayAccessors="true"
complianceLevel="6.0" copyrightFields="false" usedGenPackages="platform:/resource/org.fortiss.tooling.kernel/model/kernel.genmodel#//model">
<foreignModel>raspberry.ecore</foreignModel>
</genmodel:GenModel>
# <copyright>
# </copyright>
#
# $Id$
pluginName = Fortiss AF3 Base Project
providerName = fortiss GmbH
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<!--
<copyright>
</copyright>
$Id$
-->
<plugin>
</plugin>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Id$
@version $Rev$
@ConQAT.Rating RED Hash: E1674C4A6DD3CBC4A7B7E85232D9695F
-->
<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>
<groupId>org.fortiss.af3</groupId>
<artifactId>org.fortiss.af3.base.project</artifactId>
<packaging>eclipse-plugin</packaging>
<parent>
<groupId>org.fortiss.std.pom</groupId>
<artifactId>std-parent-pom-indigo</artifactId>
<version>1.0</version>
<relativePath>../fortiss-std-env/maven-build/pom.xml</relativePath>
</parent>
<version>2.8.0-SNAPSHOT</version>
</project>
\ No newline at end of file
package org.fortiss.af3.platform.raspberry;
import org.eclipse.core.runtime.Plugin;
import org.osgi.framework.BundleContext;
/**
* The activator class controls the plug-in life cycle.
*/
public class AF3PlatformRaspberryActivator extends Plugin {
/** The plug-in ID. */
public static final String PLUGIN_ID = AF3PlatformRaspberryActivator.class.getPackage().getName(); //$NON-NLS-1$
/** The shared instance. */
private static AF3PlatformRaspberryActivator plugin;
/** Constructor. */
public AF3PlatformRaspberryActivator() {
// 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 AF3PlatformRaspberryActivator getDefault() {
return plugin;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment