Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/sysml/org.eclipse.papyrus.sysml.service.types/src/org/eclipse/papyrus/sysml/service/types/matcher/ReferencePropertyMatcher.java')
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml.service.types/src/org/eclipse/papyrus/sysml/service/types/matcher/ReferencePropertyMatcher.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml.service.types/src/org/eclipse/papyrus/sysml/service/types/matcher/ReferencePropertyMatcher.java b/plugins/sysml/org.eclipse.papyrus.sysml.service.types/src/org/eclipse/papyrus/sysml/service/types/matcher/ReferencePropertyMatcher.java
index 03d8a670920..604574d1a6f 100644
--- a/plugins/sysml/org.eclipse.papyrus.sysml.service.types/src/org/eclipse/papyrus/sysml/service/types/matcher/ReferencePropertyMatcher.java
+++ b/plugins/sysml/org.eclipse.papyrus.sysml.service.types/src/org/eclipse/papyrus/sysml/service/types/matcher/ReferencePropertyMatcher.java
@@ -28,15 +28,15 @@ public class ReferencePropertyMatcher implements IElementMatcher {
public boolean matches(EObject eObject) {
boolean isMatch = false;
- if((eObject instanceof Property) && !(eObject instanceof Port)) {
+ if ((eObject instanceof Property) && !(eObject instanceof Port)) {
+
+ Property element = (Property) eObject;
- Property element = (Property)eObject;
-
// The property is not a composition and has a type
if ((element.getType() != null) && (element.getAggregation() != AggregationKind.COMPOSITE_LITERAL)) {
-
+
// Moreover its type has to be a Block
- if(UMLUtil.getStereotypeApplication(element.getType(), Block.class) != null) {
+ if (UMLUtil.getStereotypeApplication(element.getType(), Block.class) != null) {
isMatch = true;
}
}

Back to the top