Bug 189598 [linux][smoke]GUIException when new style in Layout or through main menu[0300]
Description: GUIException when new style in Layout or through main menu Build number:2.2.0.v200705291039 Steps to reproduce: 1. New a report. 2. New a style by right click in Layout. 3. New a style through main menu Expected result: A new style is inserted. Actual result: Fail to new style and throw exception. Error log:N/A
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/command/SelectionHandler.java
Object obj = list.get( i );
			if ( obj instanceof ListEditPart )
			{
				part = (ListEditPart) obj;
			}
			else if ( obj instanceof ListBandEditPart )
			{
				part = (ListEditPart) ( (ListBandEditPart) obj ).getParent( );
			}
		}
		return part;
	}
	/**
	 * Returns a <code>List</code> containing the currently
	 * selected objects.
	 * 
	 * @return A List containing the currently selected objects.
	 */
	protected List getSelectedObjects( )
	{
		Object selectVariable = getSelection( );
		if ( !( selectVariable instanceof IStructuredSelection ) )
			return Collections.EMPTY_LIST;
		return ( (IStructuredSelection) selectVariable ).toList( );
	}
	/**
	 * Returns a <code>List</code> containing the currently
	 * selected objects.
	 * 
	 * @return A List containing the currently selected objects.