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 67221 Details for
Bug 185838
[Parts] CoreExceptions are thrown as PartInitExceptions by TextFileDocumentProvider
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 for Platform Text
patch.txt (text/plain), 1.55 KB, created by
Dani Megert
on 2007-05-15 08:47:28 EDT
(
hide
)
Description:
Patch for Platform Text
Filename:
MIME Type:
Creator:
Dani Megert
Created:
2007-05-15 08:47:28 EDT
Size:
1.55 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.ui.editors >Index: src/org/eclipse/ui/editors/text/TextFileDocumentProvider.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/TextFileDocumentProvider.java,v >retrieving revision 1.87 >diff -u -r1.87 TextFileDocumentProvider.java >--- src/org/eclipse/ui/editors/text/TextFileDocumentProvider.java 12 Apr 2007 07:19:31 -0000 1.87 >+++ src/org/eclipse/ui/editors/text/TextFileDocumentProvider.java 15 May 2007 12:40:33 -0000 >@@ -1115,10 +1115,10 @@ > IStatus status= info.fTextFileBuffer.getStatus(); > > // Ensure that we don't open an empty document for an non-existent IFile >- if (status.getSeverity() != IStatus.ERROR && element instanceof IFileEditorInput) { >- IFile file= FileBuffers.getWorkspaceFileAtLocation(info.fTextFileBuffer.getLocation()); >- if (file == null || !file.exists()) { >- String message= NLSUtility.format(TextEditorMessages.TextFileDocumentProvider_error_doesNotExist, ((IFileEditorInput)element).getFile().getFullPath()); >+ if (element instanceof IFileEditorInput || element instanceof IURIEditorInput) { >+ IFileStore fileStore= info.fTextFileBuffer.getFileStore(); >+ if (fileStore != null && !fileStore.fetchInfo().exists()) { >+ String message= NLSUtility.format(TextEditorMessages.TextFileDocumentProvider_error_doesNotExist, fileStore.toString()); > return new Status(IStatus.ERROR, EditorsUI.PLUGIN_ID, IResourceStatus.RESOURCE_NOT_FOUND, message, 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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 185838
:
66765
| 67221 |
82777
|
82778