mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-03 14:25:37 +02:00
Add some logging to debug test failures we're seeing on Linux.
Change-Id: I570733a2d3c81937a59cfa2aa93dfc98f6b6d325
This commit is contained in:
parent
12514becfb
commit
ac5c884286
2 changed files with 10 additions and 1 deletions
|
@ -80,4 +80,7 @@ public class Activator extends AbstractUIPlugin {
|
|||
plugin.getLog().log(status);
|
||||
}
|
||||
|
||||
public static void log(String msg) {
|
||||
plugin.getLog().log(new Status(IStatus.ERROR, PLUGIN_ID, msg));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -295,6 +295,7 @@ public abstract class CSelector extends Composite {
|
|||
}
|
||||
|
||||
protected void openPopup() {
|
||||
Activator.log(CSelector.this.getClass().getName() + " opening");
|
||||
Object[] elements = contentProvider.getElements(input);
|
||||
if (elements.length == 0 && !hasActionArea())
|
||||
return;
|
||||
|
@ -342,6 +343,7 @@ public abstract class CSelector extends Composite {
|
|||
saveShellSize();
|
||||
}
|
||||
});
|
||||
Activator.log(CSelector.this.getClass().getName() + " openned");
|
||||
}
|
||||
|
||||
protected String getDialogPreferencePrefix() {
|
||||
|
@ -382,14 +384,18 @@ public abstract class CSelector extends Composite {
|
|||
}
|
||||
|
||||
private void closePopup() {
|
||||
Activator.log(new Throwable(CSelector.this.getClass().getName() + " close requested"));
|
||||
getDisplay().asyncExec(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if (popup == null || popup.isDisposed())
|
||||
if (popup == null || popup.isDisposed()) {
|
||||
Activator.log(CSelector.this.getClass().getName() + " close aborted");
|
||||
return;
|
||||
}
|
||||
arrowTransition.to(arrowMax);
|
||||
popup.setVisible(false);
|
||||
popup.dispose();
|
||||
Activator.log(CSelector.this.getClass().getName() + " closed");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue