containerHandle = ( (ReportElementModel) container ).getElementHandle( ); slotID = ( (ReportElementModel) container ).getSlotId( );
containerHandle = ( (SlotHandle) container ).getElementHandle( ); slotID = ( (SlotHandle) container ).getSlotID( );
	public void execute( )	{		if ( DesignerConstants.TRACING_COMMANDS )		{			System.out.println( "FlowMoveChildCommand >> Starts ... " ); //$NON-NLS-1$		}		try		{			DesignElementHandle containerHandle = null;			int slotID = -1, pos = -1;			// for virtual model that contains a slot handle			if ( container instanceof ListBandProxy )			{				containerHandle = ( (ListBandProxy) container ).getSlotHandle( )						.getElementHandle( );				slotID = ( (ListBandProxy) container ).getSlotHandle( )						.getSlotID( );				pos = DEUtil.findInsertPosition( containerHandle,						(DesignElementHandle) after,						slotID );			}			// for real node that contains design element handle			else if ( container instanceof DesignElementHandle )			{				containerHandle = (DesignElementHandle) container;				slotID = DEUtil.getSlotID( containerHandle, after );				pos = DEUtil.findInsertPosition( containerHandle,						(DesignElementHandle) after );			}			else if ( container instanceof ReportElementModel )			{				containerHandle = ( (ReportElementModel) container ).getElementHandle( );				slotID = ( (ReportElementModel) container ).getSlotId( );				pos = DEUtil.findInsertPosition( containerHandle,						(DesignElementHandle) after,						slotID );			}			DesignElementHandle handle = (DesignElementHandle) child;			CommandStack stack = SessionHandleAdapter.getInstance( )					.getCommandStack( );			stack.startTrans( TRANS_LABEL_MOVE_ELEMENT );			handle.moveTo( containerHandle, slotID );			containerHandle.getSlot( slotID ).shift( handle, pos );			stack.commit( );			if ( DesignerConstants.TRACING_COMMANDS )			{				System.out.println( "FlowMoveChildCommand >> Finished. Moved " //$NON-NLS-1$						+ DEUtil.getDisplayLabel( handle )						+ " to the slot " //$NON-NLS-1$						+ slotID						+ " of " //$NON-NLS-1$						+ DEUtil.getDisplayLabel( containerHandle )						+ ",Position: " //$NON-NLS-1$						+ pos );			}		}		catch ( ContentException e )		{			if ( DesignerConstants.TRACING_COMMANDS )			{				System.out.println( "FlowMoveChildCommand >> Failed" ); //$NON-NLS-1$			}			e.printStackTrace( );		}	}