[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] IMenuService

Hi,

I am developping an Eclipse RCP application who use Eclipse forms. I have populated the form toolbar with IMenuService like this :

ToolBarManager manager = (ToolBarManager)this.picture_form.getToolBarManager();
IMenuService service = (IMenuService)this.getEditorSite().getService(IMenuService.class );
service.populateContributionManager(tool_manager,"toolbar:picture.form.toolbar");


In the editor dispose method :

IMenuService service = (IMenuService)this.getEditorSite().getService(MenuService.class );
service.releaseContributions((ToolBarManager)this.picture_form.getToolBarManager() );


But when I close my editor a java.lang.IllegalArgumentException: Argument not valid is thrown why ?

Best regards,
Kevin