Bug 134988 [regression]Available items in Query didn't change when change data source in Edit Data Set Dialog.
Description: Available items in Query didn't change when change data source in Edit Data Set Dialog. Steps to reproduce: 1. New two different data sources. 2. New a dataset, change data source, view Available Items in Query pane. Expected result: Available Items in Query pane changed according to new Data source. Actual result: Available Items in Query pane kept unchanged.
data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/editors/SQLDataSetEditorPage.java
public Object[] getElements(Object inputElement)
            {
                if(inputElement != null)
                {
                    return ((ArrayList)inputElement).toArray();
                }
                return new DbType[]{};
            }
            public void dispose()
            {
                
                
            }
            public void inputChanged(Viewer viewer, Object oldInput, Object newInput)
            {
                
                
            }
            
        });
        
        filterComboViewer.setLabelProvider(new LabelProvider(){
            public String getText(Object inputElement)
            {
                DbType dbType = (DbType)inputElement;
                return dbType.getName(); 
            }
            
        });