use of org.eclipse.jface.window.SameShellProvider in project webtools.sourceediting by eclipse.
the class XMLMultiPageEditorPart method addEditorActions.
private void addEditorActions(IDesignViewer viewer) {
if (viewer instanceof AbstractTreeViewer) {
final Tree tree = (Tree) ((AbstractTreeViewer) viewer).getControl();
fMenuManager = new MenuManager();
fMenuManager.add(new Action(XMLEditorMessages.ConfigureColumns_label) {
public void run() {
ConfigureColumns.forTree(tree, new SameShellProvider(tree));
}
});
// $NON-NLS-1$
getSite().registerContextMenu("org.eclipse.wst.xml.ui.editor", fMenuManager, getSite().getSelectionProvider());
fMenuManager.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
fEditorManager.add(new EditorActions(fEditorManager.getControl()));
fEditorManager.update(true);
}
}
Aggregations