Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2012, 2018 Christian Pontesegger and others.
* Copyright (c) 2012, 2025 Christian Pontesegger and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
Expand Down Expand Up @@ -167,7 +167,6 @@ public ImageBrowserView() {
public void createPartControl(final Composite parent) {
final Composite composite = SWTFactory.createComposite(parent, 1, 1, GridData.FILL_BOTH, 0, 0);
PlatformUI.getWorkbench().getHelpSystem().setHelp(composite, IHelpContextIds.IMAGE_BROWSER_VIEW);
composite.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND));
Composite topComp = new Composite(composite, SWT.NONE);
RowLayout layout = new RowLayout();
// need to center vertically, otherwise its looks misaligned
Expand Down Expand Up @@ -231,12 +230,9 @@ public void createPartControl(final Composite parent) {
spinMaxImages.setSelection(250);
spinMaxImages.setLayoutData(GridDataFactory.fillDefaults().create());
spinMaxImages.addModifyListener(e -> {
Display.getCurrent().asyncExec(new Runnable() {
@Override
public void run() {
page = 0; // reset to 1st page
scanImages();
}
Display.getCurrent().asyncExec(() -> {
page = 0; // reset to 1st page
scanImages();
});
});

Expand Down
Loading