Bug 256933 - [hovering][typing] More information on/after closing bracket
Summary: [hovering][typing] More information on/after closing bracket
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.5   Edit
Hardware: All All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-28 14:27 EST by Marek Kozie³ <Lasu> CLA
Modified: 2009-02-06 07:40 EST (History)
3 users (show)

See Also:


Attachments
[Sample] More information displayer on/after closing bracket. (157.22 KB, image/gif)
2008-11-28 14:27 EST, Marek Kozie³ <Lasu> CLA
no flags Details
Sample with hover and marked additional info (161.00 KB, image/gif)
2008-11-29 06:49 EST, Marek Kozie³ <Lasu> CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Kozie³ <Lasu> CLA 2008-11-28 14:27:12 EST
Created attachment 119040 [details]
[Sample] More information displayer on/after closing bracket.

Hello!

It would help if after closing bracket, information about it start bracket would be displayed.
I created some example how could that look witch is attached.

In my opinion key functionality is, to be able to define:

[3] minimal number of lines between starting and closing bracket after witch bracket-tip can be displayed.

[X] always display bracket-tip if starting bracket is above the visible code part.

[X] always display bracket-tip on-hover

It would be helpful for peoples who work on laptops or used a lot of view-s, and do not force them to use so much scroll.

--
Lasu <Marek Kozie³>
Comment 1 Dani Megert CLA 2008-11-29 06:24:00 EST
>Created an attachment (id=119040) [details]
>[Sample] More information displayer on/after closing bracket.
I cannot see anything special in your picture.

Could be shown in a hover.
Comment 2 Marek Kozie³ <Lasu> CLA 2008-11-29 06:49:24 EST
Created attachment 119075 [details]
Sample with hover and marked additional info 

Not every one use mouse while programing, or use it not so much.
So is not good to see those information only on-hover.
Comment 3 Tomasz Bartczak CLA 2008-11-29 14:39:05 EST
Dani,

the point is to show the line with which the bracket started also on the closing bracket. 

However - what to do if there was a complicated multi condition (multi-lined) at the start of the bracket?

Maybe just show the begining and finish with [....]
Comment 4 Marek Kozie³ <Lasu> CLA 2008-11-29 17:13:48 EST
I was already thinking about that case.
If information to display is one line then there is no problem and should be displayed as it is.
On multi line default formating can be used (with removing comments), but Tomasz suggestion is the correct solution as well.
On hover there is no problem because there is more space.
Comment 5 Dani Megert CLA 2008-11-30 09:22:40 EST
Oh, I see it now in your picture. That makes the core pretty unreadable - at least to me ;-)
Comment 6 Marek Kozie³ <Lasu> CLA 2008-11-30 10:18:30 EST
(In reply to comment #5)
> Oh, I see it now in your picture. That makes the core pretty unreadable - at
> least to me ;-)
> 

I can agree with U, at least at start.
But solution is good when once u get used to it, then u cannot live without it.
The time for brain to accept new solution is another thing.

But as I noticed some people prefer begin & end because they are more visible, but unfortunately, it does not bring any additional information.

Following that thought 'transparency' is this what would make ppl to be able to distinguish the code from the additional informations.