[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: Action Enablement using TreeViewer Selections

Wow, this was too easy.

I was adding my ViewPart as the selection provider instead of the TreeViewer. I even implemented the ISelectionProvider interface in the ViewPart. No wonder why it was only getting updating after I changed the view selection.

Thanks you.

Artun Subasi

"Paul Webster" <pwebster@xxxxxxxxxx> schrieb im Newsbeitrag news:ftt4c4$nti$1@xxxxxxxxxxxxxxxxxxxx
The normal pattern is to have this line as part of your createPartControl(*):

getSite().setSelectionProvider(viewer);

Do you have that?

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench.htm