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
synchronise resource tree modification #459
Conversation
I have made a number of assumptions in this PR, which I would like to be validated as part of the review. thanks in advance to whover is going to do that!
|
@iloveeclipse can you please review this pr? |
The core should not depend on the UI! I think you could use one of these instead of scheduling a job: org.eclipse.core.resources.IWorkspace.run(ICoreRunnable, ISchedulingRule, int, IProgressMonitor) org.eclipse.pde.internal.core.BundleValidationOperation uses that approach. |
Will try, have few other PR's in the review list. |
ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/SearchablePluginsManager.java
Outdated
Show resolved
Hide resolved
ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/pderesources.properties
Outdated
Show resolved
Hide resolved
c515057
to
11321ab
Compare
@merks @iloveeclipse - pushed new change with the approach suggested, pls have a look; thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
General note: looks now better in code, haven't validated if the problem disappears.
- Please rebase on latest master state (do not merge!)
- Please bump last bundle version segment with +100.
ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/SearchablePluginsManager.java
Show resolved
Hide resolved
ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/SearchablePluginsManager.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't validated, but my questions were answered now, so should in theory work.
SearchablePluginsManager saves the state of the resources in the workspace without acquiring a lock, or not scheduling the job asynchronously. Fix it by employing the ICoreRunnable scheduler.
there are not outstanding review comments, so this should be ready to merge, has been in this state for a while. |
Sorry, too many bugs & reviews... |
@gireeshpunathil thanks for fixing, @iloveeclipse thanks for review |
SearchablePluginsManager saves the state of the resources in the workspace without acquiring a lock, or not scheduling the job asynchronously.
Fix it by employing the WorkspaceJob scheduler.
Fixes: #64