Community
Participate
Working Groups
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).
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)
Created attachment 19897 [details] this pic show the error tooltips(file path is error) this pic show the error tooltips(file path is error)
this problem also shown in eclipse 3.0.1 & GEF 3.0.1 & GEF Example 3.0.1
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?
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-;
Created attachment 58840 [details] Zhang Wei suggestion patch
I want to look how the tooltip for other editors in Eclipse before committing the patch.
Unset target milestone as the specified one is already passed.