Skip to content
Snippets Groups Projects
Commit 852e874d authored by Fabian Wiesner's avatar Fabian Wiesner
Browse files

Clean Up

git-svn-id: https://se1.informatik.uni-wuerzburg.de/usvn/svn/code/code/DMM/trunk@9709 9e42b895-fcda-4063-8a3b-11be15eb1bbd
parent 34704f39
No related branches found
No related tags found
No related merge requests found
Showing
with 33 additions and 26 deletions
/************************************************************************************* /*************************************************************************************
* *
* Generated on Thu Jan 03 18:22:47 CET 2013 by Spray GuiceModule.xtend * Generated on Thu Jan 10 09:46:29 CET 2013 by Spray GuiceModule.xtend
* *
* This file contains generated and should not be changed. * This file contains generated and should not be changed.
* Use the extension point class (the direct subclass of this class) to add manual code * Use the extension point class (the direct subclass of this class) to add manual code
......
/************************************************************************************* /*************************************************************************************
* *
* Generated on Thu Jan 03 18:22:47 CET 2013 by Spray DiagramTypeProvider.xtend * Generated on Thu Jan 10 09:46:29 CET 2013 by Spray DiagramTypeProvider.xtend
* *
* This file is an extension point: copy to "src" folder to manually add code to this * This file is an extension point: copy to "src" folder to manually add code to this
* extension point. * extension point.
......
/************************************************************************************* /*************************************************************************************
* *
* Generated on Thu Jan 03 18:22:47 CET 2013 by Spray DiagramTypeProvider.xtend * Generated on Thu Jan 10 09:46:29 CET 2013 by Spray DiagramTypeProvider.xtend
* *
* This file contains generated and should not be changed. * This file contains generated and should not be changed.
* Use the extension point class (the direct subclass of this class) to add manual code * Use the extension point class (the direct subclass of this class) to add manual code
......
/************************************************************************************* /*************************************************************************************
* *
* Generated on Thu Jan 03 18:22:47 CET 2013 by Spray FeatureProvider.xtend * Generated on Thu Jan 10 09:46:29 CET 2013 by Spray FeatureProvider.xtend
* *
* This file is an extension point: copy to "src" folder to manually add code to this * This file is an extension point: copy to "src" folder to manually add code to this
* extension point. * extension point.
......
/************************************************************************************* /*************************************************************************************
* *
* Generated on Thu Jan 03 18:22:47 CET 2013 by Spray FeatureProvider.xtend * Generated on Thu Jan 10 09:46:29 CET 2013 by Spray FeatureProvider.xtend
* *
* This file contains generated and should not be changed. * This file contains generated and should not be changed.
* Use the extension point class (the direct subclass of this class) to add manual code * Use the extension point class (the direct subclass of this class) to add manual code
......
/************************************************************************************* /*************************************************************************************
* *
* Generated on Thu Jan 03 18:22:47 CET 2013 by Spray ImageProvider.xtend * Generated on Thu Jan 10 09:46:29 CET 2013 by Spray ImageProvider.xtend
* *
* This file is an extension point: copy to "src" folder to manually add code to this * This file is an extension point: copy to "src" folder to manually add code to this
* extension point. * extension point.
......
/************************************************************************************* /*************************************************************************************
* *
* Generated on Thu Jan 03 18:22:47 CET 2013 by Spray ImageProvider.xtend * Generated on Thu Jan 10 09:46:29 CET 2013 by Spray ImageProvider.xtend
* *
* This file contains generated and should not be changed. * This file contains generated and should not be changed.
* Use the extension point class (the direct subclass of this class) to add manual code * Use the extension point class (the direct subclass of this class) to add manual code
......
/************************************************************************************* /*************************************************************************************
* *
* Generated on Thu Jan 03 18:22:47 CET 2013 by Spray ModelService.xtend * Generated on Thu Jan 10 09:46:29 CET 2013 by Spray ModelService.xtend
* *
* This file contains generated and should not be changed. * This file contains generated and should not be changed.
* Use the extension point class (the direct subclass of this class) to add manual code * Use the extension point class (the direct subclass of this class) to add manual code
...@@ -68,12 +68,19 @@ public class CompositediagramModelService implements ISprayConstants { ...@@ -68,12 +68,19 @@ public class CompositediagramModelService implements ISprayConstants {
ResourceSet set = r.getResourceSet(); ResourceSet set = r.getResourceSet();
EObject bo = (EObject) dtp.getFeatureProvider().getBusinessObjectForPictogramElement(diagram); EObject bo = (EObject) dtp.getFeatureProvider().getBusinessObjectForPictogramElement(diagram);
Repository model = null; Repository model = null;
// If its a proxy, resolve it if (bo != null) {
if (bo != null && bo.eIsProxy()) { // If its a proxy, resolve it
if (bo instanceof InternalEObject) { if (bo.eIsProxy()) {
model = (Repository) set.getEObject(((InternalEObject) bo).eProxyURI(), true); if (bo instanceof InternalEObject) {
model = (Repository) set.getEObject(((InternalEObject) bo).eProxyURI(), true);
}
} else {
if (bo instanceof Repository) {
model = (Repository) bo;
}
} }
} }
if (model == null) { if (model == null) {
model = createModel(); model = createModel();
} }
......
/************************************************************************************* /*************************************************************************************
* *
* Generated on Thu Jan 03 18:22:47 CET 2013 by Spray ToolBehaviorProvider.xtend * Generated on Thu Jan 10 09:46:29 CET 2013 by Spray ToolBehaviorProvider.xtend
* *
* This file is an extension point: copy to "src" folder to manually add code to this * This file is an extension point: copy to "src" folder to manually add code to this
* extension point. * extension point.
......
/************************************************************************************* /*************************************************************************************
* *
* Generated on Thu Jan 03 18:22:47 CET 2013 by Spray ToolBehaviorProvider.xtend * Generated on Thu Jan 10 09:46:29 CET 2013 by Spray ToolBehaviorProvider.xtend
* *
* This file contains generated and should not be changed. * This file contains generated and should not be changed.
* Use the extension point class (the direct subclass of this class) to add manual code * Use the extension point class (the direct subclass of this class) to add manual code
......
/************************************************************************************* /*************************************************************************************
* *
* Generated on Thu Jan 03 18:22:47 CET 2013 by Spray AddShapeFromDslFeature.xtend * Generated on Thu Jan 10 09:46:29 CET 2013 by Spray AddShapeFromDslFeature.xtend
* *
* This file is an extension point: copy to "src" folder to manually add code to this * This file is an extension point: copy to "src" folder to manually add code to this
* extension point. * extension point.
......
/************************************************************************************* /*************************************************************************************
* *
* Generated on Thu Jan 03 18:22:47 CET 2013 by Spray AddShapeFromDslFeature.xtend * Generated on Thu Jan 10 09:46:29 CET 2013 by Spray AddShapeFromDslFeature.xtend
* *
* This file contains generated and should not be changed. * This file contains generated and should not be changed.
* Use the extension point class (the direct subclass of this class) to add manual code * Use the extension point class (the direct subclass of this class) to add manual code
...@@ -53,7 +53,7 @@ public abstract class CompositediagramAddAssemblyContextFeatureBase extends Abst ...@@ -53,7 +53,7 @@ public abstract class CompositediagramAddAssemblyContextFeatureBase extends Abst
// OLD STUFF // OLD STUFF
final Object target = getBusinessObjectForPictogramElement(context.getTargetContainer()); final Object target = getBusinessObjectForPictogramElement(context.getTargetContainer());
// NEW stuff // NEW stuff
// cls CompositeComponent refers to this metaClass // cls CompositeComponent refers to this metaClass?
if (target instanceof edu.kit.ipd.descartes.mm.applicationlevel.repository.CompositeComponent) { if (target instanceof edu.kit.ipd.descartes.mm.applicationlevel.repository.CompositeComponent) {
if (SprayLayoutService.isCompartment(context.getTargetContainer())) { if (SprayLayoutService.isCompartment(context.getTargetContainer())) {
String id = GraphitiProperties.get(context.getTargetContainer(), TEXT_ID); String id = GraphitiProperties.get(context.getTargetContainer(), TEXT_ID);
......
/************************************************************************************* /*************************************************************************************
* *
* Generated on Thu Jan 03 18:22:47 CET 2013 by Spray AddShapeFromDslFeature.xtend * Generated on Thu Jan 10 09:46:29 CET 2013 by Spray AddShapeFromDslFeature.xtend
* *
* This file is an extension point: copy to "src" folder to manually add code to this * This file is an extension point: copy to "src" folder to manually add code to this
* extension point. * extension point.
......
/************************************************************************************* /*************************************************************************************
* *
* Generated on Thu Jan 03 18:22:47 CET 2013 by Spray AddShapeFromDslFeature.xtend * Generated on Thu Jan 10 09:46:29 CET 2013 by Spray AddShapeFromDslFeature.xtend
* *
* This file contains generated and should not be changed. * This file contains generated and should not be changed.
* Use the extension point class (the direct subclass of this class) to add manual code * Use the extension point class (the direct subclass of this class) to add manual code
......
/************************************************************************************* /*************************************************************************************
* *
* Generated on Thu Jan 03 18:22:48 CET 2013 by Spray CopyFeature.xtend * Generated on Thu Jan 10 09:46:29 CET 2013 by Spray CopyFeature.xtend
* *
* This file is an extension point: copy to "src" folder to manually add code to this * This file is an extension point: copy to "src" folder to manually add code to this
* extension point. * extension point.
......
/************************************************************************************* /*************************************************************************************
* *
* Generated on Thu Jan 03 18:22:48 CET 2013 by Spray CopyFeature.xtend * Generated on Thu Jan 10 09:46:29 CET 2013 by Spray CopyFeature.xtend
* *
* This file contains generated and should not be changed. * This file contains generated and should not be changed.
* Use the extension point class (the direct subclass of this class) to add manual code * Use the extension point class (the direct subclass of this class) to add manual code
......
/************************************************************************************* /*************************************************************************************
* *
* Generated on Thu Jan 03 18:22:47 CET 2013 by Spray CreateShapeFeature.xtend * Generated on Thu Jan 10 09:46:29 CET 2013 by Spray CreateShapeFeature.xtend
* *
* This file is an extension point: copy to "src" folder to manually add code to this * This file is an extension point: copy to "src" folder to manually add code to this
* extension point. * extension point.
......
/************************************************************************************* /*************************************************************************************
* *
* Generated on Thu Jan 03 18:22:47 CET 2013 by Spray CreateShapeFeature.xtend * Generated on Thu Jan 10 09:46:29 CET 2013 by Spray CreateShapeFeature.xtend
* *
* This file contains generated and should not be changed. * This file contains generated and should not be changed.
* Use the extension point class (the direct subclass of this class) to add manual code * Use the extension point class (the direct subclass of this class) to add manual code
......
/************************************************************************************* /*************************************************************************************
* *
* Generated on Thu Jan 03 18:22:47 CET 2013 by Spray CreateShapeFeature.xtend * Generated on Thu Jan 10 09:46:29 CET 2013 by Spray CreateShapeFeature.xtend
* *
* This file is an extension point: copy to "src" folder to manually add code to this * This file is an extension point: copy to "src" folder to manually add code to this
* extension point. * extension point.
......
/************************************************************************************* /*************************************************************************************
* *
* Generated on Thu Jan 03 18:22:47 CET 2013 by Spray CreateShapeFeature.xtend * Generated on Thu Jan 10 09:46:29 CET 2013 by Spray CreateShapeFeature.xtend
* *
* This file contains generated and should not be changed. * This file contains generated and should not be changed.
* Use the extension point class (the direct subclass of this class) to add manual code * Use the extension point class (the direct subclass of this class) to add manual code
...@@ -73,7 +73,7 @@ public abstract class CompositediagramCreateCompositeComponentFeatureBase extend ...@@ -73,7 +73,7 @@ public abstract class CompositediagramCreateCompositeComponentFeatureBase extend
return new Object[]{newClass}; return new Object[]{newClass};
} }
// org.eclipse.emf.ecore.impl.EReferenceImpl@69597c46 (name: components) (ordered: false, unique: true, lowerBound: 0, upperBound: -1) (changeable: true, volatile: false, transient: false, defaultValueLiteral: null, unsettable: false, derived: false) (containment: true, resolveProxies: true) // org.eclipse.emf.ecore.impl.EReferenceImpl@568e0556 (name: components) (ordered: false, unique: true, lowerBound: 0, upperBound: -1) (changeable: true, volatile: false, transient: false, defaultValueLiteral: null, unsettable: false, derived: false) (containment: true, resolveProxies: true)
/** /**
* Creates a new {@link CompositeComponent} instance and adds it to the containing type. * Creates a new {@link CompositeComponent} instance and adds it to the containing type.
......
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