| Summary: | Not able to contribute popup menu to org.eclipse.jst.pagedesigner.PageDesignerEditor | ||
|---|---|---|---|
| Product: | [WebTools] Java Server Faces | Reporter: | Danny Ju <danny.ju> |
| Component: | UI | Assignee: | JSF Project UI <jsf.ui-inbox> |
| Status: | NEW --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | thatnitind |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Danny Ju
The bug seems to be caused by this no-op in:
org.eclipse.jst.pagedesigner.ui.common.sash.SashEditorSite
public void registerContextMenu(String menuID, MenuManager menuMgr,
ISelectionProvider selProvider) {
// if (_menuExtenders == null) {
// _menuExtenders = new ArrayList(1);
// }
// cancel the registration of PopupMenuExtender since the
// PopupMenuExtender's behavior
// is different between eclipse 3.0 and eclipse 3.1,and we always have
// one context
// menu listener,no need add PopupMenuExtender as the second
// listener(workaroud for bug 408295-1)
// _menuExtenders.add(new PopupMenuExtender(menuID, menuMgr,
// selProvider,
// _editor));
}
The SashEditorSite should call PartSite.registerContextMenu()
if (menuExtenders == null) {
menuExtenders = new ArrayList(1);
}
PartSite.registerContextMenu(menuID, menuMgr, selProvider, true,
editor, menuExtenders);
|