Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347628 - [projection] unfolding doesn't work if caption is last line in document
Summary: [projection] unfolding doesn't work if caption is last line in document
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.6.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 4.14 M3   Edit
Assignee: Paul Pazderski CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-30 07:05 EDT by Niko Stotz CLA
Modified: 2019-11-18 09:55 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Niko Stotz CLA 2011-05-30 07:05:58 EDT
Build Identifier: 20110218-0911

If the caption of a Position implementing IProjectionPosition points to the last line in the document, the collapsed projection won't unfold.

The bug is highly unlikely to happen in Java. I found it when implementing IProjectionPosition in a Xtext document.

Reproducible: Always

Steps to Reproduce:
1. Open this Java file:

---begin of file---
/**
 * This is the caption line*/ class Test{}---end of file---

(Note there is NO newline after the end of the class)

2. Close the documentation projection
3. Try to open it again
   Expected: Projection should unfold
   Actual: Projection doesn't change.
Comment 1 Lars Vogel CLA 2019-11-14 02:12:35 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

If the bug is still relevant, please remove the "stalebug" whiteboard tag.
Comment 2 Paul Pazderski CLA 2019-11-14 04:30:38 EST
Still the same in I20191111-1800. I plan to investigate this issue.
Comment 3 Eclipse Genie CLA 2019-11-16 18:30:02 EST
New Gerrit change created: https://git.eclipse.org/r/152800