Hi Arian, you can also use the e4 API. See https://www.vogella.com/tutorials/Eclipse4Services/article.html#model-service
part.setLabel("New Label") should do the trick, after you got the part via the model or part service. Best regards, Lars On Thu, Jun 13, 2019 at 1:49 PM Ed Merks <ed.me...@gmail.com> wrote: > > Arian, > > You should look at what editors do when you do File -> Save As. E.g., > in EMF's generated editors I do this: > > IFileEditorInput modelFile = new FileEditorInput(file); > setInputWithNotify(modelFile); > setPartName(file.getName()); > > Which call > org.eclipse.ui.part.EditorPart.setInputWithNotify(IEditorInput) and > org.eclipse.ui.part.EditorPart.setPartName(String) which are protected > methods; file is the IFile to which I saved. > > Regards, > Ed > > On 13.06.2019 13:07, Arian Fornaris wrote: > > Hi, > > > > In a tool I am developing I need to change, at any time, the title of > > the editors. We need this because the tool has a "current working > > project" concept, and I want to show the name of the project in the > > title of all the editors not belonging to the current working project. > > I know how to detect the editors I want to update, but I don't know > > how to change its title. It is important that I can change the title > > of editors no matters if it is restored or not. > > > > > > > > Thanks in advance, > > > > Arian > > > > _______________________________________________ > > platform-dev mailing list > > platform-dev@eclipse.org > > To change your delivery options, retrieve your password, or > > unsubscribe from this list, visit > > https://www.eclipse.org/mailman/listinfo/platform-dev > _______________________________________________ > platform-dev mailing list > platform-dev@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe from > this list, visit > https://www.eclipse.org/mailman/listinfo/platform-dev -- Eclipse Platform project co-lead CEO vogella GmbH Haindaalwisch 17a, 22395 Hamburg Amtsgericht Hamburg: HRB 127058 Geschäftsführer: Lars Vogel, Jennifer Nerlich de Vogel USt-IdNr.: DE284122352 Fax (040) 5247 6322, Email: lars.vo...@vogella.com, Web: http://www.vogella.com _______________________________________________ platform-dev mailing list platform-dev@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/platform-dev