From 672b49e1ecfe287ca937166218475f9480777c7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=B8=D1=82=D0=B0=20=D0=91=D0=B5=D0=BB?= =?UTF-8?q?=D1=8F=D0=BD=D0=B8=D0=BD?= Date: Thu, 14 Dec 2023 21:56:31 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9B=D0=B0=D0=B1=D0=BE=D1=80=D0=B0=D1=82?= =?UTF-8?q?=D0=BE=D1=80=D0=BD=D0=B0=D1=8F=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=B0=207?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Tank/src/FormTankConfig.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Tank/src/FormTankConfig.java b/Tank/src/FormTankConfig.java index 8ecce0c..846160d 100644 --- a/Tank/src/FormTankConfig.java +++ b/Tank/src/FormTankConfig.java @@ -231,12 +231,12 @@ public class FormTankConfig { labelAdditionalColor.setTransferHandler( new TransferHandler(){ @Override - public boolean canImport(TransferSupport support) { + public boolean canImport(TransferHandler.TransferSupport support) { return support.isDataFlavorSupported(ColorTransferable.colorDataFlavor); } @Override - public boolean importData(TransferSupport support) { + public boolean importData(TransferHandler.TransferSupport support) { if (canImport(support)) { try { Color color = (Color) support.getTransferable().getTransferData(ColorTransferable.colorDataFlavor); @@ -262,12 +262,12 @@ public class FormTankConfig { labelWheel.setTransferHandler( new TransferHandler(){ @Override - public boolean canImport(TransferSupport support) { + public boolean canImport(TransferHandler.TransferSupport support) { return support.isDataFlavorSupported(WheelTransferable.wheelDrawingDataFlavor); } @Override - public boolean importData(TransferSupport support) { + public boolean importData(TransferHandler.TransferSupport support) { if (canImport(support)) { try { IOrnamentForm wheelDrawing = (IOrnamentForm) support.getTransferable().getTransferData(WheelTransferable.wheelDrawingDataFlavor);