From 5446012345e1ab735c6dd7a25b6374cf7fd8fde8 Mon Sep 17 00:00:00 2001
From: Alexander Diewald <diewald@fortiss.org>
Date: Wed, 15 Nov 2017 09:45:35 +0000
Subject: [PATCH] - YELLOW - 2 additional static imports. - No static import of
 ZoomUtils.screenToInternalDimension. The method name exists in ZoomUtils and
 ZoomUiUtils. Same naming due to same functionality, use is context-dependent
 (UI/non-UI). refs 2983

---
 .../org/fortiss/tooling/base/ui/utils/ZoomUIUtils.java    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/utils/ZoomUIUtils.java b/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/utils/ZoomUIUtils.java
index 191b76c77..987328754 100644
--- a/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/utils/ZoomUIUtils.java
+++ b/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/utils/ZoomUIUtils.java
@@ -17,6 +17,8 @@ $Id$
 +--------------------------------------------------------------------------*/
 package org.fortiss.tooling.base.ui.utils;
 
+import static java.lang.Math.round;
+import static org.fortiss.tooling.base.ui.utils.SnapToGridUtils.snapToGrid;
 import static org.fortiss.tooling.base.utils.LayoutModelElementFactory.createDimension;
 import static org.fortiss.tooling.base.utils.LayoutModelElementFactory.createPoint;
 
@@ -35,9 +37,8 @@ import org.fortiss.tooling.base.utils.ZoomUtils;
  * @author hummel
  * @author $Author$
  * @version $Rev$
- * @ConQAT.Rating YELLOW Hash: FDBEA15E01470E5D318805D3653A4F3F
+ * @ConQAT.Rating YELLOW Hash: C039A18E383BB6EEF05185DB450142CA
  */
-// TODO (FH): use import static (multiple occurences below)
 public class ZoomUIUtils {
 
 	/** Factor to align zoomed movements to 0.05 steps (==> avail. zoom factors). */
@@ -81,8 +82,7 @@ public class ZoomUIUtils {
 
 		// Adjust to grid (snap).
 		Point reqPoint = request.getMoveDelta();
-		SnapToGridUtils.snapToGrid(reqPoint,
-				(int)Math.round(DefaultLayoutConstants.DEFAULT_GRID_SIZE * zoom));
+		snapToGrid(reqPoint, (int)round(DefaultLayoutConstants.DEFAULT_GRID_SIZE * zoom));
 	}
 
 	/**
-- 
GitLab