Delayed update of status label in GotoSymbolDialog

This commit is contained in:
Kris De Volder
2017-11-10 10:28:06 -08:00
parent fae25af3eb
commit 8877c2a0d5
2 changed files with 3 additions and 2 deletions

View File

@@ -11,6 +11,7 @@
*******************************************************************************/
package org.springframework.tooling.ls.eclipse.gotosymbol.dialogs;
import java.time.Duration;
import java.util.ArrayList;
import java.util.List;
@@ -275,7 +276,7 @@ public class GotoSymbolDialog extends PopupDialog {
Label statusLabel = new Label(dialogArea, SWT.NONE);
statusLabel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
SwtConnect.connect(statusLabel, model.getStatus());
SwtConnect.connect(statusLabel, model.getStatus(), Duration.ofMillis(500));
viewer.setInput(model);
return dialogArea;

View File

@@ -28,7 +28,7 @@ import com.google.common.collect.ImmutableSet;
public class GotoSymbolDialogModel {
private static final boolean DEBUG = (""+Platform.getLocation()).contains("kdvolder");
private static final boolean DEBUG = false;//(""+Platform.getLocation()).contains("kdvolder");
private static void debug(String string) {
if (DEBUG) {
System.out.println(string);