private String getMessage( SchemaCheckerElement element )
{
if ( element instanceof DuplicateAliasError )
{
DuplicateAliasError duplicateAliasError = ( DuplicateAliasError ) element;
SchemaObject duplicate = duplicateAliasError.getDuplicate();
if ( duplicate instanceof AttributeTypeImpl )
{
return NLS
.bind(
Messages.getString( "ProblemsViewLabelProvider.DuplicateAliasErrorAttributeType" ), new String[] { duplicateAliasError.getAlias(), duplicate.getOid() } ); //$NON-NLS-1$
}
else if ( duplicate instanceof ObjectClassImpl )
{
return NLS
.bind(
Messages.getString( "ProblemsViewLabelProvider.DuplicateAliasErrorObjectClass" ), new String[] { duplicateAliasError.getAlias(), duplicate.getOid() } ); //$NON-NLS-1$
}
}
else if ( element instanceof DuplicateOidError )
{
DuplicateOidError duplicateOidError = ( DuplicateOidError ) element;