private void makeActions() {
    newPatientAction =
        new Action() {
          public void run() {
            openPatientenDialog();
          }
        };
    newPatientAction.setText(
        Messages.getString("WeisseSeitenSearchView.popup.newPatient")); // $NON-NLS-1$
    newPatientAction.setToolTipText(
        Messages.getString("WeisseSeitenSearchView.tooltip.newPatient")); // $NON-NLS-1$
    newPatientAction.setImageDescriptor(Images.IMG_PERSON_ADD.getImageDescriptor());

    newKontaktAction =
        new Action() {
          public void run() {
            openKontaktDialog();
          }
        };
    newKontaktAction.setText(
        Messages.getString("WeisseSeitenSearchView.popup.newKontakt")); // $NON-NLS-1$
    newKontaktAction.setToolTipText(
        Messages.getString("WeisseSeitenSearchView.tooltip.newKontakt")); // $NON-NLS-1$
    newKontaktAction.setImageDescriptor(Images.IMG_NEW.getImageDescriptor());
  }
Ejemplo n.º 2
0
 public void setObjectCreateAction(IViewSite site, IAction action) {
   site.getActionBars().getToolBarManager().add(action);
   action.setImageDescriptor(Images.IMG_NEW.getImageDescriptor());
   createObjectAction = action;
 }