String text; text = ( (ResourceEntry) element ).getDisplayName( ); if(text == null || text.trim( ).length( ) == 0) { text = ( (ResourceEntry) element ).getName( ); } return text;
return ( (ResourceEntry) element ).getName( );
	public String getText( Object element )	{		if ( element instanceof File )		{			if ( element.equals( rootFile ) )			{				String path = ( (File) element ).getPath( );				if ( path == null || path.length( ) == 0 )				{					return ""; //$NON-NLS-1$				}				String retString = path.substring( path.lastIndexOf( File.separator ) + 1 );				if ( retString == null || retString.length( ) == 0 )				{					retString = path;				}				return retString;			}			else			{				return ( (File) element ).getName( );			}		}		if ( element instanceof ResourceEntry )		{			String text;			text = ( (ResourceEntry) element ).getDisplayName( );			if(text == null || text.trim( ).length( ) == 0)			{				text = ( (ResourceEntry) element ).getName( );			}			return text;		}		return super.getText( element );	}