directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r813099 - /directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/RunnableContextRunner.java
Date Wed, 09 Sep 2009 20:12:52 GMT
Author: seelmann
Date: Wed Sep  9 20:12:52 2009
New Revision: 813099

URL: http://svn.apache.org/viewvc?rev=813099&view=rev
Log:
Use the progress service that opens a dialog when running longer than one second, instead
of opening a progress dialog immediately.

Modified:
    directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/RunnableContextRunner.java

Modified: directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/RunnableContextRunner.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/RunnableContextRunner.java?rev=813099&r1=813098&r2=813099&view=diff
==============================================================================
--- directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/RunnableContextRunner.java
(original)
+++ directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/RunnableContextRunner.java
Wed Sep  9 20:12:52 2009
@@ -32,10 +32,9 @@
 import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.core.runtime.IStatus;
 import org.eclipse.core.runtime.Status;
-import org.eclipse.jface.dialogs.ProgressMonitorDialog;
 import org.eclipse.jface.operation.IRunnableContext;
 import org.eclipse.jface.operation.IRunnableWithProgress;
-import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
 
 
 /**
@@ -60,7 +59,7 @@
     {
         if ( runnableContext == null )
         {
-            runnableContext = new ProgressMonitorDialog( Display.getDefault().getActiveShell()
);
+            runnableContext = PlatformUI.getWorkbench().getProgressService();
         }
 
         final StudioProgressMonitor[] spm = new StudioProgressMonitor[1];



Mime
View raw message