Bug 155473 DataSetEditor Parameter's Link to a new Report Parameter should be selected automatically
In BIRT DataSetEditor's Parameters node page, when linking to a *new* report parameter, it should have been selected automatically in the "Edit Parameter" dialog. Steps to reproduce: in BIRT DataSetEditor 1) create/update an ODA query by a custom ODA designer that defines a oda input parameter 2) switch to the Parameters node, the corresponding oda parameter is listed, with the "Linked to Report Parameter" field correctly set as "None" 3) select "Edit..." on the parameter, the Edit Parameter dialog opens 4) select the "..." icon next to the "Linked to Report Parameter" field, the "New Parameter" dialog opens 5) press Ok on "New Parameter" dialog to save the new report parameter 6) in the Edit Parameter dialog, the "Linked to Report Parameter" combo box still shows "None" as the selected value Expects that the newly created report parameter gets selected automatically in the "Linked to Report Parameter" combo box.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/data/ui/util/Utility.java
{
                value = method.invoke(obj, null);
            }
        }
        
        return value;
    }
    
    /**
     * 
     * @param obj
     * @param propertyName
     * @param value
     * @throws IntrospectionException
     * @throws IllegalArgumentException
     * @throws IllegalAccessException
     * @throws InvocationTargetException
     */
    public static void setProperty(Object obj, String propertyName, Object value) throws IntrospectionException, IllegalArgumentException, IllegalAccessException, InvocationTargetException
    {
        PropertyDescriptor descriptor = getPropertyDescriptor(obj, propertyName);
        if(descriptor != null)
        {
            Method method = descriptor.getWriteMethod();
            if(method != null)
            {
                method.invoke(obj, new Object[]{value});
            }
        }
    }