Bug 91363

Summary: Editor's name bug on Logic Example
Product: [Tools] GEF Reporter: zhang wei <zhang-wei>
Component: GEF-Legacy GEF (MVC)Assignee: gef-inbox <gef-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: ahunter.eclipse, krzysztof.daniel, nyssen
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Attachments:
Description Flags
this pic show the right tooltips(contain file path and file name)
none
this pic show the error tooltips(file path is error)
none
Zhang Wei suggestion patch none

Description zhang wei CLA 2005-04-14 01:32:25 EDT
I use Eclipse3.1M5a & GEF3.0.1 & GEF Example3.0.1
When you create a logic example file, and open it by example editor.
Then move your mouse pointer to the editor name, here will show a tooltips. 
The tooltips contain the file path and file name.(now they are both right)
Then keep the editor open, rename the project name to another name, when you
mouse pointer move to the editor name, the tooltips context is wrong(the file
path is error).
Comment 1 zhang wei CLA 2005-04-14 01:33:34 EDT
Created attachment 19896 [details]
this pic show the right tooltips(contain file path and file name)

this pic show the right tooltips(contain file path and file name)
Comment 2 zhang wei CLA 2005-04-14 01:34:51 EDT
Created attachment 19897 [details]
this pic show the error tooltips(file path is error) 

this pic show the error tooltips(file path is error)
Comment 3 zhang wei CLA 2005-04-14 01:38:09 EDT
this problem also shown in eclipse 3.0.1 & GEF 3.0.1 & GEF Example 3.0.1
Comment 4 Pratik Shah CLA 2005-04-14 12:51:35 EDT
LogicEditor#ResourceTracker ignores resource change events which are not on 
the logic file.  It should take this case into account.  This shouldn't be too 
difficult to fix.  Zhang Wei, do you care to submit a patch?
Comment 5 zhang wei CLA 2005-04-15 05:30:18 EDT
I fixed the code in LogicEditor. But I do not know I fixed properly.

I modified org.eclipse.gef.examples.logicdesigner.
LogicEditor#superSetInput(IEditorInput) method.

add the follow line behind setTitle(file.getName());(line:797)
-------------------------------------------------
setTitleToolTip(file.getFullPath().toString());
-------------------------------------------------

Is this OK?
I also do not know how to create patch. 8-;
Comment 6 Krzysztof Daniel CLA 2007-02-13 04:33:20 EST
Created attachment 58840 [details]
Zhang Wei suggestion patch
Comment 7 Anthony Hunter CLA 2009-02-03 12:19:59 EST
I want to look how the tooltip for other editors in Eclipse before committing the patch.
Comment 8 Alexander Nyßen CLA 2013-10-17 09:44:52 EDT
Unset target milestone as the specified one is already passed.