mirror of
https://github.com/hneemann/Digital.git
synced 2025-08-04 02:08:00 -04:00
adds the names of the components to the generic help dialog
This commit is contained in:
parent
cf323d03ad
commit
eb71b37077
@ -226,9 +226,12 @@ public class ElementHelpDialog extends JDialog {
|
|||||||
if (translatedName.endsWith(".dig"))
|
if (translatedName.endsWith(".dig"))
|
||||||
translatedName = new File(translatedName).getName();
|
translatedName = new File(translatedName).getName();
|
||||||
w.append("<h3>").append(escapeHTML(translatedName)).append("</h3>\n");
|
w.append("<h3>").append(escapeHTML(translatedName)).append("</h3>\n");
|
||||||
|
|
||||||
String descr = et.getDescription(elementAttributes);
|
String descr = et.getDescription(elementAttributes);
|
||||||
|
if (showKeys)
|
||||||
|
descr += " (" + Lang.get("msg_keyAsGenericAttribute", et.getName()) + ")";
|
||||||
if (!descr.equals(translatedName))
|
if (!descr.equals(translatedName))
|
||||||
w.append("<p>").append(escapeHTML(et.getDescription(elementAttributes))).append("</p>\n");
|
w.append("<p>").append(escapeHTML(descr)).append("</p>\n");
|
||||||
|
|
||||||
PinDescriptions inputs = et.getInputDescription(elementAttributes);
|
PinDescriptions inputs = et.getInputDescription(elementAttributes);
|
||||||
if (inputs != null && inputs.size() > 0) {
|
if (inputs != null && inputs.size() > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user