Skip to content

Commit

Permalink
check
Browse files Browse the repository at this point in the history
  • Loading branch information
BenAlvo1 committed Apr 25, 2024
1 parent b2e38ca commit 2a0e38f
Showing 1 changed file with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import org.eclipse.core.runtime.*;
import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.e4.ui.di.UISynchronize;
import org.eclipse.e4.ui.internal.workbench.E4Workbench;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.preference.PreferenceDialog;
import org.eclipse.jface.viewers.*;
Expand Down Expand Up @@ -124,8 +123,21 @@ public class CheckmarxView extends ViewPart implements EventHandler {

Font boldFont, titleFont;

UISynchronize sync = E4Workbench.getServiceContext().get(UISynchronize.class);
UISynchronize sync = createUISynchronize(PlatformUI.getWorkbench().getDisplay());

private UISynchronize createUISynchronize(Display display) {
return new UISynchronize() {
@Override
public void syncExec(Runnable runnable) {
display.syncExec(runnable);
}

@Override
public void asyncExec(Runnable runnable) {
display.asyncExec(runnable);
}
};
}
private Composite resultViewComposite;
private Composite attackVectorCompositePanel;
private Composite titleComposite;
Expand Down

0 comments on commit 2a0e38f

Please sign in to comment.