From 90622e106c5d780463bcec2cf578deda2795d8c4 Mon Sep 17 00:00:00 2001 From: ptessier Date: Tue, 31 Jul 2012 09:36:29 +0000 Subject: 330176: [All Diagrams] Papyrus shall enable to display stereotype properties in a dedicated compartment. https://bugs.eclipse.org/bugs/show_bug.cgi?id=330176 --- .../xtext/AppliedStereotypePropertyEditorUtil.java | 3 +++ .../xtext/generator/AppliedStereotypePropertyGenerator.java | 11 ----------- 2 files changed, 3 insertions(+), 11 deletions(-) delete mode 100644 plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/generator/AppliedStereotypePropertyGenerator.java diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/AppliedStereotypePropertyEditorUtil.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/AppliedStereotypePropertyEditorUtil.java index f936f2f054a..90f42a38fdd 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/AppliedStereotypePropertyEditorUtil.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/AppliedStereotypePropertyEditorUtil.java @@ -82,6 +82,9 @@ public class AppliedStereotypePropertyEditorUtil { if(("Integer".equals(property.getType().getName()))){ return StereotypeUtil.displayPropertyValue(stereotype, property, umlElement, ""); } + if(("Boolean".equals(property.getType().getName()))){ + return StereotypeUtil.displayPropertyValue(stereotype, property, umlElement, ""); + } return result; } diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/generator/AppliedStereotypePropertyGenerator.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/generator/AppliedStereotypePropertyGenerator.java deleted file mode 100644 index bacf9e30a4f..00000000000 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/generator/AppliedStereotypePropertyGenerator.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.generator; - -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.xtext.generator.IFileSystemAccess; -import org.eclipse.xtext.generator.IGenerator; - -@SuppressWarnings("all") -public class AppliedStereotypePropertyGenerator implements IGenerator { - public void doGenerate(final Resource resource, final IFileSystemAccess fsa) { - } -} -- cgit v1.2.3