From e9af3de03e5d68ae64bbead5a68970b208c7a03b Mon Sep 17 00:00:00 2001 From: XiaXiang Date: Wed, 6 Sep 2017 10:18:28 +0800 Subject: [PATCH] rt --- .../alphafine/component/AlphaFineDialog.java | 12 ++++++------ .../search/manager/PluginSearchManager.java | 1 - 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineDialog.java b/designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineDialog.java index bd8b27c6e5..fa8f442349 100644 --- a/designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineDialog.java +++ b/designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineDialog.java @@ -15,7 +15,6 @@ import com.fr.design.mainframe.alphafine.cell.model.FileModel; import com.fr.design.mainframe.alphafine.cell.model.MoreModel; import com.fr.design.mainframe.alphafine.cell.model.PluginModel; import com.fr.design.mainframe.alphafine.cell.render.ContentCellRender; -import com.fr.design.mainframe.alphafine.listener.DocumentAdapter; import com.fr.design.mainframe.alphafine.model.SearchResult; import com.fr.design.mainframe.alphafine.preview.DocumentPreviewPane; import com.fr.design.mainframe.alphafine.preview.FilePreviewPane; @@ -40,7 +39,6 @@ import com.fr.stable.project.ProjectConstants; import javax.imageio.ImageIO; import javax.swing.*; -import javax.swing.event.DocumentEvent; import javax.swing.event.ListSelectionEvent; import javax.swing.event.ListSelectionListener; import java.awt.*; @@ -49,8 +47,10 @@ import java.awt.image.BufferedImage; import java.io.IOException; import java.net.URL; import java.text.SimpleDateFormat; -import java.util.*; +import java.util.Calendar; +import java.util.HashMap; import java.util.Timer; +import java.util.TimerTask; import java.util.concurrent.ExecutionException; /** @@ -267,7 +267,7 @@ public class AlphaFineDialog extends UIDialog { searchResultPane = null; } setSize(AlphaFineConstants.FIELD_SIZE); - refreshContainer(); + refreshContainer(); } /** @@ -670,7 +670,8 @@ public class AlphaFineDialog extends UIDialog { } @Override - public void keyReleased(KeyEvent e) {int keyCode = e.getKeyCode(); + public void keyReleased(KeyEvent e) { + int keyCode = e.getKeyCode(); if (keyCode == KeyEvent.VK_ESCAPE) { if (StringUtils.isBlank(searchTextField.getText()) || ComparatorUtils.equals(searchTextField.getText(), searchTextField.getPlaceHolder())) { AlphaFineDialog.this.setVisible(false); @@ -695,7 +696,6 @@ public class AlphaFineDialog extends UIDialog { }); - } /** diff --git a/designer/src/com/fr/design/mainframe/alphafine/search/manager/PluginSearchManager.java b/designer/src/com/fr/design/mainframe/alphafine/search/manager/PluginSearchManager.java index 71fb589ea2..25efb5f6bd 100644 --- a/designer/src/com/fr/design/mainframe/alphafine/search/manager/PluginSearchManager.java +++ b/designer/src/com/fr/design/mainframe/alphafine/search/manager/PluginSearchManager.java @@ -18,7 +18,6 @@ import com.fr.stable.StringUtils; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; -import java.util.HashMap; /** * Created by XiaXiang on 2017/3/27.