|
1 | 1 | /******************************************************************************* |
2 | | - * Copyright (c) 2012, 2018 Christian Pontesegger and others. |
| 2 | + * Copyright (c) 2012, 2025 Christian Pontesegger and others. |
3 | 3 | * |
4 | 4 | * This program and the accompanying materials |
5 | 5 | * are made available under the terms of the Eclipse Public License 2.0 |
@@ -167,7 +167,6 @@ public ImageBrowserView() { |
167 | 167 | public void createPartControl(final Composite parent) { |
168 | 168 | final Composite composite = SWTFactory.createComposite(parent, 1, 1, GridData.FILL_BOTH, 0, 0); |
169 | 169 | PlatformUI.getWorkbench().getHelpSystem().setHelp(composite, IHelpContextIds.IMAGE_BROWSER_VIEW); |
170 | | - composite.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND)); |
171 | 170 | Composite topComp = new Composite(composite, SWT.NONE); |
172 | 171 | RowLayout layout = new RowLayout(); |
173 | 172 | // need to center vertically, otherwise its looks misaligned |
@@ -231,12 +230,9 @@ public void createPartControl(final Composite parent) { |
231 | 230 | spinMaxImages.setSelection(250); |
232 | 231 | spinMaxImages.setLayoutData(GridDataFactory.fillDefaults().create()); |
233 | 232 | spinMaxImages.addModifyListener(e -> { |
234 | | - Display.getCurrent().asyncExec(new Runnable() { |
235 | | - @Override |
236 | | - public void run() { |
237 | | - page = 0; // reset to 1st page |
238 | | - scanImages(); |
239 | | - } |
| 233 | + Display.getCurrent().asyncExec(() -> { |
| 234 | + page = 0; // reset to 1st page |
| 235 | + scanImages(); |
240 | 236 | }); |
241 | 237 | }); |
242 | 238 |
|
|
0 commit comments