Esempio n. 1
0
  @Override
  public void init(IViewSite site) throws PartInitException {
    super.init(site);

    removeAllAction =
        new Action("Remove All", SharedImages.getImageDescriptor(SharedImages.DELETE_ALL)) {
          @Override
          public void run() {
            getHistory().getEvents().clear();
          }
        };

    getViewSite().getActionBars().getToolBarManager().add(removeAllAction);
  }
 @Override
 public ImageDescriptor getImageDescriptor() {
   return SharedImages.getImageDescriptor(SharedImages.CAMERA);
 }