1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-26 02:15:31 +02:00

Yes more logs, tricky bug.

Change-Id: I716d388ccb21070d02722ae958cfcf6ddf9e2a3e
This commit is contained in:
Doug Schaefer 2017-07-11 15:22:21 -04:00
parent ede3252c71
commit f6809dae38

View file

@ -69,6 +69,7 @@ public abstract class CSelector extends Composite {
private MouseListener mouseListener = new MouseAdapter() { private MouseListener mouseListener = new MouseAdapter() {
@Override @Override
public void mouseUp(MouseEvent event) { public void mouseUp(MouseEvent event) {
Activator.log(new Throwable(getClass().getName() + " mouse up"));
if (popup == null || popup.isDisposed()) { if (popup == null || popup.isDisposed()) {
setFocus(); setFocus();
openPopup(); openPopup();
@ -76,6 +77,10 @@ public abstract class CSelector extends Composite {
closePopup(); closePopup();
} }
} }
public void mouseDown(MouseEvent e) {
Activator.log(new Throwable(getClass().getName() + " mouse down"));
}
}; };
protected boolean myIsFocusAncestor(Control control) { protected boolean myIsFocusAncestor(Control control) {
@ -137,7 +142,7 @@ public abstract class CSelector extends Composite {
public CSelector(Composite parent, int style) { public CSelector(Composite parent, int style) {
super(parent, 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)); setBackground(getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND));
GridLayout mainButtonLayout = new GridLayout(); GridLayout mainButtonLayout = new GridLayout();
@ -170,6 +175,7 @@ public abstract class CSelector extends Composite {
super.dispose(); super.dispose();
if (popup != null) if (popup != null)
popup.dispose(); popup.dispose();
Activator.log(new Throwable(getClass().getName() + ':' + Integer.toHexString(hashCode()) + " disposed"));
} }
public void setDelayedSelection(final Object element, long millis) { public void setDelayedSelection(final Object element, long millis) {