Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Problems displaying new name of renamed resource.
Problems displaying new name of renamed resource. [message #280164] Mon, 31 January 2005 10:30 Go to next message
Eclipse UserFriend
I have run in to difficulties updating the displayed name of a
resource in the workspace which has been renamed.

If I rename a workspace Resource using File>Rename
using the File menu or Function key F2 the new name
appears in the Resource Navigator (duh!).

If the file is open in the 'Text Editor' the
editor tab and the title bar are correctly
changed. The same happens for the Java Editor.

How does this work for user-written editors like
the Vex plug-in. I am currently working on a patch
to support this in Vex. The class VexEditor was
originally a superclass of EditorPart but this
had a problem with renamed files. Deriving the
class from AbstractTextEditor fixed part of the
problem but doesn't fix the displayed names.

I'd like to use the Eclipse source to resolve
this but I need a little help.

I currently test Vex as a Run-time WorkBench.
Where would you suggest I set breakpoints to
find my way to the Text Editor.

I am thinking of using breakpoints in VexEditor
to find internals of Eclipse and seting additional
breakpoints in Eclipse that will help me find the
relavent code in the Text Editor.
Re: Problems displaying -- somewhat solved. [message #280318 is a reply to message #280164] Tue, 01 February 2005 16:59 Go to previous messageGo to next message
Eclipse UserFriend
John Austin wrote:
> I have run in to difficulties updating the displayed name of a
> resource in the workspace which has been renamed.

This took far too long to solve. In the end I over-rode
doSetInput(..) in the VexEditor class and called
setPartName( input.getName() ); from it.

This ain't what Martha would call 'a good thing'.

I think there is value in the Eclipse framework for
editors seems to be useful but the documentation isn't
there yet.

Bug: The Workspace title bar isn't updated when the
part name is updated but this conforms to the
behaviour of the TextEditor that comes built in.
Re: Problems displaying -- somewhat solved. [message #280320 is a reply to message #280318] Tue, 01 February 2005 17:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: chaves.inf.no.ufsc.spam.br

John Austin wrote:
>
> Bug: The Workspace title bar isn't updated when the
> part name is updated but this conforms to the
> behaviour of the TextEditor that comes built in.

Just in case you haven't done so yet: if you believe you have found a
bug, you should open a PR against the corresponding product/component,
otherwise it may never be noticed/fixed.

Rafael
Re: Problems displaying -- somewhat solved. [message #280332 is a reply to message #280320] Tue, 01 February 2005 21:29 Go to previous messageGo to next message
Eclipse UserFriend
Rafael Chaves wrote:
> John Austin wrote:
>
>>
>> Bug: The Workspace title bar isn't updated when the
>> part name is updated but this conforms to the
>> behaviour of the TextEditor that comes built in.
>
>
> Just in case you haven't done so yet: if you believe you have found a
> bug, you should open a PR against the corresponding product/component,
> otherwise it may never be noticed/fixed.

I will submit a PR when I determine the full extent of the problem.

If I have the same problem (as in Vex and Text Editor) in the Java
and/or Plugin Editors I will report it as a broad problem. If it affects
only Text Editor, I will correct Vex with the correct behaviour and
report the problem against Text Editor along with a patch for Text Editor.

Thx.
Re: Problems displaying = Bugs 53789, 67173, 71454 and 71456 [message #280334 is a reply to message #280332] Tue, 01 February 2005 23:02 Go to previous message
Eclipse UserFriend
John Austin wrote:
> Rafael Chaves wrote:
>
>> John Austin wrote:
>>
>>>
>>> Bug: The Workspace title bar isn't updated when the
>>> part name is updated but this conforms to the
>>> behaviour of the TextEditor that comes built in.
>>
>>
>>
>> Just in case you haven't done so yet: if you believe you have found a
>> bug, you should open a PR against the corresponding product/component,
>> otherwise it may never be noticed/fixed.
>
>
> I will submit a PR when I determine the full extent of the problem.
>
> If I have the same problem (as in Vex and Text Editor) in the Java
> and/or Plugin Editors I will report it as a broad problem. If it affects
> only Text Editor, I will correct Vex with the correct behaviour and
> report the problem against Text Editor along with a patch for Text Editor.

Ok. I checked in 3.0.1 and 3.1M4 and the Java Editor shows the same
error in the Shell.setText() title bar.

I searched the bugs database and found 53789, 67173 and 71456.
Problem may also relate to 71454.
Previous Topic:Printing code listsings from LINUX
Next Topic:UI Test Cases
Goto Forum:
  


Current Time: Sun Nov 09 14:23:31 EST 2025

Powered by FUDForum. Page generated in 0.04135 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top