Browse Source

REPORT-70681 fix 去掉调试日志

release/11.0
hades 3 years ago
parent
commit
8799446feb
  1. 32
      designer-realize/src/main/java/com/fr/design/mainframe/alphafine/question/QuestionWindow.java
  2. 4
      designer-realize/src/main/java/com/fr/design/mainframe/alphafine/search/manager/impl/FileSearchManager.java

32
designer-realize/src/main/java/com/fr/design/mainframe/alphafine/question/QuestionWindow.java

@ -3,7 +3,6 @@ package com.fr.design.mainframe.alphafine.question;
import com.fr.design.i18n.Toolkit; import com.fr.design.i18n.Toolkit;
import com.fr.design.mainframe.DesignerContext; import com.fr.design.mainframe.DesignerContext;
import com.fr.design.mainframe.alphafine.AlphaFineHelper; import com.fr.design.mainframe.alphafine.AlphaFineHelper;
import com.fr.log.FineLoggerFactory;
import java.awt.Color; import java.awt.Color;
import java.awt.Dimension; import java.awt.Dimension;
import java.awt.event.MouseAdapter; import java.awt.event.MouseAdapter;
@ -11,7 +10,6 @@ import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionAdapter; import java.awt.event.MouseMotionAdapter;
import java.awt.event.WindowAdapter; import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent; import java.awt.event.WindowEvent;
import java.awt.event.WindowFocusListener;
import javax.swing.JWindow; import javax.swing.JWindow;
/** /**
@ -53,41 +51,11 @@ public class QuestionWindow extends JWindow {
@Override @Override
public void windowActivated(WindowEvent e) { public void windowActivated(WindowEvent e) {
QuestionWindow.getInstance().setVisible(true); QuestionWindow.getInstance().setVisible(true);
FineLoggerFactory.getLogger().error("=====> active");
} }
@Override @Override
public void windowDeactivated(WindowEvent e) { public void windowDeactivated(WindowEvent e) {
QuestionWindow.getInstance().setVisible(false); QuestionWindow.getInstance().setVisible(false);
FineLoggerFactory.getLogger().error("=====> Deactivate");
}
@Override
public void windowOpened(WindowEvent e) {
FineLoggerFactory.getLogger().error("=====> open");
}
@Override
public void windowGainedFocus(WindowEvent e) {
FineLoggerFactory.getLogger().error("===== get focus");
}
@Override
public void windowStateChanged(WindowEvent e) {
FineLoggerFactory.getLogger().error("new: {}", e.getNewState());
FineLoggerFactory.getLogger().error("old: {}", e.getOldState());
}
});
DesignerContext.getDesignerFrame().addWindowFocusListener(new WindowFocusListener() {
@Override
public void windowGainedFocus(WindowEvent e) {
FineLoggerFactory.getLogger().error("get focus");
}
@Override
public void windowLostFocus(WindowEvent e) {
FineLoggerFactory.getLogger().error("lost focus");
} }
}); });
questionPane.setToolTipText(Toolkit.i18nText("Fine-Design_Report_AlphaFine_Learn_More_About")); questionPane.setToolTipText(Toolkit.i18nText("Fine-Design_Report_AlphaFine_Learn_More_About"));

4
designer-realize/src/main/java/com/fr/design/mainframe/alphafine/search/manager/impl/FileSearchManager.java

@ -15,13 +15,11 @@ import com.fr.file.filetree.FileNode;
import com.fr.file.filetree.FileNodes; import com.fr.file.filetree.FileNodes;
import com.fr.general.ComparatorUtils; import com.fr.general.ComparatorUtils;
import com.fr.json.JSONObject; import com.fr.json.JSONObject;
import com.fr.log.FineLoggerFactory;
import com.fr.rpc.ExceptionHandler; import com.fr.rpc.ExceptionHandler;
import com.fr.rpc.RPCInvokerExceptionInfo; import com.fr.rpc.RPCInvokerExceptionInfo;
import com.fr.stable.StringUtils; import com.fr.stable.StringUtils;
import com.fr.stable.project.ProjectConstants; import com.fr.stable.project.ProjectConstants;
import com.fr.workspace.WorkContext; import com.fr.workspace.WorkContext;
import java.util.Arrays;
/** /**
@ -74,8 +72,6 @@ public class FileSearchManager implements AlphaFineSearchProvider {
this.filterModelList = new SearchResult(); this.filterModelList = new SearchResult();
this.lessModelList = new SearchResult(); this.lessModelList = new SearchResult();
this.moreModelList = new SearchResult(); this.moreModelList = new SearchResult();
FineLoggerFactory.getLogger().error("===={}====", searchStr);
FineLoggerFactory.getLogger().error("分词 ==={}===", Arrays.toString(searchText));
for (int j = 0; j < searchText.length; j++) { for (int j = 0; j < searchText.length; j++) {
this.searchText = dealWithSearchText(searchText[j]); this.searchText = dealWithSearchText(searchText[j]);
if (StringUtils.isBlank(this.searchText) || ComparatorUtils.equals(this.searchText, DS_NAME)) { if (StringUtils.isBlank(this.searchText) || ComparatorUtils.equals(this.searchText, DS_NAME)) {

Loading…
Cancel
Save