|
|
|
@ -24,23 +24,21 @@ import com.fr.design.javascript.jsapi.JSImplUpdateAction;
|
|
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
|
import com.fr.design.mainframe.DesignerContext; |
|
|
|
|
import com.fr.general.IOUtils; |
|
|
|
|
|
|
|
|
|
import com.fr.js.JavaScriptImpl; |
|
|
|
|
|
|
|
|
|
import javax.swing.JPanel; |
|
|
|
|
import javax.swing.KeyStroke; |
|
|
|
|
import javax.swing.SwingConstants; |
|
|
|
|
import javax.swing.SwingWorker; |
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
|
import java.awt.Cursor; |
|
|
|
|
import java.awt.Dimension; |
|
|
|
|
import java.awt.FontMetrics; |
|
|
|
|
import java.awt.Window; |
|
|
|
|
import java.awt.event.FocusEvent; |
|
|
|
|
import java.awt.event.FocusListener; |
|
|
|
|
import java.awt.event.MouseAdapter; |
|
|
|
|
import java.awt.event.MouseEvent; |
|
|
|
|
import java.util.ArrayList; |
|
|
|
|
import javax.swing.JPanel; |
|
|
|
|
import javax.swing.KeyStroke; |
|
|
|
|
import javax.swing.SwingConstants; |
|
|
|
|
import javax.swing.SwingWorker; |
|
|
|
|
|
|
|
|
|
public class JSContentPane extends BasicPane { |
|
|
|
|
protected RSyntaxTextArea contentTextArea; |
|
|
|
@ -55,7 +53,6 @@ public class JSContentPane extends BasicPane {
|
|
|
|
|
private JSImplUpdateAction jsImplUpdateAction; |
|
|
|
|
private JSImplPopulateAction jsImplPopulateAction; |
|
|
|
|
private boolean modal; |
|
|
|
|
private Window parentWindow; |
|
|
|
|
BasicDialog advancedEditorDialog ; |
|
|
|
|
public JSContentPane(){} |
|
|
|
|
|
|
|
|
@ -124,9 +121,6 @@ public class JSContentPane extends BasicPane {
|
|
|
|
|
super.doCancel(); |
|
|
|
|
} |
|
|
|
|
},new Dimension(900,800)); |
|
|
|
|
if (parentWindow != null) { |
|
|
|
|
parentWindow.setVisible(false); |
|
|
|
|
} |
|
|
|
|
advancedEditorDialog.setModal(modal); |
|
|
|
|
advancedEditorDialog.setResizable(true); |
|
|
|
|
advancedEditorDialog.pack(); |
|
|
|
@ -138,10 +132,6 @@ public class JSContentPane extends BasicPane {
|
|
|
|
|
labelPane.add(advancedEditorLabel,BorderLayout.EAST); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setParentWindow(Window parentWindow) { |
|
|
|
|
this.parentWindow = parentWindow; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected UIScrollPane createContentTextAreaPanel(){ |
|
|
|
|
contentTextArea = new RSyntaxTextArea(); |
|
|
|
|
contentTextArea.setCloseCurlyBraces(true); |
|
|
|
|