Skip to content
Snippets Groups Projects
Commit db5632ab authored by Daniel Ratiu's avatar Daniel Ratiu
Browse files

data types can now be added to the library and taken into data dictionaries as references

refs 1369
parent 20899bd0
No related branches found
No related tags found
No related merge requests found
......@@ -112,7 +112,8 @@ public abstract class PropertySectionBase extends AbstractPropertySection {
if(object instanceof EObject) {
EObject eobj = (EObject)object;
if(ILibraryService.INSTANCE.isLibraryElementShadow(eobj)) {
if(ILibraryService.INSTANCE.isLibraryElementShadow(eobj) ||
eobj instanceof ILibraryElementReference) {
disableControls();
}
}
......
......@@ -65,8 +65,14 @@
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="ILibraryElementReference is the super class of all references to elements contained in a library."/>
</eAnnotations>
<eOperations name="isChangeable" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="true if the properties of this element reference can be changed, false otherwise"/>
</eAnnotations>
</eOperations>
<eStructuralFeatures xsi:type="ecore:EReference" name="libraryElementShadow" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject"
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="URI" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ILibraryRootElement" abstract="true"
interface="true" eSuperTypes="#//INamedCommentedElement"/>
......
......@@ -29,6 +29,8 @@
</genClasses>
<genClasses image="false" ecoreClass="kernel.ecore#//ILibraryElementReference">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference kernel.ecore#//ILibraryElementReference/libraryElementShadow"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute kernel.ecore#//ILibraryElementReference/URI"/>
<genOperations ecoreOperation="kernel.ecore#//ILibraryElementReference/isChangeable"/>
</genClasses>
<genClasses ecoreClass="kernel.ecore#//ILibraryRootElement"/>
<genClasses image="false" ecoreClass="kernel.ecore#//ILibrary">
......
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