|
|
@ -31,6 +31,7 @@ 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; |
|
|
@ -54,6 +55,7 @@ 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(){} |
|
|
|
|
|
|
|
|
|
|
@ -122,6 +124,9 @@ 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(); |
|
|
@ -133,6 +138,10 @@ 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); |
|
|
|