Package org.eclipse.swt.internal.ole.win32

Examples of org.eclipse.swt.internal.ole.win32.COM


    // set the attendees of the event
    Participant attendee1 = new Participant("Attendee1",
        "attendee1@attendee.com", ParticipantType.REQUIRED);
    List<Participant> list = new ArrayList<Participant>();
    list.add(attendee1);
    Invite invite = new EmailInviteImpl(props);
    Date startDate = new Date(System.currentTimeMillis() + 600000);
    Date endDate = new Date(startDate.getTime() + 1800000);
    invite.sendInvite("Testing Event", "Testing dummy event", from, list,
        startDate, endDate, "Delhi");
  }
View Full Code Here


  @Override
  public void validate() throws ConfigurationException {
    LOG.info("Validating configuration properties for email");
    if (properties == null) {
      throw new ConfigurationException("Properties can not be null");
    }
    if (properties.get("mail.smtp.host") == null) {
      throw new ConfigurationException(
          "Property mail.smtp.host is not given");
    }
    if (properties.get("mail.smtp.port") == null) {
      throw new ConfigurationException(
          "Property mail.smtp.port is not given");
    }
    if ("true".equals(properties.get("mail.smtp.auth"))) {
      if (properties.get("username") == null) {
        throw new ConfigurationException("Username is not given");
      }
      if (properties.get("password") == null) {
        throw new ConfigurationException("Password is not given");
      }
    }
  }
View Full Code Here

  @Override
  public void validate() throws ConfigurationException {
    LOG.info("Validating configuration properties for email");
    if (properties == null) {
      throw new ConfigurationException("Properties can not be null");
    }
    if (properties.get(CLIENT_ID) == null) {
      throw new ConfigurationException(CLIENT_ID + "can not be null");
    }
    if (properties.get(CLIENT_SECRET) == null) {
      throw new ConfigurationException(CLIENT_SECRET + "can not be null");
    }
    if (properties.get(ACCESS_TOKEN) == null) {
      throw new ConfigurationException(ACCESS_TOKEN + "can not be null");
    }
    if (properties.get(REFRESH_TOKEN) == null) {
      throw new ConfigurationException(REFRESH_TOKEN + "can not be null");
    }
    if (properties.get(EXPIRY_TIME_IN_MILLIS) == null) {
      throw new ConfigurationException(EXPIRY_TIME_IN_MILLIS
          + "can not be null");
    }

  }
View Full Code Here

    List<Participant> list = new ArrayList<Participant>();
    list.add(attendee1);
    Date startDate = new Date(System.currentTimeMillis() + 30000);
    Date endDate = new Date(startDate.getTime() + 1800000);
    Invite invite = new GoogleInviteImpl(props);
    invite.sendInvite("Testing Event", "Testing dummy event", from, list,
        startDate, endDate, "Delhi");
  }
View Full Code Here

  /**
   * Injects an object into the Browser class that resolves to IE's 'window.external' object.
   */
  public static void injectBrowserScriptExternalObject(Browser browser, final IDispatchImpl external) {
    COMObject iDocHostUIHandler = getDocHostUIHandler(browser);
    // Create a COMObjectProxy that will override GetExternal().
    //
    COMObjectProxy webSiteProxy =
        new COMObjectProxy(new int[]{2, 0, 0, 4, 1, 5, 0, 0, 1, 1, 1, 3, 3, 2, 2, 1, 3, 2}) {
          {
View Full Code Here

    //
    webSiteProxy.interpose(iDocHostUIHandler);
  }

  public static void ejectBrowserScriptExternalObject(Browser browser) {
    COMObject iDocHostUIHandler = getDocHostUIHandler(browser);
    COMObjectProxy.setCOMObject(iDocHostUIHandler.getAddress(), iDocHostUIHandler);
  }
View Full Code Here

    // Hang onto the object we're wrapping so that we can delegate later.
    this.target = victim;
    // Get the COMObject ObjectMap so that we can hijack the target's slot.
    // First, make sure that the target is still actually in the map.
    // If it isn't still in there, then the caller is using me incorrectly.
    COMObject currValue = getCOMObject(target.getAddress());
    if (currValue != target) {
      throw new IllegalStateException("target object is not currently mapped");
    }
    // Replace target's entry in COMObject's (vtbl -> instance) map with
    // a reference to this object instead. Calls still come in on the
View Full Code Here

  public static void injectBrowserScriptExternalObject(Browser browser,
      final IDispatchImpl external) {
    // Grab the browser's 'site.iDocHostUIHandler' field.
    //
    Object webSite = LowLevel.snatchFieldObjectValue(browser, "site");
    COMObject iDocHostUIHandler = (COMObject) LowLevel.snatchFieldObjectValue(
        webSite, "iDocHostUIHandler");

    // Create a COMObjectProxy that will override GetExternal().
    //
    COMObjectProxy webSiteProxy = new COMObjectProxy(new int[] {
View Full Code Here

  public static void injectBrowserScriptExternalObject(Browser browser,
      final IDispatchImpl external) {
    // Grab the browser's 'site.iDocHostUIHandler' field.
    //
    Object webSite = LowLevel.snatchFieldObjectValue(browser, "site");
    COMObject iDocHostUIHandler = (COMObject) LowLevel.snatchFieldObjectValue(
        webSite, "iDocHostUIHandler");

    // Create a COMObjectProxy that will override GetExternal().
    //
    COMObjectProxy webSiteProxy = new COMObjectProxy(new int[] {
View Full Code Here

        COMObject.class, null, "ObjectMap");
    Integer ppVtableTarget = new Integer(target.getAddress());

    // First, make sure that the target is still actually in the map.
    // If it isn't still in there, then the caller is using me incorrectly.
    COMObject currValue = objectMap.get(ppVtableTarget);
    if (currValue != target) {
      throw new IllegalStateException("target object is not currently mapped");
    }

    // Replace target's entry in COMObject's (vtbl -> instance) map with
View Full Code Here

TOP

Related Classes of org.eclipse.swt.internal.ole.win32.COM

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.