Skip to content

Commit 00a3825

Browse files
authored
Merge pull request #7189 from scottslewis/master
Fix for issue #7188
2 parents 228e108 + 478c79c commit 00a3825

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

bndtools.core/src/org/bndtools/core/ui/wizards/shared/TemplateParamsWizardPage.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,14 @@ void updateUI() {
9797
String attrib = ad.getID();
9898
if (!fixedAttribs.contains(attrib)) {
9999
Label label = new Label(panel, SWT.NONE);
100-
String labelText = ad.getID();
100+
// Use the ad.getName() for the labelText. If
101+
// no valid name, then use the ad.getID();
102+
String labelText = ad.getName();
103+
if (labelText == null || "".equals(labelText.trim())) {
104+
labelText = ad.getID();
105+
} else {
106+
labelText = labelText.trim();
107+
}
101108
if (requiredIds.contains(ad.getID())) {
102109
label.setFont(JFaceResources.getFontRegistry()
103110
.getBold(JFaceResources.DEFAULT_FONT));

0 commit comments

Comments
 (0)