added a tool tip to the hdl check button.

This commit is contained in:
hneemann 2018-03-10 18:39:27 +01:00
parent ee21fb738c
commit 8c6770295f
3 changed files with 8 additions and 2 deletions

View File

@ -616,7 +616,7 @@ public final class EditorFactory {
@Override @Override
protected JComponent getComponent(ElementAttributes elementAttributes) { protected JComponent getComponent(ElementAttributes elementAttributes) {
combo = (JComboBox) super.getComponent(elementAttributes); combo = (JComboBox) super.getComponent(elementAttributes);
checkButton = new JButton(new AbstractAction(Lang.get("btn_checkCode")) { checkButton = new ToolTipAction(Lang.get("btn_checkCode")) {
@Override @Override
public void actionPerformed(ActionEvent actionEvent) { public void actionPerformed(ActionEvent actionEvent) {
int n = combo.getSelectedIndex(); int n = combo.getSelectedIndex();
@ -647,7 +647,7 @@ public final class EditorFactory {
} }
} }
} }
}); }.setToolTip(Lang.get("btn_checkCode_tt")).createJButton();
combo.addActionListener(new AbstractAction() { combo.addActionListener(new AbstractAction() {
@Override @Override
public void actionPerformed(ActionEvent actionEvent) { public void actionPerformed(ActionEvent actionEvent) {

View File

@ -1381,6 +1381,9 @@ Soll dennoch exportiert werden?</string>
<string name="msg_errorClosingExternalProcess">Konnte externen Prozess nicht beenden!</string> <string name="msg_errorClosingExternalProcess">Konnte externen Prozess nicht beenden!</string>
<string name="msg_checkResult">Ergebnis der Überprüfung:</string> <string name="msg_checkResult">Ergebnis der Überprüfung:</string>
<string name="btn_checkCode">Prüfen</string> <string name="btn_checkCode">Prüfen</string>
<string name="btn_checkCode_tt">Startet die Anwendung um zu prüfen, ob der eingegebene Code korrekt ist. Falls das
nicht der Fall ist, wird die Fehlermeldung der externen Anwendung angezeigt. Wenn es möglich ist, werden zudem
die Eingangs- und Ausgangsdefinitionen an den aktuellen Code angepasst.</string>
<string name="msg_applicationFileNotFound">Ausführbare Datei "{0}" nicht gefunden!</string> <string name="msg_applicationFileNotFound">Ausführbare Datei "{0}" nicht gefunden!</string>
<string name="ok">Ok</string> <string name="ok">Ok</string>

View File

@ -1369,6 +1369,9 @@
<string name="msg_checkResult">Check Resukt:</string> <string name="msg_checkResult">Check Resukt:</string>
<string name="btn_checkCode">Check</string> <string name="btn_checkCode">Check</string>
<string name="btn_checkCode_tt">Starts the application to check if the entered code is correct.
If this is not the case, the error message of the external application is displayed.
If possible, the input and output definitions are also adapted to the current code.</string>
<string name="msg_applicationFileNotFound">Executable file "{0}" not found!</string> <string name="msg_applicationFileNotFound">Executable file "{0}" not found!</string>
<string name="ok">Ok</string> <string name="ok">Ok</string>