20 package net.sf.gridarta.gui.dialog.gameobjectattributes;
22 import javax.swing.text.Document;
23 import javax.swing.text.Style;
30 import org.jetbrains.annotations.NotNull;
54 final String archetypeAttributeName =
getRef().getArchetypeAttributeName();
55 return archetype.getAttributeString(archetypeAttributeName).equals(newString) ?
"" : archetypeAttributeName +
" " + newString;
59 public void appendSummary(@NotNull
final Document doc, @NotNull
final Style style) {
61 if (value.isEmpty()) {
65 addLine(doc, style,
"",
" = " + value);