| Summary: | WTP document implementations should IDocumentExtension4. | ||
|---|---|---|---|
| Product: | [WebTools] WTP Source Editing | Reporter: | Dani Megert <daniel_megert> |
| Component: | wst.sse | Assignee: | David Williams <david_williams> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | david_williams, for.work.things |
| Version: | unspecified | ||
| Target Milestone: | 1.5 RC5 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
| Bug Depends on: | 102822 | ||
| Bug Blocks: | |||
|
Description
Dani Megert
Changing to P3 since the base platform is putting in fix. We still want to do this for .7, but a little less critical. *** Bug 102967 has been marked as a duplicate of this bug. *** This is important to "keep up" with basic Eclipse behavior in 3.1, for rewrite sessions, undo resetting to non-dirty state, and handing EOL preferences. I've started on implementing this (if you have too, Nitin, let's compare notes). Text's IDocumentExtension4 has: String getDefaultLineDelimiter(); void setInitialLineDelimiter(String lineDelimiter); SSE's IEncodedDocument has: String getPreferredLineDelimiter(); void setPreferredLineDelimiter(String probableLineDelimiter); These should be consolidated somehow. There's also SSE's IStructuredDocument, which is already extending IEncodedDocument, but it also has the following methods on its interface: public String getLineDelimiter(); public void setLineDelimiter(String delimiter); And not to mention the following (which are already in IEncodedDocument): void setEncodingMemento(EncodingMemento encodingMemento); EncodingMemento getEncodingMemento(); Bug 102822 includes having SSE's StructuredDocuments implementing IDocumentExtension4. So if that bug is fixed, I assume it's safe to say this bug is fixed as well? Resolving as fixed. Like I said in previous comment, bug 102822 included a fix for this bug as well. And marking this bug dependent on bug 102822 in case something happens and that bug's fix is rolled back. I am closing this bug per the email I got from Daniel. |