Procházet zdrojové kódy

Added new Wizard page to selection domain

Andreas Mülder před 10 roky
rodič
revize
c97548d234

+ 1 - 1
plugins/org.yakindu.sct.model.sgraph/model/emf/sgraph.ecore

@@ -32,7 +32,7 @@
   <eClassifiers xsi:type="ecore:EClass" name="Statechart" eSuperTypes="#//SpecificationElement #//ReactiveElement #//ScopedElement #//CompositeElement ../../../org.yakindu.base.types/model/base.ecore#//NamedElement ../../../org.yakindu.base.types/model/base.ecore#//DocumentedElement">
     <eStructuralFeatures xsi:type="ecore:EReference" name="imports" upperBound="-1"
         eType="#//Import" containment="true"/>
-    <eStructuralFeatures xsi:type="ecore:EAttribute" name="typesystemURI" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
+    <eStructuralFeatures xsi:type="ecore:EAttribute" name="domainID" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
         defaultValueLiteral="Default"/>
   </eClassifiers>
   <eClassifiers xsi:type="ecore:EClass" name="Entry" eSuperTypes="#//Pseudostate">

+ 8 - 8
plugins/org.yakindu.sct.model.sgraph/src/org/yakindu/sct/model/sgraph/SGraphPackage.java

@@ -698,13 +698,13 @@ public interface SGraphPackage extends EPackage {
 	int STATECHART__IMPORTS = SPECIFICATION_ELEMENT_FEATURE_COUNT + 7;
 
 	/**
-	 * The feature id for the '<em><b>Typesystem URI</b></em>' attribute.
+	 * The feature id for the '<em><b>Domain ID</b></em>' attribute.
 	 * <!-- begin-user-doc -->
 	 * <!-- end-user-doc -->
 	 * @generated
 	 * @ordered
 	 */
-	int STATECHART__TYPESYSTEM_URI = SPECIFICATION_ELEMENT_FEATURE_COUNT + 8;
+	int STATECHART__DOMAIN_ID = SPECIFICATION_ELEMENT_FEATURE_COUNT + 8;
 
 	/**
 	 * The number of structural features of the '<em>Statechart</em>' class.
@@ -1748,15 +1748,15 @@ public interface SGraphPackage extends EPackage {
 	EReference getStatechart_Imports();
 
 	/**
-	 * Returns the meta object for the attribute '{@link org.yakindu.sct.model.sgraph.Statechart#getTypesystemURI <em>Typesystem URI</em>}'.
+	 * Returns the meta object for the attribute '{@link org.yakindu.sct.model.sgraph.Statechart#getDomainID <em>Domain ID</em>}'.
 	 * <!-- begin-user-doc -->
 	 * <!-- end-user-doc -->
-	 * @return the meta object for the attribute '<em>Typesystem URI</em>'.
-	 * @see org.yakindu.sct.model.sgraph.Statechart#getTypesystemURI()
+	 * @return the meta object for the attribute '<em>Domain ID</em>'.
+	 * @see org.yakindu.sct.model.sgraph.Statechart#getDomainID()
 	 * @see #getStatechart()
 	 * @generated
 	 */
-	EAttribute getStatechart_TypesystemURI();
+	EAttribute getStatechart_DomainID();
 
 	/**
 	 * Returns the meta object for class '{@link org.yakindu.sct.model.sgraph.Entry <em>Entry</em>}'.
@@ -2345,12 +2345,12 @@ public interface SGraphPackage extends EPackage {
 		EReference STATECHART__IMPORTS = eINSTANCE.getStatechart_Imports();
 
 		/**
-		 * The meta object literal for the '<em><b>Typesystem URI</b></em>' attribute feature.
+		 * The meta object literal for the '<em><b>Domain ID</b></em>' attribute feature.
 		 * <!-- begin-user-doc -->
 		 * <!-- end-user-doc -->
 		 * @generated
 		 */
-		EAttribute STATECHART__TYPESYSTEM_URI = eINSTANCE.getStatechart_TypesystemURI();
+		EAttribute STATECHART__DOMAIN_ID = eINSTANCE.getStatechart_DomainID();
 
 		/**
 		 * The meta object literal for the '{@link org.yakindu.sct.model.sgraph.impl.EntryImpl <em>Entry</em>}' class.

+ 11 - 11
plugins/org.yakindu.sct.model.sgraph/src/org/yakindu/sct/model/sgraph/Statechart.java

@@ -24,7 +24,7 @@ import org.yakindu.base.base.NamedElement;
  * The following features are supported:
  * <ul>
  *   <li>{@link org.yakindu.sct.model.sgraph.Statechart#getImports <em>Imports</em>}</li>
- *   <li>{@link org.yakindu.sct.model.sgraph.Statechart#getTypesystemURI <em>Typesystem URI</em>}</li>
+ *   <li>{@link org.yakindu.sct.model.sgraph.Statechart#getDomainID <em>Domain ID</em>}</li>
  * </ul>
  * </p>
  *
@@ -57,30 +57,30 @@ public interface Statechart extends SpecificationElement, ReactiveElement, Scope
 	EList<Import> getImports();
 
 	/**
-	 * Returns the value of the '<em><b>Typesystem URI</b></em>' attribute.
+	 * Returns the value of the '<em><b>Domain ID</b></em>' attribute.
 	 * The default value is <code>"Default"</code>.
 	 * <!-- begin-user-doc -->
 	 * <p>
-	 * If the meaning of the '<em>Typesystem URI</em>' attribute isn't clear,
+	 * If the meaning of the '<em>Domain ID</em>' attribute isn't clear,
 	 * there really should be more of a description here...
 	 * </p>
 	 * <!-- end-user-doc -->
-	 * @return the value of the '<em>Typesystem URI</em>' attribute.
-	 * @see #setTypesystemURI(String)
-	 * @see org.yakindu.sct.model.sgraph.SGraphPackage#getStatechart_TypesystemURI()
+	 * @return the value of the '<em>Domain ID</em>' attribute.
+	 * @see #setDomainID(String)
+	 * @see org.yakindu.sct.model.sgraph.SGraphPackage#getStatechart_DomainID()
 	 * @model default="Default"
 	 * @generated
 	 */
-	String getTypesystemURI();
+	String getDomainID();
 
 	/**
-	 * Sets the value of the '{@link org.yakindu.sct.model.sgraph.Statechart#getTypesystemURI <em>Typesystem URI</em>}' attribute.
+	 * Sets the value of the '{@link org.yakindu.sct.model.sgraph.Statechart#getDomainID <em>Domain ID</em>}' attribute.
 	 * <!-- begin-user-doc -->
 	 * <!-- end-user-doc -->
-	 * @param value the new value of the '<em>Typesystem URI</em>' attribute.
-	 * @see #getTypesystemURI()
+	 * @param value the new value of the '<em>Domain ID</em>' attribute.
+	 * @see #getDomainID()
 	 * @generated
 	 */
-	void setTypesystemURI(String value);
+	void setDomainID(String value);
 
 } // Statechart

+ 3 - 3
plugins/org.yakindu.sct.model.sgraph/src/org/yakindu/sct/model/sgraph/impl/SGraphPackageImpl.java

@@ -624,7 +624,7 @@ public class SGraphPackageImpl extends EPackageImpl implements SGraphPackage {
 	 * <!-- end-user-doc -->
 	 * @generated
 	 */
-	public EAttribute getStatechart_TypesystemURI() {
+	public EAttribute getStatechart_DomainID() {
 		return (EAttribute)statechartEClass.getEStructuralFeatures().get(1);
 	}
 
@@ -916,7 +916,7 @@ public class SGraphPackageImpl extends EPackageImpl implements SGraphPackage {
 
 		statechartEClass = createEClass(STATECHART);
 		createEReference(statechartEClass, STATECHART__IMPORTS);
-		createEAttribute(statechartEClass, STATECHART__TYPESYSTEM_URI);
+		createEAttribute(statechartEClass, STATECHART__DOMAIN_ID);
 
 		entryEClass = createEClass(ENTRY);
 		createEAttribute(entryEClass, ENTRY__KIND);
@@ -1066,7 +1066,7 @@ public class SGraphPackageImpl extends EPackageImpl implements SGraphPackage {
 
 		initEClass(statechartEClass, Statechart.class, "Statechart", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
 		initEReference(getStatechart_Imports(), this.getImport(), null, "imports", null, 0, -1, Statechart.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-		initEAttribute(getStatechart_TypesystemURI(), ecorePackage.getEString(), "typesystemURI", "Default", 0, 1, Statechart.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+		initEAttribute(getStatechart_DomainID(), ecorePackage.getEString(), "domainID", "Default", 0, 1, Statechart.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
 
 		initEClass(entryEClass, Entry.class, "Entry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
 		initEAttribute(getEntry_Kind(), this.getEntryKind(), "kind", null, 0, 1, Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

+ 23 - 23
plugins/org.yakindu.sct.model.sgraph/src/org/yakindu/sct/model/sgraph/impl/StatechartImpl.java

@@ -50,7 +50,7 @@ import org.yakindu.sct.model.sgraph.Statechart;
  *   <li>{@link org.yakindu.sct.model.sgraph.impl.StatechartImpl#getName <em>Name</em>}</li>
  *   <li>{@link org.yakindu.sct.model.sgraph.impl.StatechartImpl#getDocumentation <em>Documentation</em>}</li>
  *   <li>{@link org.yakindu.sct.model.sgraph.impl.StatechartImpl#getImports <em>Imports</em>}</li>
- *   <li>{@link org.yakindu.sct.model.sgraph.impl.StatechartImpl#getTypesystemURI <em>Typesystem URI</em>}</li>
+ *   <li>{@link org.yakindu.sct.model.sgraph.impl.StatechartImpl#getDomainID <em>Domain ID</em>}</li>
  * </ul>
  * </p>
  *
@@ -149,24 +149,24 @@ public class StatechartImpl extends SpecificationElementImpl implements
 	protected EList<Import> imports;
 
 	/**
-	 * The default value of the '{@link #getTypesystemURI() <em>Typesystem URI</em>}' attribute.
+	 * The default value of the '{@link #getDomainID() <em>Domain ID</em>}' attribute.
 	 * <!-- begin-user-doc -->
 	 * <!-- end-user-doc -->
-	 * @see #getTypesystemURI()
+	 * @see #getDomainID()
 	 * @generated
 	 * @ordered
 	 */
-	protected static final String TYPESYSTEM_URI_EDEFAULT = "Default";
+	protected static final String DOMAIN_ID_EDEFAULT = "Default";
 
 	/**
-	 * The cached value of the '{@link #getTypesystemURI() <em>Typesystem URI</em>}' attribute.
+	 * The cached value of the '{@link #getDomainID() <em>Domain ID</em>}' attribute.
 	 * <!-- begin-user-doc -->
 	 * <!-- end-user-doc -->
-	 * @see #getTypesystemURI()
+	 * @see #getDomainID()
 	 * @generated
 	 * @ordered
 	 */
-	protected String typesystemURI = TYPESYSTEM_URI_EDEFAULT;
+	protected String domainID = DOMAIN_ID_EDEFAULT;
 
 	/**
 	 * <!-- begin-user-doc --> <!-- end-user-doc -->
@@ -313,8 +313,8 @@ public class StatechartImpl extends SpecificationElementImpl implements
 	 * <!-- end-user-doc -->
 	 * @generated
 	 */
-	public String getTypesystemURI() {
-		return typesystemURI;
+	public String getDomainID() {
+		return domainID;
 	}
 
 	/**
@@ -322,11 +322,11 @@ public class StatechartImpl extends SpecificationElementImpl implements
 	 * <!-- end-user-doc -->
 	 * @generated
 	 */
-	public void setTypesystemURI(String newTypesystemURI) {
-		String oldTypesystemURI = typesystemURI;
-		typesystemURI = newTypesystemURI;
+	public void setDomainID(String newDomainID) {
+		String oldDomainID = domainID;
+		domainID = newDomainID;
 		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, SGraphPackage.STATECHART__TYPESYSTEM_URI, oldTypesystemURI, typesystemURI));
+			eNotify(new ENotificationImpl(this, Notification.SET, SGraphPackage.STATECHART__DOMAIN_ID, oldDomainID, domainID));
 	}
 
 	/**
@@ -385,8 +385,8 @@ public class StatechartImpl extends SpecificationElementImpl implements
 				return getDocumentation();
 			case SGraphPackage.STATECHART__IMPORTS:
 				return getImports();
-			case SGraphPackage.STATECHART__TYPESYSTEM_URI:
-				return getTypesystemURI();
+			case SGraphPackage.STATECHART__DOMAIN_ID:
+				return getDomainID();
 		}
 		return super.eGet(featureID, resolve, coreType);
 	}
@@ -420,8 +420,8 @@ public class StatechartImpl extends SpecificationElementImpl implements
 				getImports().clear();
 				getImports().addAll((Collection<? extends Import>)newValue);
 				return;
-			case SGraphPackage.STATECHART__TYPESYSTEM_URI:
-				setTypesystemURI((String)newValue);
+			case SGraphPackage.STATECHART__DOMAIN_ID:
+				setDomainID((String)newValue);
 				return;
 		}
 		super.eSet(featureID, newValue);
@@ -452,8 +452,8 @@ public class StatechartImpl extends SpecificationElementImpl implements
 			case SGraphPackage.STATECHART__IMPORTS:
 				getImports().clear();
 				return;
-			case SGraphPackage.STATECHART__TYPESYSTEM_URI:
-				setTypesystemURI(TYPESYSTEM_URI_EDEFAULT);
+			case SGraphPackage.STATECHART__DOMAIN_ID:
+				setDomainID(DOMAIN_ID_EDEFAULT);
 				return;
 		}
 		super.eUnset(featureID);
@@ -482,8 +482,8 @@ public class StatechartImpl extends SpecificationElementImpl implements
 				return DOCUMENTATION_EDEFAULT == null ? documentation != null : !DOCUMENTATION_EDEFAULT.equals(documentation);
 			case SGraphPackage.STATECHART__IMPORTS:
 				return imports != null && !imports.isEmpty();
-			case SGraphPackage.STATECHART__TYPESYSTEM_URI:
-				return TYPESYSTEM_URI_EDEFAULT == null ? typesystemURI != null : !TYPESYSTEM_URI_EDEFAULT.equals(typesystemURI);
+			case SGraphPackage.STATECHART__DOMAIN_ID:
+				return DOMAIN_ID_EDEFAULT == null ? domainID != null : !DOMAIN_ID_EDEFAULT.equals(domainID);
 		}
 		return super.eIsSet(featureID);
 	}
@@ -585,8 +585,8 @@ public class StatechartImpl extends SpecificationElementImpl implements
 		result.append(name);
 		result.append(", documentation: ");
 		result.append(documentation);
-		result.append(", typesystemURI: ");
-		result.append(typesystemURI);
+		result.append(", domainID: ");
+		result.append(domainID);
 		result.append(')');
 		return result.toString();
 	}