|Re: How to set the editor title? [message #498226 is a reply to message #498079]
||Mon, 16 November 2009 01:24
Originally posted by: wangqs_eclipse.yahoo.com|
> hi eclipse user,
> i tried this, it works but if i want to do this dynamic for the selected
> item, how can i do this?
> because i implement and handler for the doubleclicking via extension
> points and the editor too.
> so if i click on the item in the tableviewer the HandlerService starts
> and call the method
> page.openEditor(input, MyEditor.ID);
> and it set the default name in the plugin.xml. how can I set on this
> place the selected item name?
Well there's no guarantee, but at least AbstractTextEditor is using
input.getName as the title. Please try to return the description of the
item there in the getName() method if the input is written by you.
Powered by FUDForum
. Page generated in 0.06156 seconds