Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorCamille Letavernier2014-02-17 13:46:39 +0000
committerCamille Letavernier2014-02-17 13:46:39 +0000
commitff14cb02e3c00e092cb76de5916ec1272bd0e579 (patch)
treea4e730f322494861fe8f06d43c6b3d42edf74df0 /tests
parenta475d91c8963bceabb4313059167406c5dd685d1 (diff)
downloadorg.eclipse.papyrus-ff14cb02e3c00e092cb76de5916ec1272bd0e579.tar.gz
org.eclipse.papyrus-ff14cb02e3c00e092cb76de5916ec1272bd0e579.tar.xz
org.eclipse.papyrus-ff14cb02e3c00e092cb76de5916ec1272bd0e579.zip
417396: [CSS] The CSS Engine shall support label visibility & mask
https://bugs.eclipse.org/bugs/show_bug.cgi?id=417396 - Fix regressions: the Slots compartment is now visible by default in SysML BDD
Diffstat (limited to 'tests')
-rw-r--r--tests/junit/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests/src/org/eclipse/papyrus/sysml/diagram/blockdefinition/tests/utils/TestPrepareUtils.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/junit/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests/src/org/eclipse/papyrus/sysml/diagram/blockdefinition/tests/utils/TestPrepareUtils.java b/tests/junit/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests/src/org/eclipse/papyrus/sysml/diagram/blockdefinition/tests/utils/TestPrepareUtils.java
index eeb2ddbdaa8..09cccf1cd39 100644
--- a/tests/junit/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests/src/org/eclipse/papyrus/sysml/diagram/blockdefinition/tests/utils/TestPrepareUtils.java
+++ b/tests/junit/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests/src/org/eclipse/papyrus/sysml/diagram/blockdefinition/tests/utils/TestPrepareUtils.java
@@ -7,7 +7,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- *
+ *
* CEA LIST - Initial API and implementation
*
*****************************************************************************/
@@ -43,6 +43,7 @@ import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
import org.eclipse.gmf.runtime.notation.Node;
import org.eclipse.gmf.runtime.notation.NotationPackage;
import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.helper.DiagramHelper;
import org.eclipse.papyrus.infra.services.edit.commands.ConfigureFeatureCommandFactory;
import org.eclipse.papyrus.infra.services.edit.commands.IConfigureCommandFactory;
import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
@@ -61,6 +62,9 @@ public class TestPrepareUtils {
SetCommand changeVisibilityCommand = new SetCommand(getTransactionalEditingDomain(), view, NotationPackage.eINSTANCE.getView_Visible(), !view.isVisible());
//getCommandStack().execute(new EMFtoGEFCommandWrapper(changeVisibilityCommand));
getTransactionalEditingDomain().getCommandStack().execute(changeVisibilityCommand);
+
+ //Workaround for CSS refresh issue (Bug 416737: [CSS] Setters of the CSS runtime notation API don't take into consideration CSS values)
+ DiagramHelper.refresh(EditorUtils.getDiagramEditPart(), true);
}
public static EObject createElement(IElementType elementType, View containerView) throws Exception {
@@ -123,7 +127,7 @@ public class TestPrepareUtils {
EReference[] erefs = new EReference[]{ NotationPackage.eINSTANCE.getView_Element() };
@SuppressWarnings("unchecked")
- Collection<View> views = (Collection<View>)EMFCoreUtil.getReferencers(newObject, erefs);
+ Collection<View> views = EMFCoreUtil.getReferencers(newObject, erefs);
return (View)views.toArray()[0];
}
@@ -143,7 +147,7 @@ public class TestPrepareUtils {
EReference[] erefs = new EReference[]{ NotationPackage.eINSTANCE.getView_Element() };
@SuppressWarnings("unchecked")
- Collection<View> views = (Collection<View>)EMFCoreUtil.getReferencers(newView, erefs);
+ Collection<View> views = EMFCoreUtil.getReferencers(newView, erefs);
return (View)views.toArray()[0];
@@ -190,7 +194,7 @@ public class TestPrepareUtils {
EReference[] erefs = new EReference[]{ NotationPackage.eINSTANCE.getView_Element() };
@SuppressWarnings("unchecked")
- Collection<View> views = (Collection<View>)EMFCoreUtil.getReferencers(eObject, erefs);
+ Collection<View> views = EMFCoreUtil.getReferencers(eObject, erefs);
return (View)views.toArray()[0];
}

Back to the top