Don't use deprecated FontMetrics.getAverageCharWidth

The new method is getAverageCharacterWidth

Change-Id: Ic6746023a2292a214c6c7583a1b0cca5eb3cd6ab
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
diff --git a/ant/org.eclipse.ant.ui/Remote Ant Support/org/eclipse/ant/internal/ui/antsupport/inputhandler/SWTInputHandler.java b/ant/org.eclipse.ant.ui/Remote Ant Support/org/eclipse/ant/internal/ui/antsupport/inputhandler/SWTInputHandler.java
index c6998fe..1a5de23 100644
--- a/ant/org.eclipse.ant.ui/Remote Ant Support/org/eclipse/ant/internal/ui/antsupport/inputhandler/SWTInputHandler.java
+++ b/ant/org.eclipse.ant.ui/Remote Ant Support/org/eclipse/ant/internal/ui/antsupport/inputhandler/SWTInputHandler.java
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2004, 2013 IBM Corporation and others.
+ * Copyright (c) 2004, 2019 IBM Corporation and others.
  *
  * This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License 2.0
@@ -246,7 +246,7 @@
 
 	private int convertHorizontalDLUsToPixels(int dlus) {
 		// round to the nearest pixel
-		return (fFontMetrics.getAverageCharWidth() * dlus + 4 / 2) / 4;
+		return (int) ((fFontMetrics.getAverageCharacterWidth() * dlus + 4 / 2) / 4);
 	}
 
 	protected void initializeDialogUnits(Control control) {