Skip to content

Commit

Permalink
Merge pull request #490 from eclipse/bugfix/FixBuild
Browse files Browse the repository at this point in the history
Bug #489 - Nebula 2.7.2 releng
  • Loading branch information
lcaron authored Aug 17, 2022
2 parents 9b34b7e + 18decd2 commit 853b249
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6278,10 +6278,10 @@ void updateColumnSelection() {
* Initialize all listeners.
*/
private void initListeners() {
disposeListener = e -> onDispose(e);
disposeListener = this::onDispose;
addListener(SWT.Dispose, disposeListener);

addPaintListener(e -> onPaint(e));
addPaintListener(this::onPaint);

addListener(SWT.Resize, e -> onResize());

Expand All @@ -6293,7 +6293,7 @@ private void initListeners() {
getHorizontalBar().addListener(SWT.Selection, e -> onScrollSelection());
}

defaultKeyListener = e -> onKeyDown(e);
defaultKeyListener = this::onKeyDown;
addListener(SWT.KeyDown, defaultKeyListener);

addTraverseListener(e -> {
Expand Down Expand Up @@ -6322,7 +6322,7 @@ private void initListeners() {
addListener(SWT.MouseDown, this::onMouseDown);
addListener(SWT.MouseUp, this::onMouseUp);

addMouseMoveListener(e -> onMouseMove(e));
addMouseMoveListener(this::onMouseMove);

addMouseTrackListener(new MouseTrackListener() {
@Override
Expand Down Expand Up @@ -6354,7 +6354,7 @@ public void focusLost(final FocusEvent e) {

// Special code to reflect mouse wheel events if using an external
// scroller
addListener(SWT.MouseWheel, e -> onMouseWheel(e));
addListener(SWT.MouseWheel, this::onMouseWheel);
}

/**
Expand Down Expand Up @@ -9488,15 +9488,15 @@ public void getChildren(final AccessibleControlEvent e) {

for (int i = 0; i < items.size(); i++) {
if (items.get(i).getParentItem() == null) {
children[j] = new Integer(i);
children[j] = Integer.valueOf(i);
j++;
}
}
e.children = children;
} else {
final Object[] children = new Object[length];
for (int i = 0; i < items.size(); i++) {
children[i] = new Integer(i);
children[i] = Integer.valueOf(i);
}
e.children = children;
}
Expand Down Expand Up @@ -9631,7 +9631,7 @@ public void getSelection(final AccessibleControlEvent e) {

for (int i = 0; i < length; i++) {
final GridItem item = selectedItems.get(i);
children[i] = new Integer(item.getRowIndex());
children[i] = Integer.valueOf(item.getRowIndex());
}
e.children = children;
}
Expand Down

0 comments on commit 853b249

Please sign in to comment.