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/DefaultJCodeEditor.java
DefaultJCodeEditor.java | ||
---|---|---|
29 | 29 |
// JEditorPaneSyntaxHighlighting editor; |
30 | 30 |
|
31 | 31 |
protected ScriptingBaseScript script; |
32 |
// protected ScriptingUIManager uimanager;
|
|
32 |
protected ScriptingUIManager uimanager; |
|
33 | 33 |
|
34 | 34 |
//----------------------- |
35 | 35 |
// protected ActionListener defaultActionlistener = null; |
... | ... | |
64 | 64 |
|
65 | 65 |
public DefaultJCodeEditor(ScriptingUIManager uimanager, ScriptingScript script){ |
66 | 66 |
this.script = script; |
67 |
this.uimanager = uimanager; |
|
67 | 68 |
this.editorHelper = new EditorHelper(uimanager,this.getScript()); |
68 | 69 |
makeUI(); |
69 | 70 |
} |
... | ... | |
75 | 76 |
private void makeUI(){ |
76 | 77 |
pestana = new JTabbedPane(); |
77 | 78 |
pestana.setTabPlacement(JTabbedPane.BOTTOM); |
78 |
pestana.addTab("Code", editorHelper.getCodePanel());
|
|
79 |
pestana.addTab("Properties", editorHelper.getPropertiesPanel());
|
|
79 |
pestana.addTab(this.uimanager.getTranslation("Code"), editorHelper.getCodePanel());
|
|
80 |
pestana.addTab(this.uimanager.getTranslation("Properties"), editorHelper.getPropertiesPanel());
|
|
80 | 81 |
this.setLayout( new BorderLayout() ); |
81 | 82 |
this.add(BorderLayout.CENTER, pestana); |
82 | 83 |
} |
Also available in: Unified diff