Bug 119566 Support template items in page header/footer
Currently you can't create template report items inside a page header/footer. This should be fixed.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/views/actions/CreatePlaceHolderAction.java
*/
	ReportElementHandle getSelectedElement( )
	{
		Object obj = super.getSelection( );
		if ( obj instanceof IStructuredSelection )
		{
			IStructuredSelection selection = (IStructuredSelection) obj;
			if ( selection.size( ) != 1 )
			{
				return null;
			}
			obj = selection.getFirstElement( );
		}
		if ( obj instanceof ReportElementHandle )
		{
			return (ReportElementHandle) obj;
		}
		return null;
	}
	public boolean isEnabled( )
	{
		return super.isEnabled( )
				&& getSelectedElement( ) instanceof ReportItemHandle
				&& getSelectedElement( ).canTransformToTemplate()
				
				&& !( getSelectedElement( ).getContainer( ) instanceof SimpleMasterPageHandle) 
					&& !( getSelectedElement( ).getRoot( ) instanceof LibraryHandle ) ;
	}
}