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 182306 Details for
Bug 329334
[Backport] Concurrent access to file while decorating
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch v.0.1
patch3_5.txt (text/plain), 1.84 KB, created by
Szymon Ptaszkiewicz
on 2010-11-03 12:04:34 EDT
(
hide
)
Description:
Patch v.0.1
Filename:
MIME Type:
Creator:
Szymon Ptaszkiewicz
Created:
2010-11-03 12:04:34 EDT
Size:
1.84 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.ui.ide >Index: src/org/eclipse/ui/internal/ide/ContentTypeDecorator.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/ContentTypeDecorator.java,v >retrieving revision 1.5 >diff -u -r1.5 ContentTypeDecorator.java >--- src/org/eclipse/ui/internal/ide/ContentTypeDecorator.java 20 Jan 2009 21:15:51 -0000 1.5 >+++ src/org/eclipse/ui/internal/ide/ContentTypeDecorator.java 3 Nov 2010 15:31:20 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2005, 2009 IBM Corporation and others. >+ * Copyright (c) 2005, 2010 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -14,6 +14,7 @@ > import org.eclipse.core.runtime.CoreException; > import org.eclipse.core.runtime.content.IContentDescription; > import org.eclipse.core.runtime.content.IContentType; >+import org.eclipse.core.runtime.jobs.Job; > import org.eclipse.jface.resource.ImageDescriptor; > import org.eclipse.jface.viewers.IDecoration; > import org.eclipse.jface.viewers.ILabelProviderListener; >@@ -42,10 +43,13 @@ > ImageDescriptor image = null; > IContentDescription contentDescription = null; > try { >+ Job.getJobManager().beginRule(file, null); > contentDescription = file.getContentDescription(); > } catch (CoreException e) { > // We already have some kind of icon for this file so it's OK to not > // find a better icon. >+ } finally { >+ Job.getJobManager().endRule(file); > } > if (contentDescription != null) { > IContentType contentType = contentDescription.getContentType();
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 329334
: 182306