Bug 49791 - [browsing] Annoying auto-select when opening type from Type view
Summary: [browsing] Annoying auto-select when opening type from Type view
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-09 15:31 EST by Marco Qualizza CLA
Modified: 2019-03-26 13:12 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Qualizza CLA 2004-01-09 15:31:27 EST
While using the Type view (from the browsing perspective) to open a type,
Eclipse demonstrates a very peculiar foible: It selects (in the editor) the name
of the class you are opening.

Although this particular mannerism seems mostly harmless, it gets really
annoying really quickly when, for example, you're using the View to select files
you already have open (don't want to go tab-hunting) because any positioning
you've done in the file and any highighting is lost.  And the mannerism can
drive someone to the edge of lunacy when, for example, one is trying to do a
search-and-replace for the exact same text in a number of types.  Because not
only does it highlight the name, but when you click on the editor to activate it
and do your S&R, the contents of the "Find" field gets changed to the name of
the type.  Quite aggravating, that.

I humbly request that this "feature" be... disabled... especially since there is
no real discernible value in selecting the name of the type when the file is
being opened.

Instead, I suggest that, when a user clicks on a type, either open the file to
the top of that type (if the file isn't open), just switch to it (if the file is
open in another editor) or just switch to the type (if the file is open in the
current editor -- this is for inner types).

Thanks :-)
Comment 1 Marco Qualizza CLA 2004-01-09 15:42:43 EST
The Find/Replace problem is probably related to Bug 49794.
Comment 2 Dirk Baeumer CLA 2004-01-12 05:56:50 EST
This causes some ripples we have to carefully think about before changing 
anything in this area:

- what do we do if a CU defines two types (the editor doesn't show types, it
  shows a CU).

- do we had the same semantic to the packages explorer.
Comment 3 Marco Qualizza CLA 2004-01-12 09:51:50 EST
Currently (3.0M6 GTK) a new editor is opened for each class, including (named)
inner classes.  I'm not asking for that to change -- just to get rid of the
auto-highlighting. :-)
Comment 4 Eclipse Genie CLA 2019-03-26 12:48:17 EDT
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.

--
The automated Eclipse Genie.
Comment 5 Dani Megert CLA 2019-03-26 13:12:34 EDT
Simple disable 'Link with Editor' in the Types view.