private void refreshPropertiesViewContribution()
{
final List<ISapphirePart> selections = getSelections();
PropertiesViewContributionPart propertiesViewContribution = null;
if (selections.size() == 1)
{
ISapphirePart selection = selections.get(0);
if( selection == SapphireDiagramEditorPagePart.this )
{
propertiesViewContribution = this.propertiesViewContributionManager.getPropertiesViewContribution();
}
else if( selection instanceof PropertiesViewContributorPart )
{
propertiesViewContribution = ( (PropertiesViewContributorPart) selection ).getPropertiesViewContribution();
}
}
if (propertiesViewContribution == null || !propertiesViewContribution.getLocalModelElement().disposed())
{
setPropertiesViewContribution( propertiesViewContribution );
}
}