Bug 120918 Usability: Tabs above and below Layout Editor are confusing
In BIRT 2.0 (I'm using M3), the Layout Editor has tabs above and below the editor window to give the developer different views. Top: Normal, Master Page, Source Bottom: Layout, Preview, Script What is not clear initially from the UI is that the bottom choices are only available with the "Normal" top choice. In addition, the "Source" label is not clear -- implication is that this is (programatic) source code. The Usability team should look at this to determine what improvements could be made, but a suggestion would be to flatten this into a top set of tabs only: Report Layout, Master Page, Script, XML Report Design, Preview
UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/DEUtil.java
*/
	public static int findPos( DesignElementHandle parent, int slotID,
			DesignElementHandle child )
	{
		assert slotID >= 0;
		SlotHandle slotHandle = parent.getSlot( slotID );
		return slotHandle.findPosn( child );
	}
	/**
	 * Gets the element name. The object is a long string that separated with
	 * the separator "."
	 * 
	 * @param obj
	 *            the object
	 * @return the name behind the last separator "."
	 */
	public static String getElementName( Object obj )
	{
		if ( obj instanceof Class )
		{
			obj = ( (Class) obj ).getName( );
		}
		return obj.toString( )
				.substring( obj.toString( ).lastIndexOf( "." ) + 1 ); 
	}
	/**
	 * Gets the definition for the element with the specified name
	 * 
	 * @param elementName
	 *            the name of the element