Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SwingMessageWidget: allow labeled messages
Unlike other parameters, messages will only be labeled if a label was actually specified. That is: a label will not be synthesized from the parameter name when the label attribute is unset.
- Loading branch information
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,7 +60,8 @@ public String getValue() { | |
|
||
@Override | ||
public boolean isLabeled() { | ||
return false; | ||
final String l = get().getItem().getLabel(); | ||
return l == null || l.isEmpty(); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
ctrueden
Author
Member
|
||
} | ||
|
||
@Override | ||
|
This will return
true
when the label is empty or unset, won't it?