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