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 11311 Details for
Bug 64692
createEmptyDocument doesn't work with contentType
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 for above problem
createEmpty.patch (text/plain), 1.06 KB, created by
David Williams
on 2004-05-30 01:47:50 EDT
(
hide
)
Description:
patch for above problem
Filename:
MIME Type:
Creator:
David Williams
Created:
2004-05-30 01:47:50 EDT
Size:
1.06 KB
patch
obsolete
>Index: ExtensionsRegistry.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ExtensionsRegistry.java,v >retrieving revision 1.8 >diff -u -r1.8 ExtensionsRegistry.java >--- ExtensionsRegistry.java 6 May 2004 17:52:58 -0000 1.8 >+++ ExtensionsRegistry.java 30 May 2004 04:54:11 -0000 >@@ -387,15 +387,16 @@ > } > > private IContentType[] findContentTypes(IPath path) { >+ IContentDescription contentDescription = null; > IFile file= FileBuffers.getWorkspaceFileAtLocation(path); >- if (file == null) >- return new IContentType[0]; >+ if (file != null) { >+ //return new IContentType[0]; > >- IContentDescription contentDescription; >- try { >- contentDescription= file.getContentDescription(); >- } catch (CoreException ex) { >- contentDescription= null; >+ try { >+ contentDescription= file.getContentDescription(); >+ } catch (CoreException ex) { >+ contentDescription= null; >+ } > } > > if (contentDescription != null) {
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 Raw
Actions:
View
Attachments on
bug 64692
: 11311