Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[jvm crash in swt] It is still happening #5348

Merged
merged 1 commit into from Sep 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 7 additions & 2 deletions bndtools.core/src/bndtools/explorer/BndtoolsExplorer.java
Expand Up @@ -242,20 +242,25 @@ public void dispose() {

@Override
public int tryToReveal(Object element) {
int result = super.tryToReveal(element);
afterReveal(element);
return result;
}

private void afterReveal(Object element) {
if (element instanceof IResource) {
model.setActualSelection(element);
model.setSelectedProject(getProject((IResource) element));
} else {
model.setActualSelection(null);
model.setSelectedProject(null);
}
return super.tryToReveal(element);
}

@Override
public void selectAndReveal(Object element) {
tryToReveal(element);
super.selectAndReveal(element);
afterReveal(element);
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion bndtools.core/src/bndtools/explorer/Model.java
Expand Up @@ -116,7 +116,7 @@ private void update0() {
try {
// coalesce some more updates on
// the worker thread(s).
Thread.sleep(10);
Thread.sleep(50);
pkriens marked this conversation as resolved.
Show resolved Hide resolved
} catch (InterruptedException e) {
Thread.currentThread()
.interrupt();
Expand Down