Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnsgar Radermacher2013-10-28 16:26:50 +0000
committerAnsgar Radermacher2013-10-28 16:26:50 +0000
commit1e941fe5147264d0e25e1802b568e5de5cf670a8 (patch)
tree180be713a0a6863ccd7d059ab3545fb600c9e844 /extraplugins
parent06b02382ee6693b794162d9877c9b7d84b8e010b (diff)
downloadorg.eclipse.papyrus-1e941fe5147264d0e25e1802b568e5de5cf670a8.tar.gz
org.eclipse.papyrus-1e941fe5147264d0e25e1802b568e5de5cf670a8.tar.xz
org.eclipse.papyrus-1e941fe5147264d0e25e1802b568e5de5cf670a8.zip
- Use StereotypeUtil instead of StUtils (amended fix in context of bug 399864: The C/C++ view supports editing of behavior)
Diffstat (limited to 'extraplugins')
-rw-r--r--extraplugins/codegen/org.eclipse.papyrus.views.cpp/src/org/eclipse/papyrus/views/panels/CppBehaviorPanel.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/extraplugins/codegen/org.eclipse.papyrus.views.cpp/src/org/eclipse/papyrus/views/panels/CppBehaviorPanel.java b/extraplugins/codegen/org.eclipse.papyrus.views.cpp/src/org/eclipse/papyrus/views/panels/CppBehaviorPanel.java
index fb9bfd09d97..ef7b9840640 100644
--- a/extraplugins/codegen/org.eclipse.papyrus.views.cpp/src/org/eclipse/papyrus/views/panels/CppBehaviorPanel.java
+++ b/extraplugins/codegen/org.eclipse.papyrus.views.cpp/src/org/eclipse/papyrus/views/panels/CppBehaviorPanel.java
@@ -16,7 +16,7 @@ import org.eclipse.jface.text.IDocument;
import org.eclipse.papyrus.C_Cpp.Virtual;
import org.eclipse.papyrus.acceleo.AcceleoDriver;
import org.eclipse.papyrus.acceleo.AcceleoException;
-import org.eclipse.papyrus.cpp.profile.StUtils;
+import org.eclipse.papyrus.uml.tools.utils.StereotypeUtil;
import org.eclipse.papyrus.views.cpp.CommandSupport;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
@@ -271,7 +271,7 @@ public class CppBehaviorPanel extends CppAbstractPanel {
if(selectedEOwner instanceof Class) {
if(selectedBehavior.isAbstract()) {
- if(!StUtils.isApplied(selectedBehavior, Virtual.class)) {
+ if(!StereotypeUtil.isApplied(selectedBehavior, Virtual.class)) {
return false;
}
}
@@ -280,7 +280,7 @@ public class CppBehaviorPanel extends CppAbstractPanel {
if(!selectedBehavior.isAbstract()) {
return false;
}
- if(StUtils.isApplied(selectedBehavior, Virtual.class)) {
+ if(StereotypeUtil.isApplied(selectedBehavior, Virtual.class)) {
return false;
}
}
@@ -301,7 +301,7 @@ public class CppBehaviorPanel extends CppAbstractPanel {
if(selectedEOwner instanceof Class) {
// toggle Stereotypes pure virtual if element is abstract
if(selectedBehavior.isAbstract()) {
- if(!StUtils.isApplied(selectedBehavior, Virtual.class)) {
+ if(!StereotypeUtil.isApplied(selectedBehavior, Virtual.class)) {
// selectedOperation.toggleStereotype("VirtualPure", true);
// selectedOperation.toggleStereotype("Virtual", false);
} else {
@@ -311,7 +311,7 @@ public class CppBehaviorPanel extends CppAbstractPanel {
// if element is abstract and has VirtualPure, set to Virtual only
if(!selectedBehavior.isAbstract()) {
- if(StUtils.isApplied(selectedBehavior, Virtual.class)) {
+ if(StereotypeUtil.isApplied(selectedBehavior, Virtual.class)) {
// selectedOperation.toggleStereotype("VirtualPure", false);
// selectedOperation.toggleStereotype("Virtual", true);
} else {

Back to the top