Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnsgar Radermacher2013-10-28 16:26:50 +0000
committerAnsgar Radermacher2013-11-04 13:16:28 +0000
commit17519ec87b906445479c62895977a591df3e1f18 (patch)
treeaf94b6566746e48381c4be87086a4e540f0e8dac /extraplugins
parent6abbd79ff43bf91bb7683983df91a8bd054d3840 (diff)
downloadorg.eclipse.papyrus-17519ec87b906445479c62895977a591df3e1f18.tar.gz
org.eclipse.papyrus-17519ec87b906445479c62895977a591df3e1f18.tar.xz
org.eclipse.papyrus-17519ec87b906445479c62895977a591df3e1f18.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