Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcletavernie2012-10-15 12:26:07 -0400
committercletavernie2012-10-15 12:26:07 -0400
commit0deece6c1f05e15594d8b111ad8d5ac12e1004ad (patch)
tree60a983e11a4284632422dede675b183846173e03 /plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties
parent3da13f092b20cf10f445dad148945c879057a7f5 (diff)
downloadorg.eclipse.papyrus-0deece6c1f05e15594d8b111ad8d5ac12e1004ad.tar.gz
org.eclipse.papyrus-0deece6c1f05e15594d8b111ad8d5ac12e1004ad.tar.xz
org.eclipse.papyrus-0deece6c1f05e15594d8b111ad8d5ac12e1004ad.zip
391945: [Refactoring] Part 2: Refactoring on Kepler (0.10)
https://bugs.eclipse.org/bugs/show_bug.cgi?id=391945
Diffstat (limited to 'plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties')
-rw-r--r--plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/src/org/eclipse/papyrus/infra/gmfdiag/css/properties/databinding/RemoveAllCSSStyleSheetValueCommand.java4
-rw-r--r--plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/src/org/eclipse/papyrus/infra/gmfdiag/css/properties/databinding/RemoveCSSStyleSheetCommand.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/src/org/eclipse/papyrus/infra/gmfdiag/css/properties/databinding/RemoveAllCSSStyleSheetValueCommand.java b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/src/org/eclipse/papyrus/infra/gmfdiag/css/properties/databinding/RemoveAllCSSStyleSheetValueCommand.java
index b59bc184e17..da75e2676c4 100644
--- a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/src/org/eclipse/papyrus/infra/gmfdiag/css/properties/databinding/RemoveAllCSSStyleSheetValueCommand.java
+++ b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/src/org/eclipse/papyrus/infra/gmfdiag/css/properties/databinding/RemoveAllCSSStyleSheetValueCommand.java
@@ -20,7 +20,7 @@ import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.edit.domain.EditingDomain;
import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.core.utils.PapyrusEcoreUtils;
+import org.eclipse.papyrus.infra.emf.utils.EMFHelper;
import org.eclipse.papyrus.infra.gmfdiag.properties.databinding.custom.RemoveAllCustomStyleListValueCommand;
@@ -37,7 +37,7 @@ public class RemoveAllCSSStyleSheetValueCommand extends RemoveAllCustomStyleList
for(Object value : values) {
if(value instanceof EObject) {
EObject styleSheet = (EObject)value;
- Collection<EStructuralFeature.Setting> references = PapyrusEcoreUtils.getUsages(styleSheet);
+ Collection<EStructuralFeature.Setting> references = EMFHelper.getUsages(styleSheet);
//We're removing the last reference to this styleSheet (Only if the stylesheet is contained
//in the same resource as the view referencing it... We don't modify external models)
if(references.size() == 1 && styleSheet.eResource() == view.eResource()) {
diff --git a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/src/org/eclipse/papyrus/infra/gmfdiag/css/properties/databinding/RemoveCSSStyleSheetCommand.java b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/src/org/eclipse/papyrus/infra/gmfdiag/css/properties/databinding/RemoveCSSStyleSheetCommand.java
index f154c00047d..d5ad6e46b2b 100644
--- a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/src/org/eclipse/papyrus/infra/gmfdiag/css/properties/databinding/RemoveCSSStyleSheetCommand.java
+++ b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/src/org/eclipse/papyrus/infra/gmfdiag/css/properties/databinding/RemoveCSSStyleSheetCommand.java
@@ -19,7 +19,7 @@ import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.edit.domain.EditingDomain;
import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.core.utils.PapyrusEcoreUtils;
+import org.eclipse.papyrus.infra.emf.utils.EMFHelper;
import org.eclipse.papyrus.infra.gmfdiag.properties.databinding.custom.RemoveCustomStyleListValueCommand;
@@ -35,7 +35,7 @@ public class RemoveCSSStyleSheetCommand extends RemoveCustomStyleListValueComman
public void execute() {
if(value instanceof EObject) {
EObject styleSheet = (EObject)value;
- Collection<EStructuralFeature.Setting> references = PapyrusEcoreUtils.getUsages(styleSheet);
+ Collection<EStructuralFeature.Setting> references = EMFHelper.getUsages(styleSheet);
//We're removing the last reference to this styleSheet (Only if the stylesheet is contained
//in the same resource as the view referencing it... We don't modify external models)
if(references.size() == 1 && styleSheet.eResource() == view.eResource()) {

Back to the top