Bug 91363 - Editor's name bug on Logic Example
Summary: Editor's name bug on Logic Example
Status: NEW
Alias: None
Product: GEF
Classification: Tools
Component: GEF-Legacy GEF (MVC) (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-14 01:32 EDT by zhang wei CLA
Modified: 2016-12-14 11:19 EST (History)
3 users (show)

See Also:


Attachments
this pic show the right tooltips(contain file path and file name) (12.97 KB, image/jpeg)
2005-04-14 01:33 EDT, zhang wei CLA
no flags Details
this pic show the error tooltips(file path is error) (14.68 KB, image/jpeg)
2005-04-14 01:34 EDT, zhang wei CLA
no flags Details
Zhang Wei suggestion patch (827 bytes, patch)
2007-02-13 04:33 EST, Krzysztof Daniel CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.