Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 64690 - createEmptyDocument doesn't work
Summary: createEmptyDocument doesn't work
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 blocker (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-29 23:14 EDT by David Williams CLA
Modified: 2004-05-29 23:28 EDT (History)
0 users

See Also:


Attachments
patch file adding test case showing above failure (1.74 KB, text/plain)
2004-05-29 23:24 EDT, David Williams CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Williams CLA 2004-05-29 23:14:31 EDT
I hate to open so many "blockers", but it appears that fileBufferManager.
createEmptyDocument simply does not work for either project locations or 
absolute file locations. I *think* I'm reading the doc's correctly that you 
should be able to create a document, even though the resource doesn't exist yet. 
We certainly have the need to do this ... to create documents, some of them may 
be eventually saved as resource, but some are intentionally transient. The 
reason this is so critical is that we need to be able to take advantage of 
content type registration for DocumentFactories and create empty documents 
without knowing ahead of time which factories to call. This bug is not dependent 
on content types, though. I'll attach test case that shows failure for simple 
non-exising text "file".
Comment 1 David Williams CLA 2004-05-29 23:24:33 EDT
Created attachment 11310 [details]
patch file adding test case showing above failure
Comment 2 David Williams CLA 2004-05-29 23:28:33 EDT
Nevermind ... I see my error in this test case was the 'connect' ... I guess you 
are not suppose to connect to a file location that does not exist. I had assumed 
it would sort of "reserve" an empty file buffer, but I'm guessing current design 
is workable. Sorry for churn. [You're still welcome to the test case, without 
the "connect" :) ]