mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 14:55:41 +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);
|
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() {
|
protected void openPopup() {
|
||||||
|
Activator.log(CSelector.this.getClass().getName() + " opening");
|
||||||
Object[] elements = contentProvider.getElements(input);
|
Object[] elements = contentProvider.getElements(input);
|
||||||
if (elements.length == 0 && !hasActionArea())
|
if (elements.length == 0 && !hasActionArea())
|
||||||
return;
|
return;
|
||||||
|
@ -342,6 +343,7 @@ public abstract class CSelector extends Composite {
|
||||||
saveShellSize();
|
saveShellSize();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Activator.log(CSelector.this.getClass().getName() + " openned");
|
||||||
}
|
}
|
||||||
|
|
||||||
protected String getDialogPreferencePrefix() {
|
protected String getDialogPreferencePrefix() {
|
||||||
|
@ -382,14 +384,18 @@ public abstract class CSelector extends Composite {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void closePopup() {
|
private void closePopup() {
|
||||||
|
Activator.log(new Throwable(CSelector.this.getClass().getName() + " close requested"));
|
||||||
getDisplay().asyncExec(new Runnable() {
|
getDisplay().asyncExec(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
if (popup == null || popup.isDisposed())
|
if (popup == null || popup.isDisposed()) {
|
||||||
|
Activator.log(CSelector.this.getClass().getName() + " close aborted");
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
arrowTransition.to(arrowMax);
|
arrowTransition.to(arrowMax);
|
||||||
popup.setVisible(false);
|
popup.setVisible(false);
|
||||||
popup.dispose();
|
popup.dispose();
|
||||||
|
Activator.log(CSelector.this.getClass().getName() + " closed");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue