newMenu.add(new Action("Bookmark") {
@Override
public void run() {
IStructuredSelection selection = (IStructuredSelection) fViewer.getSelection();
IFolder parent = getParent(selection);
IMark position = (IMark) ((selection.getFirstElement() instanceof IMark) ? selection.getFirstElement() : null);
new NewBookMarkAction(fViewSite.getShell(), parent, position).run(null);
}
@Override
public ImageDescriptor getImageDescriptor() {
return OwlUI.BOOKMARK;
}
});
/* New Saved Search */
newMenu.add(new Action("Saved Search") {
@Override
public void run() {
IStructuredSelection selection = (IStructuredSelection) fViewer.getSelection();
IFolder parent = getParent(selection);
IMark position = (IMark) ((selection.getFirstElement() instanceof IMark) ? selection.getFirstElement() : null);
new NewSearchMarkAction(fViewSite.getShell(), parent, position).run(null);
}
@Override
public ImageDescriptor getImageDescriptor() {
return OwlUI.SEARCHMARK;
}
});
/* New Folder */
newMenu.add(new Separator());
newMenu.add(new Action("Folder") {
@Override
public void run() {
IStructuredSelection selection = (IStructuredSelection) fViewer.getSelection();
IFolder parent = getParent(selection);
IMark position = (IMark) ((selection.getFirstElement() instanceof IMark) ? selection.getFirstElement() : null);
new NewFolderAction(fViewSite.getShell(), parent, position).run(null);
}
@Override
public ImageDescriptor getImageDescriptor() {