summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpshi2011-10-26 01:35:06 (EDT)
committer mwu2011-10-26 01:35:06 (EDT)
commit7875a0c4df5a5f0343417abdea0ab3370516b770 (patch)
treec5405670754af5beae21cc6a83446190b2fd8dd9
parent5696eddc8e83d84b7b9f801071091ee9a3eb39bd (diff)
downloadorg.eclipse.birt-7875a0c4df5a5f0343417abdea0ab3370516b770.zip
org.eclipse.birt-7875a0c4df5a5f0343417abdea0ab3370516b770.tar.gz
org.eclipse.birt-7875a0c4df5a5f0343417abdea0ab3370516b770.tar.bz2
fix ted bug 42960, add tool tip for SQL Data Set Editor's Scheme Filter
-rw-r--r--data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/editors/SQLDataSetEditorPage.java20
-rw-r--r--data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/nls/JdbcPluginResources.properties3
2 files changed, 20 insertions, 3 deletions
diff --git a/data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/editors/SQLDataSetEditorPage.java b/data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/editors/SQLDataSetEditorPage.java
index 3df7e7b..f0cbafc 100644
--- a/data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/editors/SQLDataSetEditorPage.java
+++ b/data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/editors/SQLDataSetEditorPage.java
@@ -75,6 +75,7 @@ import org.eclipse.swt.events.MenuDetectEvent;
import org.eclipse.swt.events.MenuDetectListener;
import org.eclipse.swt.events.MouseAdapter;
import org.eclipse.swt.events.MouseEvent;
+import org.eclipse.swt.events.MouseTrackAdapter;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.layout.GridData;
@@ -504,14 +505,29 @@ public class SQLDataSetEditorPage extends DataSetWizardPage
schemaCombo.setLayoutData( gd );
schemaCombo.setVisibleItemCount( 30 );
- Label FilterLabel = new Label( selectTableGroup, SWT.LEFT );
- FilterLabel.setText( JdbcPlugin.getResourceString( "tablepage.label.filter" ) );
+ final Label filterLabel = new Label( selectTableGroup, SWT.LEFT );
+ filterLabel.setText( JdbcPlugin.getResourceString( "tablepage.label.filter" ) );
+ filterLabel.addMouseTrackListener( new MouseTrackAdapter( ) {
+
+ public void mouseHover( MouseEvent event )
+ {
+ filterLabel.setToolTipText( JdbcPlugin.getResourceString( "tablepage.label.filter.tooltip" ) );
+ }
+ } );
searchTxt = new Text( selectTableGroup, SWT.BORDER );
GridData searchTxtData = new GridData( GridData.FILL_HORIZONTAL );
searchTxtData.horizontalSpan = 2;
searchTxt.setLayoutData( searchTxtData );
+ searchTxt.addMouseTrackListener( new MouseTrackAdapter( ) {
+ public void mouseHover( MouseEvent event )
+ {
+ searchTxt.setToolTipText( JdbcPlugin.getResourceString( "tablepage.label.filter.tooltip" ) );
+ }
+ } );
+
+
// Select Type
Label selectTypeLabel = new Label( selectTableGroup, SWT.NONE );
selectTypeLabel.setText( JdbcPlugin.getResourceString( "tablepage.label.selecttype" ) );
diff --git a/data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/nls/JdbcPluginResources.properties b/data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/nls/JdbcPluginResources.properties
index 6cf1a6b..bc6439e 100644
--- a/data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/nls/JdbcPluginResources.properties
+++ b/data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/nls/JdbcPluginResources.properties
@@ -126,4 +126,5 @@ designer.preview.preference.resultset.maxNoOfTable.errormessage=Please enter a n
designer.preview.preference.resultset.timeOutLimit.errormessage=Please enter a number between 0 and {0} for seconds of time out limit time.
designer.preview.preference.resultset.maxrow.description=Maximum number of &rows to display:
designer.preview.preference.resultset.maxrow.errormessage=Please enter a number between 1 and {0} for maximum row.
-designer.preview.preference.resultset.sqldatasetpage.group.title=Query Page \ No newline at end of file
+designer.preview.preference.resultset.sqldatasetpage.group.title=Query Page
+tablepage.label.filter.tooltip=% allows you to match any string of any length (including zero length) \n _ allows you to match on a single character \ No newline at end of file