* if <code>true</code> the displayed field information cannot be edited
* @return <code>true</code> if any changes were made to the fields displayed in the dialog.
*/
public static boolean show(Segment segment, boolean isFixedWidth, boolean readOnly) {
checkNotNull(segment, "segment");
Field identifier=segment.findIdentField();
if (identifier != null && identifier.defaultValue.isEmpty() && identifier.format.isEmpty()) {
String value = segment.getName();
identifier.defaultValue = identifier.format = value;
if (isFixedWidth) {
identifier.setLength(value.length());
}
}
SegmentFieldDialog dlg = new SegmentFieldDialog(UiUtils.getActiveWindow(),
segment, isFixedWidth, readOnly, getTitle(segment));
dlg.setVisible(true);