Skip to content

Commit

Permalink
displayNameKey should have priority over displayName
Browse files Browse the repository at this point in the history
  • Loading branch information
jonfang committed Jan 21, 2019
1 parent ba5c006 commit 6ecfb5a
Showing 1 changed file with 6 additions and 6 deletions.
Expand Up @@ -89,22 +89,22 @@ public Object getParent( Object model )
public String getNodeDisplayName( Object model )
{
MeasureHandle handle = (MeasureHandle) model;
if ( handle.getDisplayName( ) != null
&& handle.getDisplayName( ).trim( ).length( ) > 0 )
{
return handle.getDisplayName( );
}
if ( handle.getDisplayNameKey( ) != null )
{
String externalizedDisplayName = handle.getExternalizedValue(
ColumnHint.DISPLAY_NAME_ID_MEMBER,
ColumnHint.DISPLAY_NAME_MEMBER );
if ( externalizedDisplayName != null
&& externalizedDisplayName.trim( ).length( ) > 0 )
&& !externalizedDisplayName.trim( ).isEmpty( ) )
{
return externalizedDisplayName;
}
}
if ( handle.getDisplayName( ) != null
&& !handle.getDisplayName( ).trim( ).isEmpty( ) )
{
return handle.getDisplayName( );
}
return handle.getName( );
}

Expand Down

0 comments on commit 6ecfb5a

Please sign in to comment.