Package org.eclipse.ecf.ui.screencapture

Examples of org.eclipse.ecf.ui.screencapture.ScreenCaptureJob


          final ScreenCaptureShare screencaptureshare = tmp;
          final IAction action = new Action() {
            public void run() {
              MessageDialog dialog = new MessageDialog(null, Messages.ScreenCaptureShareRosterEntryContributionItem_SCREEN_CAPTURE_MESSAGEBOX_TITLE, Window.getDefaultImage(), Messages.ScreenCaptureShareRosterEntryContributionItem_SCREEN_CAPTURE_MESSAGEBOX_MESSAGE, MessageDialog.QUESTION, new String[] {NLS.bind(Messages.ScreenCaptureShareRosterEntryContributionItem_VERIFY_SEND_BUTTON_TEXT, entry.getName()), Messages.ScreenCaptureShareRosterEntryContributionItem_VERIFY_CANCEL_BUTTON_TEXT}, 0);
              if (dialog.open() == Window.OK) {
                ScreenCaptureJob screenCaptureJob = new ScreenCaptureJob(Display.getCurrent(), entry.getUser().getID(), entry.getUser().getName(), new IImageSender() {
                  public void sendImage(ID targetID, ImageData imageData) {
                    screencaptureshare.sendImage(entry.getRoster().getUser().getID(), entry.getRoster().getUser().getName(), targetID, imageData);
                  }
                });
                screenCaptureJob.schedule(SCREEN_CAPTURE_DELAY);
              }
            }
          };
          action.setText(Messages.ScreenCaptureShareRosterEntryContributionItem_SCREEN_CAPTURE_MENU);
          action.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_DEF_VIEW));
View Full Code Here


    }
  }

  private void sendImage(final IUser toUser) {
    if (MessageDialog.openQuestion(null, MessageLoader.getString("ChatComposite.DIALOG_SCREEN_CAPTURE_TITLE"), MessageLoader.getString("ChatComposite.DIALOG_SCREEN_CAPTURE_TEXT"))) { //$NON-NLS-1$ //$NON-NLS-2$
      final Job job = new ScreenCaptureJob(getDisplay(), toUser.getID(), toUser.getNickname(), new IImageSender() {
        public void sendImage(ID targetID, ImageData imageData) {
          view.lch.sendImage(toUser.getID(), imageData);
        }
      });
      job.schedule(5000);
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.ui.screencapture.ScreenCaptureJob

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.