Bug 117815 If I apply a style to a table first then apply another style to a table row, select this row, related style is not selected.
Description:If I apply a style to a table first then apply another style to a table row, select this row, related style is not selected. Steps to reproduce: 1. Create a table and apply a style to it. 2. Select a table row and apply another style to the table row. 3. Select this row and find that the related style is not selected. But it has worked.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/actions/ApplyStyleMenuAction.java
actionList.add( action );
				}
			}
		}
		return actionList;
	}
	private StyleHandle getStyleHandle( )
	{
		IStructuredSelection selection = InsertInLayoutUtil.editPart2Model( getSelection( ) );
		if ( !selection.isEmpty( )
				&& selection.getFirstElement( ) instanceof DesignElementHandle )
		{
			SharedStyleHandle style = ( (DesignElementHandle) selection.getFirstElement( ) ).getStyle( );
			for ( Iterator iterator = selection.iterator( ); iterator.hasNext( ); )
			{
				Object obj = iterator.next( );
				if ( !( obj instanceof DesignElementHandle ) )
				{
					return null;
				}
				if ( ( (DesignElementHandle) obj ).getStyle( ) != style )
				{
					return null;
				}
			}
			return style;
		}
		return null;
	}
}