public void init(ICommonActionExtensionSite aSite) { final Shell shell = aSite.getViewSite().getShell(); IShellProvider sp = new IShellProvider() { public Shell getShell() { return shell; } }; addBookmarkAction = new AddBookmarkAction(sp, true); addTaskAction = new AddTaskAction(sp); }