private void setRemoveInfo(IAction action) {
   action.setImageDescriptor(
       ImageDescriptor.createFromURL(
           Plugin.getDefault().getBundle().getEntry("/icons/full/obj16/delete_enabled.gif")));
   action.setDisabledImageDescriptor(
       ImageDescriptor.createFromURL(
           Plugin.getDefault().getBundle().getEntry("/icons/full/obj16/delete_disabled.gif")));
   action.setToolTipText("Remove the selected object");
   action.setText("Delete");
 }
 private void setScriptInfo(IAction action) {
   action.setImageDescriptor(
       ImageDescriptor.createFromURL(
           Plugin.getDefault().getBundle().getEntry("/icons/full/obj16/new_script_enabled.gif")));
   action.setDisabledImageDescriptor(
       ImageDescriptor.createFromURL(
           Plugin.getDefault().getBundle().getEntry("/icons/full/obj16/new_script_disabled.gif")));
   action.setToolTipText("Add a script action");
   action.setText("New Script");
 }
 private void setCreateTimerInfo(IAction action) {
   action.setImageDescriptor(
       ImageDescriptor.createFromURL(
           Plugin.getDefault()
               .getBundle()
               .getEntry("/icons/full/obj16/new_create_timer_enabled.gif")));
   action.setDisabledImageDescriptor(
       ImageDescriptor.createFromURL(
           Plugin.getDefault()
               .getBundle()
               .getEntry("/icons/full/obj16/new_create_timer_disabled.gif")));
   action.setToolTipText("Add a create timer action");
   action.setText("New Create Timer");
 }
 private void setEsbNotifierInfo(IAction action) {
   action.setImageDescriptor(
       ImageDescriptor.createFromURL(
           Plugin.getDefault().getBundle().getEntry("/icons/full/obj16/esb_enabled.gif")));
   action.setToolTipText("Add a esb Notifier");
   action.setText("New ESB Notifier");
 }
 private void createRemoveMenuItem() {
   MenuItem removeItem = new MenuItem(popupMenu, SWT.PUSH);
   removeItem.setText("Delete");
   ImageDescriptor descriptor =
       ImageDescriptor.createFromURL(
           Plugin.getDefault().getBundle().getEntry(getDeleteImagePath()));
   removeItem.setImage(SharedImages.INSTANCE.getImage(descriptor));
   removeItem.setEnabled(hasSelection());
   removeItem.addSelectionListener(
       new SelectionAdapter() {
         public void widgetSelected(SelectionEvent e) {
           removeSelectedObject();
         }
       });
 }
 private void createAddEsbNotifierMenuItem(Menu menu) {
   MenuItem addEsbNotifierMenuItem = new MenuItem(menu, SWT.PUSH);
   addEsbNotifierMenuItem.setText("New ESB Notifier");
   ImageDescriptor enabledDescriptor =
       ImageDescriptor.createFromURL(
           Plugin.getDefault().getBundle().getEntry("/icons/full/obj16/esb_enabled.gif"));
   addEsbNotifierMenuItem.setImage(SharedImages.INSTANCE.getImage(enabledDescriptor));
   addEsbNotifierMenuItem.addSelectionListener(
       new SelectionAdapter() {
         public void widgetSelected(SelectionEvent e) {
           addNewActionElement(ESB_NOTIFIER_ID);
           if (((MenuItem) e.widget).getParent() != popupMenu) {
             elementToCreate = ESB_NOTIFIER_ID;
             setEsbNotifierInfo(addActionElementToolbarContributionItem.getAction());
           }
         }
       });
 }