directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r752286 - in /directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser: BrowserQuickSearchWidget.java messages.properties messages_de.properties
Date Tue, 10 Mar 2009 22:35:56 GMT
Author: seelmann
Date: Tue Mar 10 22:35:56 2009
New Revision: 752286

URL: http://svn.apache.org/viewvc?rev=752286&view=rev
Log:
Added tooltips

Modified:
    directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/BrowserQuickSearchWidget.java
    directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/messages.properties
    directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/messages_de.properties

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/BrowserQuickSearchWidget.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/BrowserQuickSearchWidget.java?rev=752286&r1=752285&r2=752286&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/BrowserQuickSearchWidget.java
(original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/BrowserQuickSearchWidget.java
Tue Mar 10 22:35:56 2009
@@ -218,7 +218,6 @@
         quickSearchScopeButton.setToolTipText( Messages.getString( "BrowserQuickSearchWidget.ScopeOneLevelToolTip"
) ); //$NON-NLS-1$
         quickSearchScopeButton.setImage( BrowserCommonActivator.getDefault().getImage(
             BrowserCommonConstants.IMG_SUBTREE ) );
-        quickSearchScopeButton.setEnabled( true );
         quickSearchScopeButton.addSelectionListener( new SelectionAdapter()
         {
             public void widgetSelected( SelectionEvent e )
@@ -233,7 +232,6 @@
         quickSearchRunButton.setToolTipText( Messages.getString( "BrowserQuickSearchWidget.RunQuickSearch"
) ); //$NON-NLS-1$
         quickSearchRunButton.setImage( BrowserCommonActivator.getDefault().getImage(
             BrowserCommonConstants.IMG_QUICKSEARCH ) );
-        quickSearchRunButton.setEnabled( true );
         quickSearchRunButton.addSelectionListener( new SelectionAdapter()
         {
             public void widgetSelected( SelectionEvent e )
@@ -374,8 +372,23 @@
             quickSearchAttributeCombo.setEnabled( enabled );
             quickSearchOperatorCombo.setEnabled( enabled );
             quickSearchValueCombo.setEnabled( enabled );
+            quickSearchScopeButton.setEnabled( enabled );
             quickSearchRunButton.setEnabled( enabled && !"".equals( quickSearchAttributeCombo.getText()
) );
         }
+        if ( !enabled )
+        {
+            quickSearchAttributeCombo.setToolTipText( null );
+            quickSearchOperatorCombo.setToolTipText( null );
+            quickSearchValueCombo.setToolTipText( null );
+            parent.setToolTipText( Messages.getString( "BrowserQuickSearchWidget.DisabledToolTipText"
) ); //$NON-NLS-1$
+        }
+        else
+        {
+            quickSearchAttributeCombo.setToolTipText( Messages.getString( "BrowserQuickSearchWidget.SearchAttribute"
) ); //$NON-NLS-1$
+            quickSearchOperatorCombo.setToolTipText( Messages.getString( "BrowserQuickSearchWidget.SearchOperator"
) ); //$NON-NLS-1$
+            quickSearchValueCombo.setToolTipText( Messages.getString( "BrowserQuickSearchWidget.SearchValue"
) ); //$NON-NLS-1$
+            parent.setToolTipText( null );
+        }
     }
 
 

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/messages.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/messages.properties?rev=752286&r1=752285&r2=752286&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/messages.properties
(original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/messages.properties
Tue Mar 10 22:35:56 2009
@@ -48,3 +48,7 @@
 BrowserQuickSearchWidget.RunQuickSearch=Run Quick Search
 BrowserQuickSearchWidget.ScopeOneLevelToolTip=Search one level only
 BrowserQuickSearchWidget.ScopeSubtreeToolTip=Search whole subtree
+BrowserQuickSearchWidget.SearchAttribute=Search Attribute
+BrowserQuickSearchWidget.SearchOperator=Search Operator, one of 'equal', 'not equal', 'less
than or equal', 'greater then or equal', 'approximately'
+BrowserQuickSearchWidget.SearchValue=Search Value
+BrowserQuickSearchWidget.DisabledToolTipText=Please select one search base entry to activate
quick search.

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/messages_de.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/messages_de.properties?rev=752286&r1=752285&r2=752286&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/messages_de.properties
(original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/messages_de.properties
Tue Mar 10 22:35:56 2009
@@ -47,4 +47,8 @@
 ShowQuickSearchAction.ShowQuickSearch=Schnellsuche anzeigen
 BrowserQuickSearchWidget.RunQuickSearch=Schnellsuche ausführen
 BrowserQuickSearchWidget.ScopeOneLevelToolTip=Nur eine Ebene durchsuchen (One Level)
-BrowserQuickSearchWidget.ScopeSubtreeToolTip=Gesamten Teilbaum durchsuchen (Subtree)
\ No newline at end of file
+BrowserQuickSearchWidget.ScopeSubtreeToolTip=Gesamten Teilbaum durchsuchen (Subtree)
+BrowserQuickSearchWidget.SearchAttribute=Suchattribut
+BrowserQuickSearchWidget.SearchOperator=Suchoperation: 'gleich', 'ungleich', 'kleiner oder
gleich', 'größer oder gleich', 'ungefähr'
+BrowserQuickSearchWidget.SearchValue=Suchwert
+BrowserQuickSearchWidget.DisabledToolTipText=Bitte einen Basis-Eintrag für die Schnellsuche
auswählen



Mime
View raw message