XiaXiang 7 years ago
parent
commit
8e3cfd5fb7
  1. 3
      designer/src/com/fr/design/mainframe/alphafine/AlphaFineHelper.java
  2. 2
      designer_base/src/com/fr/design/mainframe/DesignerFrame.java

3
designer/src/com/fr/design/mainframe/alphafine/AlphaFineHelper.java

@ -26,6 +26,9 @@ public class AlphaFineHelper {
* 弹出alphafine搜索面板 * 弹出alphafine搜索面板
*/ */
public static void showAlphaFineDialog(boolean forceOpen) { public static void showAlphaFineDialog(boolean forceOpen) {
if (!AlphaFineConfigManager.isALPHALicAvailable()) {
return;
}
if (alphaFineDialog == null) { if (alphaFineDialog == null) {
alphaFineDialog = new AlphaFineDialog(DesignerContext.getDesignerFrame(), forceOpen); alphaFineDialog = new AlphaFineDialog(DesignerContext.getDesignerFrame(), forceOpen);
alphaFineDialog.setVisible(true); alphaFineDialog.setVisible(true);

2
designer_base/src/com/fr/design/mainframe/DesignerFrame.java

@ -339,7 +339,7 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
processor = new DefaultTitlePlace(); processor = new DefaultTitlePlace();
} }
processor.hold(northEastPane, LogMessageBar.getInstance(), ad.createBBSLoginPane()); processor.hold(northEastPane, LogMessageBar.getInstance(), ad.createBBSLoginPane());
if (AlphaFineConfigManager.isALPHALicAvailable() && DesignerEnvManager.getEnvManager().getAlphaFineConfigManager().isEnabled()) { if (DesignerEnvManager.getEnvManager().getAlphaFineConfigManager().isEnabled()) {
northEastPane.add(ad.createAlphaFinePane(), BorderLayout.CENTER); northEastPane.add(ad.createAlphaFinePane(), BorderLayout.CENTER);
} }
} }

Loading…
Cancel
Save