Revision 457 org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.swing/org.gvsig.scripting.swing.impl/src/main/java/org/gvsig/scripting/swing/impl/composer/DefaultJDialogEditor.java
DefaultJDialogEditor.java | ||
---|---|---|
25 | 25 |
protected ScriptingDialog script; |
26 | 26 |
protected JTabbedPane pestana; |
27 | 27 |
EditorHelper editorHelper; |
28 |
private ScriptingUIManager uimanager; |
|
28 | 29 |
|
29 | 30 |
public DefaultJDialogEditor(ScriptingUIManager uimanager, ScriptingDialog script) { |
30 | 31 |
super(); |
32 |
this.uimanager = uimanager; |
|
31 | 33 |
this.script = script; |
32 | 34 |
this.editorHelper = new EditorHelper(uimanager,(ScriptingScript) script); |
33 | 35 |
makeUI(); |
... | ... | |
36 | 38 |
private void makeUI(){ |
37 | 39 |
pestana = new JTabbedPane(); |
38 | 40 |
pestana.setTabPlacement(JTabbedPane.BOTTOM); |
39 |
pestana.addTab("Dialog", getDialogPanel());
|
|
40 |
pestana.addTab("Code", editorHelper.getCodePanel());
|
|
41 |
pestana.addTab("Properties", editorHelper.getPropertiesPanel());
|
|
41 |
pestana.addTab(this.uimanager.getTranslation("Dialog"), getDialogPanel());
|
|
42 |
pestana.addTab(this.uimanager.getTranslation("Code"), editorHelper.getCodePanel());
|
|
43 |
pestana.addTab(this.uimanager.getTranslation("Properties"), editorHelper.getPropertiesPanel());
|
|
42 | 44 |
this.setLayout( new BorderLayout() ); |
43 | 45 |
this.add(BorderLayout.CENTER, pestana); |
44 | 46 |
} |
Also available in: Unified diff