.getString( "DifferencesWidgetPropertiesLabelProvider.RemovedMandatoryAttributeType" ), new Object[] { diff.getOldValue() } ); //$NON-NLS-1$
}
}
else if ( element instanceof NoUserModificationDifference )
{
NoUserModificationDifference diff = ( NoUserModificationDifference ) element;
switch ( diff.getType() )
{
case MODIFIED:
return NLS
.bind(
Messages
.getString( "DifferencesWidgetPropertiesLabelProvider.ModifiedNoUserModificationValue" ), new Object[] { diff.getNewValue(), diff.getOldValue() } ); //$NON-NLS-1$
}
}
else if ( element instanceof ObsoleteDifference )
{
ObsoleteDifference diff = ( ObsoleteDifference ) element;
switch ( diff.getType() )
{
case MODIFIED:
return NLS
.bind(
Messages.getString( "DifferencesWidgetPropertiesLabelProvider.ModifiedObsoleteValue" ), new Object[] { diff.getNewValue(), diff.getOldValue() } ); //$NON-NLS-1$
}
}
else if ( element instanceof OptionalATDifference )
{
OptionalATDifference diff = ( OptionalATDifference ) element;
switch ( diff.getType() )
{
case ADDED:
return NLS
.bind(
Messages.getString( "DifferencesWidgetPropertiesLabelProvider.AddedOptionalAttributeType" ), new Object[] { diff.getNewValue() } ); //$NON-NLS-1$
case REMOVED:
return NLS
.bind(
Messages
.getString( "DifferencesWidgetPropertiesLabelProvider.RemovedOptionalAttributeType" ), new Object[] { diff.getOldValue() } ); //$NON-NLS-1$
}
}
else if ( element instanceof OrderingDifference )
{
OrderingDifference diff = ( OrderingDifference ) element;
switch ( diff.getType() )
{
case ADDED:
return NLS
.bind(
Messages.getString( "DifferencesWidgetPropertiesLabelProvider.AddedOrderingMatchingRule" ), new Object[] { diff.getNewValue() } ); //$NON-NLS-1$
case MODIFIED:
return NLS
.bind(
Messages
.getString( "DifferencesWidgetPropertiesLabelProvider.ModifiedOrderingMatchingRule" ), new Object[] { diff.getNewValue(), diff.getOldValue() } ); //$NON-NLS-1$
case REMOVED:
return NLS
.bind(
Messages.getString( "DifferencesWidgetPropertiesLabelProvider.RemovedOrderingMatchingRule" ), new Object[] { diff.getOldValue() } ); //$NON-NLS-1$
}
}
else if ( element instanceof SingleValueDifference )
{
SingleValueDifference diff = ( SingleValueDifference ) element;
switch ( diff.getType() )
{
case MODIFIED:
return NLS
.bind(
Messages.getString( "DifferencesWidgetPropertiesLabelProvider.ModifiedSingleValueValue" ), new Object[] { diff.getNewValue(), diff.getOldValue() } ); //$NON-NLS-1$
}
}
else if ( element instanceof SubstringDifference )
{
SubstringDifference diff = ( SubstringDifference ) element;
switch ( diff.getType() )
{
case ADDED:
return NLS
.bind(
Messages.getString( "DifferencesWidgetPropertiesLabelProvider.AddedSubstringMatchingRule" ), new Object[] { diff.getNewValue() } ); //$NON-NLS-1$
case MODIFIED:
return NLS
.bind(
Messages
.getString( "DifferencesWidgetPropertiesLabelProvider.ModifiedSubstringMatchingRule" ), new Object[] { diff.getNewValue(), diff.getOldValue() } ); //$NON-NLS-1$
case REMOVED:
return NLS
.bind(
Messages
.getString( "DifferencesWidgetPropertiesLabelProvider.RemovedSubstringMatchingRule" ), new Object[] { diff.getOldValue() } ); //$NON-NLS-1$
}
}
else if ( element instanceof SuperiorATDifference )
{
SuperiorATDifference diff = ( SuperiorATDifference ) element;
switch ( diff.getType() )
{
case ADDED:
return NLS
.bind(
Messages.getString( "DifferencesWidgetPropertiesLabelProvider.AddedSuperior" ), new Object[] { diff.getNewValue() } ); //$NON-NLS-1$
case MODIFIED:
return NLS
.bind(
Messages.getString( "DifferencesWidgetPropertiesLabelProvider.ModifiedSuperior" ), new Object[] { diff.getNewValue(), diff.getOldValue() } ); //$NON-NLS-1$
case REMOVED:
return NLS
.bind(
Messages.getString( "DifferencesWidgetPropertiesLabelProvider.RemovedSuperior" ), new Object[] { diff.getOldValue() } ); //$NON-NLS-1$
}
}
else if ( element instanceof SuperiorOCDifference )
{
SuperiorOCDifference diff = ( SuperiorOCDifference ) element;
switch ( diff.getType() )
{
case ADDED:
return NLS
.bind(
Messages.getString( "DifferencesWidgetPropertiesLabelProvider.AddedSuperior" ), new Object[] { diff.getNewValue() } ); //$NON-NLS-1$
case REMOVED:
return NLS
.bind(
Messages.getString( "DifferencesWidgetPropertiesLabelProvider.RemovedSuperior" ), new Object[] { diff.getOldValue() } ); //$NON-NLS-1$
}
}
else if ( element instanceof SyntaxDifference )
{
SyntaxDifference diff = ( SyntaxDifference ) element;
switch ( diff.getType() )
{
case ADDED:
return NLS
.bind(
Messages.getString( "DifferencesWidgetPropertiesLabelProvider.AddedSyntax" ), new Object[] { diff.getNewValue() } ); //$NON-NLS-1$
case MODIFIED:
return NLS
.bind(
Messages.getString( "DifferencesWidgetPropertiesLabelProvider.ModifiedSyntax" ), new Object[] { diff.getNewValue(), diff.getOldValue() } ); //$NON-NLS-1$
case REMOVED:
return NLS
.bind(
Messages.getString( "DifferencesWidgetPropertiesLabelProvider.RemovedSyntax" ), new Object[] { diff.getOldValue() } ); //$NON-NLS-1$
}
}
else if ( element instanceof SyntaxLengthDifference )
{
SyntaxLengthDifference diff = ( SyntaxLengthDifference ) element;
switch ( diff.getType() )
{
case ADDED:
return NLS
.bind(
Messages.getString( "DifferencesWidgetPropertiesLabelProvider.AddedSyntaxLength" ), new Object[] { diff.getNewValue() } ); //$NON-NLS-1$
case MODIFIED:
return NLS
.bind(
Messages.getString( "DifferencesWidgetPropertiesLabelProvider.ModifiedSyntaxLength" ), new Object[] { diff.getNewValue(), diff.getOldValue() } ); //$NON-NLS-1$
case REMOVED:
return NLS
.bind(
Messages.getString( "DifferencesWidgetPropertiesLabelProvider.RemovedSyntaxLength" ), new Object[] { diff.getOldValue() } ); //$NON-NLS-1$
}
}
else if ( element instanceof UsageDifference )
{
UsageDifference diff = ( UsageDifference ) element;
switch ( diff.getType() )
{
case MODIFIED:
return NLS
.bind(
Messages.getString( "DifferencesWidgetPropertiesLabelProvider.ModifiedUsage" ), new Object[] { diff.getNewValue(), diff.getOldValue() } ); //$NON-NLS-1$
}
}
// Default
return super.getText( element );