Source:
<code>public IStatus run(IProgressMonitor monitor) { FlowScopeLog parentScope = fParentScope; FlowScopeLogBuilder flowScopeLogBuilder = new FlowScopeLogBuilder(LOGGER, Level.FINE, "OpenProjectElementJob").setCategory(LOCAL_CATEGORY); try (FlowScopeLog log = parentScope == null ? flowScopeLogBuilder.build() : flowScopeLogBuilder.setParentScope(parentScope).build();) { fTrace = openProjectElement(fTraceElement); if (fTrace == null) { return Status.OK_STATUS; } String traceEditorId = fTraceElement.getEditorId(); final String editorId = (traceEditorId != null) ? traceEditorId : TmfEventsEditor.ID; final IEditorInput editorInput = new TmfEditorInput(fFile, fTrace); Display.getDefault().asyncExec(() -> { try (FlowScopeLog displayLog = new FlowScopeLogBuilder(LOGGER, Level.FINE, <START> "OpenEditor").setParentScope(log).setCategory(LOCAL_CATEGORY).build();) <END> { IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow(); if (window == null) { return; } final IWorkbenchPage activePage = window.getActivePage(); if (activePage == null) { return; } try { activePage.openEditor(editorInput, editorId); IDE.setDefaultEditor(fFile, editorId); } catch (final PartInitException e) { TraceUtils.displayErrorMsg(NLS.bind(Messages.TmfOpenTraceHelper_OpenElement, fTraceElement.getTypeName()), NLS.bind(Messages.TmfOpenTraceHelper_ErrorOpeningElement, fTraceElement.getTypeName()) + ENDL + ENDL + e.getMessage()); Activator.getDefault().logError(NLS.bind(Messages.TmfOpenTraceHelper_ErrorOpeningElement, fTraceElement.getTypeName()) + ' ' + fTraceElement.getName()); fTrace.dispose(); } } }); return Status.OK_STATUS; } }</code><technical_language>OpenEditor openEditor above</technical_language>

Target:
public IStatus run(IProgressMonitor monitor) { FlowScopeLog parentScope = fParentScope; FlowScopeLogBuilder flowScopeLogBuilder = new FlowScopeLogBuilder(LOGGER, Level.FINE, "OpenProjectElementJob"); try (FlowScopeLog log = parentScope == null ? flowScopeLogBuilder.setCategory(LOCAL_CATEGORY).build() : flowScopeLogBuilder.setParentScope(parentScope).build();) { fTrace = openProjectElement(fTraceElement); if (fTrace == null) { return Status.OK_STATUS; } String traceEditorId = fTraceElement.getEditorId(); final String editorId = (traceEditorId != null) ? traceEditorId : TmfEventsEditor.ID; final IEditorInput editorInput = new TmfEditorInput(fFile, fTrace); Display.getDefault().asyncExec(() -> { try (FlowScopeLog displayLog = new FlowScopeLogBuilder(LOGGER, Level.FINE, "OpenEditor").setParentScope(log).build();) { IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow(); if (window == null) { return; } final IWorkbenchPage activePage = window.getActivePage(); if (activePage == null) { return; } try { activePage.openEditor(editorInput, editorId); IDE.setDefaultEditor(fFile, editorId); } catch (final PartInitException e) { TraceUtils.displayErrorMsg(NLS.bind(Messages.TmfOpenTraceHelper_OpenElement, fTraceElement.getTypeName()), NLS.bind(Messages.TmfOpenTraceHelper_ErrorOpeningElement, fTraceElement.getTypeName()) + ENDL + ENDL + e.getMessage()); Activator.getDefault().logError(NLS.bind(Messages.TmfOpenTraceHelper_ErrorOpeningElement, fTraceElement.getTypeName()) + ' ' + fTraceElement.getName()); fTrace.dispose(); } } }); return Status.OK_STATUS; } }