public EditPartContextAction(IWorkbenchPart part, EditPart editPart, IEditPartAction action) {
    super(part);
    this.action = action;
    this.editPart = editPart;

    // get the icon and text
    setText(action.getToolTip());
    setImageDescriptor(action.getIcon());
    setId(action.toString());
  }
 @Override
 public void run() {
   action.onButtonPressed();
 }