Skip to content

Over locking resources by using WorkbenchJob #445

@jonahgraham

Description

@jonahgraham

See comments by @iloveeclipse on comment: ccf1be4#r153083202 that I have tried to reproduce here

Is there any reason why the code starts a Workbench job to do a resource only operation in UI thread, locking both UI and workspace at same time?
Was it meant to be a WorkspaceJob???

WorkbenchJob job = new WorkbenchJob("Create " + ClangFormatFileMonitor.CLANG_FORMAT_FILE + " file") { //$NON-NLS-1$ //$NON-NLS-2$

This operation should better be done in the UI thread via Display.asyncExec(), but this is not the reason to run the whole job in UI thread.

cc: @travkin79 @ghentschke

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions