mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 14:15:23 +02:00
Yes more logs, tricky bug.
Change-Id: I716d388ccb21070d02722ae958cfcf6ddf9e2a3e
This commit is contained in:
parent
ede3252c71
commit
f6809dae38
1 changed files with 7 additions and 1 deletions
|
@ -69,6 +69,7 @@ public abstract class CSelector extends Composite {
|
|||
private MouseListener mouseListener = new MouseAdapter() {
|
||||
@Override
|
||||
public void mouseUp(MouseEvent event) {
|
||||
Activator.log(new Throwable(getClass().getName() + " mouse up"));
|
||||
if (popup == null || popup.isDisposed()) {
|
||||
setFocus();
|
||||
openPopup();
|
||||
|
@ -76,6 +77,10 @@ public abstract class CSelector extends Composite {
|
|||
closePopup();
|
||||
}
|
||||
}
|
||||
|
||||
public void mouseDown(MouseEvent e) {
|
||||
Activator.log(new Throwable(getClass().getName() + " mouse down"));
|
||||
}
|
||||
};
|
||||
|
||||
protected boolean myIsFocusAncestor(Control control) {
|
||||
|
@ -137,7 +142,7 @@ public abstract class CSelector extends Composite {
|
|||
|
||||
public CSelector(Composite parent, int style) {
|
||||
super(parent, style);
|
||||
Activator.log(new Throwable(getClass().getName() + " created"));
|
||||
Activator.log(new Throwable(getClass().getName() + ':' + Integer.toHexString(hashCode()) + " created"));
|
||||
setBackground(getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND));
|
||||
|
||||
GridLayout mainButtonLayout = new GridLayout();
|
||||
|
@ -170,6 +175,7 @@ public abstract class CSelector extends Composite {
|
|||
super.dispose();
|
||||
if (popup != null)
|
||||
popup.dispose();
|
||||
Activator.log(new Throwable(getClass().getName() + ':' + Integer.toHexString(hashCode()) + " disposed"));
|
||||
}
|
||||
|
||||
public void setDelayedSelection(final Object element, long millis) {
|
||||
|
|
Loading…
Add table
Reference in a new issue