directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r811135 - /directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/MultiTabEntryEditor.java
Date Thu, 03 Sep 2009 21:31:52 GMT
Author: seelmann
Date: Thu Sep  3 21:31:50 2009
New Revision: 811135

URL: http://svn.apache.org/viewvc?rev=811135&view=rev
Log:
Don't use the provided progress monitor as it runs in the UI thread.

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

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/MultiTabEntryEditor.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/MultiTabEntryEditor.java?rev=811135&r1=811134&r2=811135&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/MultiTabEntryEditor.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/MultiTabEntryEditor.java
Thu Sep  3 21:31:50 2009
@@ -21,8 +21,6 @@
 package org.apache.directory.studio.ldapbrowser.ui.editors.entry;
 
 
-import java.lang.reflect.InvocationTargetException;
-
 import org.apache.directory.studio.connection.core.Connection;
 import org.apache.directory.studio.connection.ui.RunnableContextRunner;
 import org.apache.directory.studio.entryeditors.EntryEditorInput;
@@ -43,8 +41,6 @@
 import org.apache.directory.studio.ldifparser.model.container.LdifContentRecord;
 import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.core.runtime.IStatus;
-import org.eclipse.jface.operation.IRunnableContext;
-import org.eclipse.jface.operation.IRunnableWithProgress;
 import org.eclipse.ui.IEditorInput;
 
 
@@ -136,19 +132,10 @@
             LdifChangeModifyRecord diff = getDiff();
             if ( diff != null )
             {
-                IRunnableContext runnableContext = new IRunnableContext()
-                {
-                    public void run( boolean fork, boolean cancelable, IRunnableWithProgress
runnable )
-                        throws InvocationTargetException, InterruptedException
-                    {
-                        runnable.run( monitor );
-                    }
-                };
-
                 // save
                 ExecuteLdifRunnable runnable = new ExecuteLdifRunnable( browserConnection,
diff
                     .toFormattedString( LdifFormatParameters.DEFAULT ), false, false );
-                IStatus status = RunnableContextRunner.execute( runnable, runnableContext,
true );
+                IStatus status = RunnableContextRunner.execute( runnable, null, true );
                 if ( status.isOK() )
                 {
                     // set new input and refresh the dirty state



Mime
View raw message