Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 175608 Details for
Bug 321398
Deadlock occuring due to ModuleStructuralModel.checkSync()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Go to the LocalManager to do the refresh
rtc53609.patch (text/plain), 1.69 KB, created by
Carl Anderson
on 2010-07-30 15:27:26 EDT
(
hide
)
Description:
Go to the LocalManager to do the refresh
Filename:
MIME Type:
Creator:
Carl Anderson
Created:
2010-07-30 15:27:26 EDT
Size:
1.69 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.wst.common.modulecore >Index: modulecore-src/org/eclipse/wst/common/componentcore/internal/ModuleStructuralModel.java >=================================================================== >RCS file: /cvsroot/webtools/common/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/ModuleStructuralModel.java,v >retrieving revision 1.57 >diff -u -r1.57 ModuleStructuralModel.java >--- modulecore-src/org/eclipse/wst/common/componentcore/internal/ModuleStructuralModel.java 6 May 2010 18:24:53 -0000 1.57 >+++ modulecore-src/org/eclipse/wst/common/componentcore/internal/ModuleStructuralModel.java 30 Jul 2010 17:17:37 -0000 >@@ -19,6 +19,7 @@ > import java.util.List; > import java.util.Map; > >+import org.eclipse.core.internal.resources.Workspace; > import org.eclipse.core.resources.IFile; > import org.eclipse.core.resources.IResource; > import org.eclipse.core.resources.IWorkspace; >@@ -286,9 +287,12 @@ > if (iofile.exists() || compFile.exists()) { > IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot(); > try { >- // OK wait to get workspace root before refreshing >- Job.getJobManager().beginRule(root, null); >- compFile.getProject().refreshLocal(IResource.DEPTH_INFINITE, null); >+ Workspace workspace = (Workspace)compFile.getWorkspace(); >+ if (workspace.getElementTree().isImmutable()) >+ { >+ workspace.newWorkingTree(); >+ } >+ ((org.eclipse.core.internal.resources.Resource)compFile).getLocalManager().refresh(compFile.getProject(), IResource.DEPTH_INFINITE, true, null); > } catch (CoreException ce) { > // ignore > } finally {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 321398
:
175608
|
175613