Bug 316568 Refactor data set editor pages' codes[26849]
Build Identifier: 20100610 Refactor data set editor pages' codes. Reproducible: Always
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/data/ui/util/Utility.java
*/
	public static int findIndex( String[] source, String target )
	{
		int index = 0;
		for ( int i = 0; i < source.length; i++ )
		{
			if ( source[i].equals( target ) )
			{
				index = i;
				break;
			}
		}
		return index;
	}
    
    /**
     * 
     * @param obj
     * @param propertyName
     * @return
     * @throws IntrospectionException
     */
    private static PropertyDescriptor getPropertyDescriptor(Object obj, String propertyName) throws IntrospectionException
    {
        PropertyDescriptor[] descriptors = getPropertyDescriptors(obj);
        for(int n = 0; n < descriptors.length; n++)
        {
            if(descriptors[n].getName().equals(propertyName))
            {
                return descriptors[n];