Bug 274972 - [EditorMgmt] [BiDi] Editor tab and tooltip are wrong
Summary: [EditorMgmt] [BiDi] Editor tab and tooltip are wrong
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Remy Suen CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 274820
  Show dependency tree
 
Reported: 2009-05-05 08:39 EDT by Paul Webster CLA
Modified: 2019-09-06 16:07 EDT (History)
2 users (show)

See Also:


Attachments
Picture of the editor tab. (102.67 KB, image/png)
2009-05-05 08:39 EDT, Paul Webster CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Webster CLA 2009-05-05 08:39:16 EDT
Created attachment 134414 [details]
Picture of the editor tab.

I was testing another bug and added a Hebrew java class.  The Filename in the tab is backwards, and the hover tooltip for the tab is totally mangled.

These are usually fixed by adding text processor.

Tomer, Have you seen an open bug on this before (it seems like a pretty obvious one)?

PW
Comment 1 Tomer Mahlin CLA 2009-05-05 08:44:57 EDT
You are correct. No,I am not aware of any specific defect on this issue. Those issues are ubiquitous. Please observe that the name of file is also not shown properly in Navigator view, while in Package Explorer view it is shown properly.
Indeed TextProcessor should help here.
Comment 2 Boris Bokowski CLA 2009-05-06 11:53:32 EDT
We'll have to defer this to 3.6 - the strings in question are coming from downstream plug-ins, and we don't know if they are already compensating for the fact that we don't currently run those strings through TextProcessor.

Does anyone know if TextProcessor.process is idempotent?
Comment 3 Boris Bokowski CLA 2009-05-06 11:55:54 EDT
When this is fixed, don't forget the other places where editor names and tooltips are shown, for example in the editor dropdown (Ctrl+E).
Comment 4 Boris Bokowski CLA 2009-11-17 13:07:27 EST
Remy is now responsible for watching the [EditorMgmt] component area.
Comment 5 Remy Suen CLA 2009-11-25 13:15:38 EST
(In reply to comment #2)
> Does anyone know if TextProcessor.process is idempotent?

This appears to be the case.

// do not process a string that has already been processed.
if (str.charAt(0) == LRE && str.charAt(str.length() - 1) == PDF) {
  return str;
}
Comment 6 Paul Webster CLA 2009-11-26 07:56:34 EST
On further reflection, we might have to document this.

I don't think we can blindly run our label through TextProcessor.

1) only the editor part knows what it is.  Most of the time it is the editor input, and most of that time it is a IFileEditorInput (providing us with a filename).  But that tab can have any kind of title, and things like database inputs or CVS repo specs don't conform to a filename.

2) the extension of #1 is that if we implement bug 179191 and bug 183164 we would expect the provider of the title (who understands what it is) to pick the processing to use.

It sounds like the way to "get it right" is to force the clients to start using TextProcessor on anything the provide as a label.

PW
Comment 7 Remy Suen CLA 2009-11-26 08:03:17 EST
(In reply to comment #6)
> 1) only the editor part knows what it is.  Most of the time it is the editor
> input, and most of that time it is a IFileEditorInput (providing us with a
> filename).  But that tab can have any kind of title, and things like database
> inputs or CVS repo specs don't conform to a filename.

Right, so what you mean is that the default control characters from TextProcessor may not be what's desired for a particular client so they should use TextProcessor themselves.
Comment 8 Remy Suen CLA 2009-12-09 08:59:09 EST
(In reply to comment #6)
> 1) only the editor part knows what it is.  Most of the time it is the editor
> input, and most of that time it is a IFileEditorInput (providing us with a
> filename).  But that tab can have any kind of title, and things like database
> inputs or CVS repo specs don't conform to a filename.
> 
> 2) the extension of #1 is that if we implement bug 179191 and bug 183164 we
> would expect the provider of the title (who understands what it is) to pick the
> processing to use.

Well in this scenario the provider of the title is us. How about instead of randomly running TextProcessor on an editor's title and tooltip we change our FileEditorInput and FileStoreEditorInput implementations to use TextProcessor? That would certainly fix this particular bug anyway.
Comment 9 Remy Suen CLA 2010-01-19 08:05:43 EST
We will not be doing anything about these editor tab problems for now.
Comment 10 Eclipse Webmaster CLA 2019-09-06 16:07:03 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.