Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenoit Maggi2018-06-18 08:47:24 -0400
committerQuentin Le Menez2018-06-19 04:56:03 -0400
commit6eb8b72eb383542ced307cff0c4146f58f160204 (patch)
treef0987d12684446be41c8e2bb68464df57bfa0758 /plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse
parent8d36439e606bd1e7fbe2a81cf1a8ea93bd8fb378 (diff)
downloadorg.eclipse.papyrus-6eb8b72eb383542ced307cff0c4146f58f160204.tar.gz
org.eclipse.papyrus-6eb8b72eb383542ced307cff0c4146f58f160204.tar.xz
org.eclipse.papyrus-6eb8b72eb383542ced307cff0c4146f58f160204.zip
Bug 536007 - [Quality] Remove deprecated class
PasteWithModelCommandHandler - remove 4 handlers that were deprecated more than 3 years ago (~luna) - use infra version of SemanticAdapter (instead of deprecated UML) - use preciseX() instead of deprecated preciseX - use non deprecated constructor for PortPositionLocator Change-Id: Ie61c3a61d2e83711cfc19205dadf0e11b4f4fcf9 Signed-off-by: Benoit Maggi <benoit.maggi@cea.fr>
Diffstat (limited to 'plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse')
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/figure/node/PapyrusAnchorableWrappingLabel.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/figure/node/PapyrusAnchorableWrappingLabel.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/figure/node/PapyrusAnchorableWrappingLabel.java
index 2c8df9ac710..1f1f113f4ce 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/figure/node/PapyrusAnchorableWrappingLabel.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/figure/node/PapyrusAnchorableWrappingLabel.java
@@ -49,7 +49,7 @@ public class PapyrusAnchorableWrappingLabel extends PapyrusWrappingLabel impleme
* @see org.eclipse.gmf.runtime.draw2d.ui.figures.IAnchorableFigure#getConnectionAnchor(java.lang.String)
* Copied from @see org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure#szAnchor()
*/
- static public final String szAnchor = ""; //$NON-NLS-1$
+ public static final String szAnchor = ""; //$NON-NLS-1$
/*
* (non-Javadoc)
@@ -186,7 +186,7 @@ public class PapyrusAnchorableWrappingLabel extends PapyrusWrappingLabel impleme
* Copied from @see org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure#isDefaultAnchorArea()
*/
protected boolean isDefaultAnchorArea(PrecisionPoint p) {
- return p.preciseX >= getSlidableAnchorArea() / 2 && p.preciseX <= 1 - getSlidableAnchorArea() / 2 && p.preciseY >= getSlidableAnchorArea() / 2 && p.preciseY <= 1 - getSlidableAnchorArea() / 2;
+ return p.preciseX() >= getSlidableAnchorArea() / 2 && p.preciseX() <= 1 - getSlidableAnchorArea() / 2 && p.preciseY() >= getSlidableAnchorArea() / 2 && p.preciseY() <= 1 - getSlidableAnchorArea() / 2;
}
/*

Back to the top