Community
Participate
Working Groups
I have built a GEF-based editor. Calling this method does not work as expected if the editor is already opened. The tab text won't change immediatly unless I either derive a new editor from the tab context menu and/or change the active editor by clicking on the tabs. I have verified this behavior on 3 different ports (Win32, OSX/ppc and Gtk/i386), so this has nothing to do with SWT. My method call is rather laconic: setPartName(file.getName()); Of course I can check in my code that there is indeed a call and that the file.getName() result is not constant.
In your GEF editor, when you do CTRL+O CTRL+O how many versions of setPartName(*) are visible? PW
(In reply to comment #1) Hi Paul, > In your GEF editor, when you do CTRL+O CTRL+O how many versions of > setPartName(*) are visible? I did just that (launched my editor, renamed my live file, then pressed CTRL+O CTRL+O) and nothing happened. The part name on the tab did not change as well. JP
Sorry, my bad :-) I mean in the code for your editor part, do CTRL+O CTRL+O to get up the list of inherited methods. PW
(In reply to comment #3) Ok, there are two inherited setPartName methods: * org.eclipse.ui.part.EditorPart (my setPartName comes from here) * org.eclipse.ui.part;WorkbenchPart
I have the same problem with a view. The title won't be updated. There are 2 versions of 'setPartName': org.eclipse.ui.part.ViewPart org.eclipse.ui.part.WorkbenchPart
Is this still a problem in 3.3? PW
Changes requested on bug 193523
5 years later... A french engineer wants to rename a tab of a form page after it's loaded. The method setpartname does her job very well but the display still not refreshed. Tab text displayed : titre ! System.out.println(getPartName()); => titre ! setPartName(getPartName() + " *"); System.out.println(getPartName()); => titre ! * Tab text displayed : titre !
(In reply to comment #8) > > Tab text displayed : titre ! > > System.out.println(getPartName()); => titre ! > setPartName(getPartName() + " *"); > System.out.println(getPartName()); => titre ! * > > Tab text displayed : titre ! Which build are you using? PW
Sorry, i forgot this point. 3.6.2 currently
This should be fixed in 4.2 (Juno) PW
(In reply to comment #11) > This should be fixed in 4.2 (Juno) > > PW I am really pleased but i have to use 3.6.2 because of my project's imperative
We no longer create builds for 3.6.2, you would have to create your own fix, patch that plugin, and distribute it with your RCP app (much more difficult if you are a plugin in the IDE) PW
(In reply to comment #13) > We no longer create builds for 3.6.2, you would have to create your own fix, > patch that plugin, and distribute it with your RCP app (much more difficult > if you are a plugin in the IDE) > > PW Ok. Thank's for the answer. I hoped that it was an other way to do this job.
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. -- The automated Eclipse Genie.
I'm having this issue in an e4 rcp application. Is there any known fix? Or should I investigate upstream.