Skip to content

Commit

Permalink
Selecting duplicate name of data model and data set that always gets the
Browse files Browse the repository at this point in the history
first column in data binding dlg.
  • Loading branch information
cchao authored and zhiqiangqian committed Jul 22, 2014
1 parent e843311 commit 5e0c0f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Expand Up @@ -63,7 +63,7 @@ public String getText( Object element )
{
BindingInfo info = (BindingInfo) element;
String datasetName = info.getBindingValue( );
if ( !info.isDataSet() )
if ( !info.isDataSet( ) )
{
if ( !NONE.equals( datasetName ) )
{
Expand Down Expand Up @@ -120,8 +120,7 @@ protected List getAvailableDataBindingReferenceList(
if ( ExtendedDataModelUIAdapterHelper.getInstance( ).getAdapter( ) != null )
{
List temp = ( ExtendedDataModelUIAdapterHelper.getInstance( )
.getAdapter( )
.getAvailableBindingReferenceList( element ) );
.getAdapter( ).getAvailableBindingReferenceList( element ) );
bindingRef.removeAll( temp );
bindingRef.addAll( temp );
}
Expand Down Expand Up @@ -796,6 +795,6 @@ public String getText( int key )

public boolean enableBindingButton( )
{
return null != ( (BindingInfo) load( ) ).getBindingValue( );
return !NullDatasetChoice.bindingValue.equals( ( (BindingInfo) load( ) ).getBindingValue( ) );
}
}
Expand Up @@ -257,7 +257,7 @@ else if ( oldInfo.getBindingType( ) == ReportItemHandle.DATABINDING_TYPE_REPORT_
}
else
{
datasetCombo.setSelection( new StructuredSelection( info ) );
selectDatasetType( info );
}
break;
}
Expand Down

0 comments on commit 5e0c0f3

Please sign in to comment.