directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r824343 - /directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/EntryEditor.java
Date Mon, 12 Oct 2009 14:08:17 GMT
Author: seelmann
Date: Mon Oct 12 14:08:17 2009
New Revision: 824343

URL: http://svn.apache.org/viewvc?rev=824343&view=rev
Log:
Refresh instead of set input, to avoid flickering

Modified:
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/EntryEditor.java

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/EntryEditor.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/EntryEditor.java?rev=824343&r1=824342&r2=824343&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/EntryEditor.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/EntryEditor.java
Mon Oct 12 14:08:17 2009
@@ -387,10 +387,16 @@
      */
     public void workingCopyModified( Object source )
     {
-        setEntryEditorWidgetInput( getEntryEditorInput() );
+        if ( mainWidget != null && !mainWidget.getViewer().isCellEditorActive() )
+        {
+            ISelection selection = mainWidget.getViewer().getSelection();
+            mainWidget.getViewer().refresh();
+            mainWidget.getViewer().setSelection( selection );
+        }
+
         if ( !isAutoSave() )
         {
-            // mark as dirty only
+            // mark as dirty
             firePropertyChange( PROP_DIRTY );
         }
     }
@@ -403,13 +409,9 @@
      */
     private void setEntryEditorWidgetInput( EntryEditorInput eei )
     {
-        // don't update input if an cell editor is active
-        if ( mainWidget != null && !mainWidget.getViewer().isCellEditorActive() )
+        if ( mainWidget != null )
         {
-            // set input, remember old selection and set it afterwards
-            ISelection selection = mainWidget.getViewer().getSelection();
             universalListener.setInput( eei.getSharedWorkingCopy( this ) );
-            mainWidget.getViewer().setSelection( selection );
         }
     }
 



Mime
View raw message