| author | pshi | 2012-08-16 03:58:08 (EDT) |
|---|---|---|
| committer | mwu | 2012-08-16 03:58:08 (EDT) |
| commit | ad46f75ee50b0c6e424a4a5476d8cc46f2357270 (patch) (side-by-side diff) | |
| tree | 6aa9b2cf1f2080bef15b70a8a9470448ff3d0ea8 | |
| parent | 491c562971da540a0709ccfb0fc1fb0ba3b7141f (diff) | |
| download | org.eclipse.birt-ad46f75ee50b0c6e424a4a5476d8cc46f2357270.zip org.eclipse.birt-ad46f75ee50b0c6e424a4a5476d8cc46f2357270.tar.gz org.eclipse.birt-ad46f75ee50b0c6e424a4a5476d8cc46f2357270.tar.bz2 | |
Fix 52681 Wrong waring message is displayed when creating a new Classic
Models Inc. Sample DB data source
| -rw-r--r-- | data/org.eclipse.birt.report.data.oda.sampledb.ui/src/org/eclipse/birt/report/data/oda/sampledb/ui/profile/SampleDbSelectionPageHelper.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/data/org.eclipse.birt.report.data.oda.sampledb.ui/src/org/eclipse/birt/report/data/oda/sampledb/ui/profile/SampleDbSelectionPageHelper.java b/data/org.eclipse.birt.report.data.oda.sampledb.ui/src/org/eclipse/birt/report/data/oda/sampledb/ui/profile/SampleDbSelectionPageHelper.java index f08ee96..10a4487 100644 --- a/data/org.eclipse.birt.report.data.oda.sampledb.ui/src/org/eclipse/birt/report/data/oda/sampledb/ui/profile/SampleDbSelectionPageHelper.java +++ b/data/org.eclipse.birt.report.data.oda.sampledb.ui/src/org/eclipse/birt/report/data/oda/sampledb/ui/profile/SampleDbSelectionPageHelper.java @@ -81,13 +81,17 @@ public class SampleDbSelectionPageHelper m_sampleUser = new Label( content, SWT.LEFT ); m_sampleUser.setText( SampleDBJDBCConnectionFactory.getDbUser( ) );//$NON-NLS-1$ - if (parent.getShell().getText().startsWith("New Data Source")) + if ( this.m_wizardPage.getPreviousPage( ) + .getClass( ) + .toString( ) + .contains( "DataSourceSelectionPage" ) ) { setMessage( DEFAULT_MESSAGE, IMessageProvider.NONE ); } - else + else { - setMessage( Messages.getMessage( "datasource.page.warning" ), IMessageProvider.WARNING); + setMessage( Messages.getMessage( "datasource.page.warning" ), + IMessageProvider.WARNING ); } PlatformUI.getWorkbench( ).getHelpSystem( ).setHelp( getControl(), |

