/* Copy Link */
manager.add(new Action("Copy Link") {
@Override
public void run() {
IActionDelegate action = new CopyLinkAction();
action.selectionChanged(null, selection);
action.run(null);
}
@Override
public boolean isEnabled() {
return !selection.isEmpty();
}
});
/* Send Link */
manager.add(new Action("Send Link") {
@Override
public void run() {
IActionDelegate action = new SendLinkAction();
action.selectionChanged(null, selection);
action.run(null);
}
@Override
public boolean isEnabled() {
return !selection.isEmpty();
}
});
}
/* Update */
{
manager.add(new Separator("reload"));
/* Update */
manager.add(new Action("Update") {
@Override
public void run() {
IActionDelegate action = new ReloadTypesAction();
action.selectionChanged(null, selection);
action.run(null);
}
@Override
public ImageDescriptor getImageDescriptor() {
return OwlUI.getImageDescriptor("icons/elcl16/reload.gif");