diff options
author | Céline Janssens | 2015-07-10 08:57:05 +0000 |
---|---|---|
committer | vincent lorenzo | 2018-09-20 14:45:57 +0000 |
commit | a907519e5cc2cad72eae532a1424a13762a2d201 (patch) | |
tree | 8002af4546020bfbcf269925b0c21a0da0df174b /plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus | |
parent | e3c63a073b200296255bf5f303bd6668f60bb265 (diff) | |
download | org.eclipse.papyrus-a907519e5cc2cad72eae532a1424a13762a2d201.tar.gz org.eclipse.papyrus-a907519e5cc2cad72eae532a1424a13762a2d201.tar.xz org.eclipse.papyrus-a907519e5cc2cad72eae532a1424a13762a2d201.zip |
Bug 472342: [Stereotype Display] Provide JUnit Tests for Link
https://bugs.eclipse.org/bugs/show_bug.cgi?id=472342
- Test Apply and unapply stereotype for Link
Change-Id: If807a09fac08c008b34a0d4dc48a55a16ffb8918
Signed-off-by: Céline Janssens <Celine.Janssens@all4tec.net>
Signed-off-by: Vincent Lorenzo <vincent.lorenzo@cea.fr>
Diffstat (limited to 'plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus')
2 files changed, 18 insertions, 16 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/figure/OperationFigure.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/figure/OperationFigure.java index 58e0e540259..9349cbc34a4 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/figure/OperationFigure.java +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/figure/OperationFigure.java @@ -1,6 +1,6 @@ /***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * + * Copyright (c) 2016, 2018 CEA LIST and others. + * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 * which accompanies this distribution, and is available at @@ -10,17 +10,18 @@ * * Contributors: * CEA LIST - Initial API and implementation - * + * Celine Janssens (All4Tec) celine.janssens@all4tec.net - Bug 472342 *****************************************************************************/ package org.eclipse.papyrus.uml.diagram.clazz.custom.figure; -public class OperationFigure extends org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel { +import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.PapyrusWrappingLabel; - static final org.eclipse.swt.graphics.Font THIS_FONT = new org.eclipse.swt.graphics.Font(org.eclipse.swt.widgets.Display.getCurrent(), "Arial", 10, org.eclipse.swt.SWT.NORMAL); +public class OperationFigure extends PapyrusWrappingLabel { - public OperationFigure() { - this.setText(""); + static final org.eclipse.swt.graphics.Font THIS_FONT = new org.eclipse.swt.graphics.Font(org.eclipse.swt.widgets.Display.getCurrent(), "Arial", 10, org.eclipse.swt.SWT.NORMAL); //$NON-NLS-1$ - this.setFont(THIS_FONT); + public OperationFigure() { + setText(""); //$NON-NLS-1$ + setFont(THIS_FONT); } } diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/figure/PropertyFigure.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/figure/PropertyFigure.java index 7fe945da976..60ae964d397 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/figure/PropertyFigure.java +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/figure/PropertyFigure.java @@ -1,6 +1,6 @@ /***************************************************************************** - * Copyright (c) 2016 CEA LIST and others. - * + * Copyright (c) 2016, 2018 CEA LIST and others. + * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 * which accompanies this distribution, and is available at @@ -10,18 +10,19 @@ * * Contributors: * CEA LIST - Initial API and implementation - * + * Celine Janssens (All4Tec) celine.janssens@all4tec.net - Bug 472342 *****************************************************************************/ package org.eclipse.papyrus.uml.diagram.clazz.custom.figure; -public class PropertyFigure extends org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel { +import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.PapyrusWrappingLabel; - static final org.eclipse.swt.graphics.Font THIS_FONT = new org.eclipse.swt.graphics.Font(org.eclipse.swt.widgets.Display.getCurrent(), "Arial", 10, org.eclipse.swt.SWT.NORMAL); +public class PropertyFigure extends PapyrusWrappingLabel { - public PropertyFigure() { - this.setText(""); + static final org.eclipse.swt.graphics.Font THIS_FONT = new org.eclipse.swt.graphics.Font(org.eclipse.swt.widgets.Display.getCurrent(), "Arial", 10, org.eclipse.swt.SWT.NORMAL); //$NON-NLS-1$ - this.setFont(THIS_FONT); + public PropertyFigure() { + setText(""); //$NON-NLS-1$ + setFont(THIS_FONT); } |