Bug 151959 inappropriate screen operation
steps to reproduce: - create a report - add a grid item (3x3) - switch to Outline view - expand the grid item to see its rows and cells - select the grid item, and drag it into any of its own cell expected behavior: - is it an invalid screen operation? if it is, it should be banned actual behavior: - the grid item was disappeared surprisingly
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/core/DesignElement.java
public long getID( )
	{
		return this.id;
	}
	/**
	 * Determines if this element is contained in the given element. Checks up
	 * the containment hierarchy.
	 * 
	 * @param element
	 *            The potential container.
	 * @return True if this element is contained in the container either
	 *         directly or indirectly. False if this element is not contained.
	 *         If the given element is this element itself, return true.
	 */
	public boolean isContentOf( DesignElement element )
	{
		DesignElement e = this;
		while ( e != null )
		{
			if ( e == element )
				return true;
			e = e.container;
		}
		return false;
	}
	/**
	 * Returns the value of a property as a number (BigDecimal).
	 * 
	 * @param module
	 *            the module