|
|
|
@ -31,6 +31,7 @@ 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; |
|
|
|
@ -54,6 +55,7 @@ public class JSContentPane extends BasicPane {
|
|
|
|
|
private JSImplUpdateAction jsImplUpdateAction; |
|
|
|
|
private JSImplPopulateAction jsImplPopulateAction; |
|
|
|
|
private boolean modal; |
|
|
|
|
private Window parentWindow; |
|
|
|
|
BasicDialog advancedEditorDialog ; |
|
|
|
|
public JSContentPane(){} |
|
|
|
|
|
|
|
|
@ -122,6 +124,9 @@ 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(); |
|
|
|
@ -133,6 +138,10 @@ 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); |
|
|
|
|