Delayed update of status label in GotoSymbolDialog
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user