if ( obj instanceof ReportElementModel ) { lst.add( ( (ReportElementModel) obj ).getSlotHandle( ) ); } else { lst.add( obj ); }
lst.add( obj );
	protected void gotoLayoutMarker( IMarker marker,			ReportElementHandle reportElementHandle )	{		ModuleHandle moduleHandle = editorPart.getModel( );		reportElementHandle = getReportElementHandle( moduleHandle, marker );		if ( reportElementHandle == null )		{			MessageDialog.openError( UIUtil.getDefaultShell( ),					Messages.getString( "BIRTGotoMarker.Error.Title" ),					Messages.getString( "BIRTGotoMarker.Error.Message" ) );			return;		}		List list = new ArrayList( );		list.add( reportElementHandle );		ReportRequest r = new ReportRequest( );		r.setType( ReportRequest.SELECTION );		r.setRequestConvert( new IRequestConvert( ) {			/*			 * (non-Javadoc)			 * 			 * @see org.eclipse.birt.report.designer.core.util.mediator.request.IRequestConvert#convertSelectionToModelLisr(java.util.List)			 */			public List convertSelectionToModelLisr( List list )			{				List lst = new ArrayList( );				for ( Iterator itr = list.iterator( ); itr.hasNext( ); )				{					Object obj = itr.next( );					if ( obj instanceof ReportElementModel )					{						lst.add( ( (ReportElementModel) obj ).getSlotHandle( ) );					}					else					{						lst.add( obj );					}				}				return lst;			}		} );		r.setSelectionObject( list );		SessionHandleAdapter.getInstance( ).getMediator( ).notifyRequest( r );	}