Skip to content

Commit 9ced8ed

Browse files
committed
fixed an incorrect scroll of Script tab. Added selection of the script tab on error.
1 parent a0374c3 commit 9ced8ed

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

RubyScript/src/org/knime/ext/jruby/RubyScriptNodeDialog.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ public void actionPerformed(final ActionEvent e) {
222222
m_scriptPanel.add(scriptMainPanel, BorderLayout.CENTER);
223223

224224
addTab("Script Output", outputPanel);
225-
addTab("Script", m_scriptPanel);
225+
addTab("Script", m_scriptPanel, false);
226226
}
227227

228228
/**
@@ -252,6 +252,8 @@ protected final void loadSettingsFrom(final NodeSettingsRO settings,
252252
m_errorMessage.setText(outstr.toString());
253253

254254
m_sp_errorMessage.setVisible(true);
255+
256+
setSelected("Script");
255257
}
256258

257259
boolean appendCols = settings.getBoolean(

0 commit comments

Comments
 (0)