[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: Linking View vs Editor(ISelectionProvider ISelectionListener)

One problem I could notice in your code was setSite and setInput were not being called in the init method of Editorform.

[code]
public class EditorForm extends ..
{
	public void init(IEditorSite site, IEditorInput input) throws ..
	{
		/* THIS IS UGLY BUT HAVE TO DO IT TO ACCESS SITE
		AND INPUT AFTER INIT IS DONE. */
		
		setSite(site);
		setInput(input);
	}
}
[/code]

I have never worked with ISelectionListener, ISelectionProvider etc., So I cann't comment on the rest of the code. Hope setSite() helps.

Thanks
Venkat
 

--
View in EZ forum: http://www.eclipsezone.com/eclipse/forums/m91954552.html