[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform] registerContextMenu question
|
- From: Anand Narasimhan <anandn@xxxxxxxxx>
- Date: Wed, 06 Dec 2006 09:44:07 -0800
- Newsgroups: eclipse.platform
- Organization: EclipseCorner
- User-agent: Thunderbird 1.5.0.8 (Windows/20061025)
Hi,
The IWorkbenchPartSite interface defines two registerContextMenu methods.
public void registerContextMenu(MenuManager
menuManager,ISelectionProvider selectionProvider);
public void registerContextMenu(String menuId, MenuManager menuManager,
ISelectionProvider selectionProvider);
It is not clear to me what the purpose of the second API is. I have a
few questions.
1. Where is the "menuId" argument used?
2. Why would someone want to register multiple context menus with the site?
3. If I have multiple viewers (table viewers) in the view part, should I
register a context menu for each viewer?
4. If I have a viewer contribution for this part containing this site,
does the contributution show up in all the context menus registered for
this part?
Another different question, but related to context menus. I have an
editor part implemented, but not file based editor. It has a jface table
viewer in it. If I register the editor context menu on this table, will
the object contributions defined for object types shown in this table
show up in the popup menu?
Thanks
Anand
--
_____________________________________________________________________________________
Anand Narasimhan
anandn@xxxxxxxxx