Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptessier2012-03-21 13:41:14 +0000
committerptessier2012-03-21 13:41:14 +0000
commit9eb9c6e6a72205285f4dee96934f47f03b90ab90 (patch)
treebf9208319b1c2cd41e76dc33e63f4c9707f77ee9 /plugins
parente031ccb701f1ff4b4c7232b90277f86d82d7acfb (diff)
downloadorg.eclipse.papyrus-9eb9c6e6a72205285f4dee96934f47f03b90ab90.tar.gz
org.eclipse.papyrus-9eb9c6e6a72205285f4dee96934f47f03b90ab90.tar.xz
org.eclipse.papyrus-9eb9c6e6a72205285f4dee96934f47f03b90ab90.zip
329865: [ALF editor] Papyrus shall provide a specific textual editor for ALF.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=329865
Diffstat (limited to 'plugins')
-rw-r--r--plugins/uml/alf/org.eclipse.papyrus.uml.alf/src/org/eclipse/papyrus/uml/alf/validation/PredefinedBehaviorsAndTypesUtils.java2
-rw-r--r--plugins/uml/alf/org.eclipse.papyrus.uml.alf/src/org/eclipse/papyrus/uml/alf/validation/typing/SignatureFacade.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src/org/eclipse/papyrus/uml/alf/validation/PredefinedBehaviorsAndTypesUtils.java b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src/org/eclipse/papyrus/uml/alf/validation/PredefinedBehaviorsAndTypesUtils.java
index 0ccc5a5001d..f7f08736bc9 100644
--- a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src/org/eclipse/papyrus/uml/alf/validation/PredefinedBehaviorsAndTypesUtils.java
+++ b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src/org/eclipse/papyrus/uml/alf/validation/PredefinedBehaviorsAndTypesUtils.java
@@ -120,7 +120,7 @@ public class PredefinedBehaviorsAndTypesUtils {
for (ElementImport eImport : library.getElementImports()) {
if (eImport.getImportedElement() instanceof Behavior) {
SignatureFacade s = SignatureFacadeFactory.eInstance.createSignatureFacade(eImport) ;
- TypeUtils.predefinedCollectionFunctions.put(eImport.getAlias() == null || eImport.getAlias().isEmpty() ? s.getName() : eImport.getAlias(), s) ;
+ TypeUtils.predefinedCollectionFunctions.put(eImport.getAlias() == null || eImport.getAlias().length()==0 ? s.getName() : eImport.getAlias(), s) ;
}
}
}
diff --git a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src/org/eclipse/papyrus/uml/alf/validation/typing/SignatureFacade.java b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src/org/eclipse/papyrus/uml/alf/validation/typing/SignatureFacade.java
index 39cb468431b..af1c6994aad 100644
--- a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src/org/eclipse/papyrus/uml/alf/validation/typing/SignatureFacade.java
+++ b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src/org/eclipse/papyrus/uml/alf/validation/typing/SignatureFacade.java
@@ -236,7 +236,7 @@ public class SignatureFacade {
List<SignatureFacade> matchingSignatures = new ArrayList<SignatureFacade>() ;
for (SignatureFacade cddMatchingSignature : candidates) {
String compatibility = cddMatchingSignature.isCompatibleWithMe(arguments) ;
- if (compatibility.isEmpty()) {
+ if (compatibility.length()==0) {
matchingSignatures.add(cddMatchingSignature) ;
}
}

Back to the top