فهرست منبع

allow suppression of eobjects

Andreas Muelder 8 سال پیش
والد
کامیت
8596c14e94

+ 6 - 7
plugins/org.yakindu.base.types/src/org/yakindu/base/types/resource/TypedResourceDescriptionStrategy.java

@@ -39,17 +39,12 @@ public  class TypedResourceDescriptionStrategy extends DefaultResourceDescriptio
 	 * This flag indicates the if the type of a TypedElelemnt is complex or not
 	 */
 	public static final String HAS_COMPLEX_TYPE = "has_complex_type";
-
 	
-	public TypedResourceDescriptionStrategy() {
-		super();
-	}
-
-
 	public boolean createEObjectDescriptions(EObject eObject, IAcceptor<IEObjectDescription> acceptor) {
 		if (getQualifiedNameProvider() == null)
 			return false;
-		
+		if(!shouldCreateDescription(eObject))
+			return false;
 		try {
 			QualifiedName qualifiedName = getQualifiedNameProvider().getFullyQualifiedName(eObject);
 			if (qualifiedName != null) {
@@ -62,6 +57,10 @@ public  class TypedResourceDescriptionStrategy extends DefaultResourceDescriptio
 		}
 		return true;
 	}
+	
+	protected boolean shouldCreateDescription(EObject object){
+		return true;
+	}
 
 
 	protected void defineUserData(EObject eObject, Map<String, String> userData) {