|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package com.fr.design.jxbrowser; |
|
|
|
|
|
|
|
|
|
import com.fr.concurrent.NamedThreadFactory; |
|
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
|
import com.fr.design.dialog.BasicPane; |
|
|
|
|
import com.fr.design.gui.ibutton.UIButton; |
|
|
|
|
import com.fr.design.gui.itoolbar.UIToolbar; |
|
|
|
@ -99,17 +100,17 @@ public class JxUIPane<T> extends BasicPane {
|
|
|
|
|
*/ |
|
|
|
|
private void initDebugIfNeeded() { |
|
|
|
|
if (DesignerEnvManager.getEnvManager().isOpenDebug()) { |
|
|
|
|
UIToolbar toolbar = new UIToolbar(); |
|
|
|
|
add(toolbar, BorderLayout.NORTH); |
|
|
|
|
UIButton openDebugButton = new UIButton(Toolkit.i18nText("Fine-Design_Basic_Open_Debug_Window")); |
|
|
|
|
openDebugButton.addActionListener(e -> browser.devTools().show()); |
|
|
|
|
toolbar.add(openDebugButton); |
|
|
|
|
UIButton reloadButton = new UIButton(Toolkit.i18nText("Fine-Design_Basic_Reload")); |
|
|
|
|
reloadButton.addActionListener(e -> browser.navigation().reloadIgnoringCache()); |
|
|
|
|
toolbar.add(reloadButton); |
|
|
|
|
UIButton closeButton = new UIButton(Toolkit.i18nText("Fine-Design_Basic_Close_Window")); |
|
|
|
|
closeButton.addActionListener(e -> SwingUtilities.getWindowAncestor(JxUIPane.this).setVisible(false)); |
|
|
|
|
toolbar.add(closeButton); |
|
|
|
|
UIToolbar toolbar = new UIToolbar(); |
|
|
|
|
add(toolbar, BorderLayout.NORTH); |
|
|
|
|
UIButton openDebugButton = new UIButton(Toolkit.i18nText("Fine-Design_Basic_Open_Debug_Window")); |
|
|
|
|
openDebugButton.addActionListener(e -> browser.devTools().show()); |
|
|
|
|
toolbar.add(openDebugButton); |
|
|
|
|
UIButton reloadButton = new UIButton(Toolkit.i18nText("Fine-Design_Basic_Reload")); |
|
|
|
|
reloadButton.addActionListener(e -> browser.navigation().reloadIgnoringCache()); |
|
|
|
|
toolbar.add(reloadButton); |
|
|
|
|
UIButton closeButton = new UIButton(Toolkit.i18nText("Fine-Design_Basic_Close_Window")); |
|
|
|
|
closeButton.addActionListener(e -> SwingUtilities.getWindowAncestor(JxUIPane.this).setVisible(false)); |
|
|
|
|
toolbar.add(closeButton); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|