Browse Source

去掉功能点 换种方式

master
XiaXiang 7 years ago
parent
commit
a42340b986
  1. 12
      designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineDialog.java
  2. 3
      designer_base/src/com/fr/design/actions/help/alphafine/AlphaFineConfigManager.java
  3. 2
      designer_base/src/com/fr/design/mainframe/toolbar/ToolBarMenuDock.java

12
designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineDialog.java

@ -49,8 +49,8 @@ import java.awt.image.BufferedImage;
import java.io.IOException; import java.io.IOException;
import java.net.URL; import java.net.URL;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.Calendar; import java.util.*;
import java.util.HashMap; import java.util.Timer;
import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutionException;
/** /**
@ -680,8 +680,16 @@ public class AlphaFineDialog extends UIDialog {
searchTextField.setText(null); searchTextField.setText(null);
removeSearchResult(); removeSearchResult();
} }
} else if (keyCode == KeyEvent.VK_SHIFT) {
new Timer().schedule(new TimerTask() {
@Override
public void run() {
doSearch(searchTextField.getText());
}
}, 50);
} else { } else {
doSearch(searchTextField.getText()); doSearch(searchTextField.getText());
} }
} }
}); });

3
designer_base/src/com/fr/design/actions/help/alphafine/AlphaFineConfigManager.java

@ -202,11 +202,8 @@ public class AlphaFineConfigManager implements XMLable {
} }
public boolean isEnabled() { public boolean isEnabled() {
if (VT4FR.isLicAvailable(FRCoreContext.getBytes()) && VT4FR.ALPHA_FINE.support()) {
return isEnabled; return isEnabled;
} }
return false;
}
public void setEnabled(boolean isEnabled) { public void setEnabled(boolean isEnabled) {
this.isEnabled = isEnabled; this.isEnabled = isEnabled;

2
designer_base/src/com/fr/design/mainframe/toolbar/ToolBarMenuDock.java

@ -381,10 +381,8 @@ public abstract class ToolBarMenuDock {
// shortCuts.add(new ForumAction()); // shortCuts.add(new ForumAction());
} }
shortCuts.add(SeparatorDef.DEFAULT); shortCuts.add(SeparatorDef.DEFAULT);
if (VT4FR.isLicAvailable(FRCoreContext.getBytes()) && VT4FR.ALPHA_FINE.support()) {
shortCuts.add(new AlphaFineAction()); shortCuts.add(new AlphaFineAction());
shortCuts.add(SeparatorDef.DEFAULT); shortCuts.add(SeparatorDef.DEFAULT);
}
shortCuts.add(new AboutAction()); shortCuts.add(new AboutAction());
return shortCuts.toArray(new ShortCut[shortCuts.size()]); return shortCuts.toArray(new ShortCut[shortCuts.size()]);
} }

Loading…
Cancel
Save