Examples of Activator


Examples of org.eclipse.ecf.internal.remoteservice.rest.Activator

    }
  }

  protected void logException(String string, Throwable e) {
    Activator a = Activator.getDefault();
    if (a != null)
      a.log(new Status(IStatus.ERROR, Activator.PLUGIN_ID, string, e));
  }
View Full Code Here

Examples of org.eclipse.ecf.internal.remoteservice.rpc.Activator

    return result;
  }

  protected void logException(String string, Throwable e) {
    Activator a = Activator.getDefault();
    if (a != null)
      a.log(new Status(IStatus.ERROR, Activator.PLUGIN_ID, string, e));
  }
View Full Code Here

Examples of org.eclipse.egit.core.Activator

  }

  @Override
  public void dispose() {
    Activator activator = Activator.getDefault();
    if (activator == null)
      return;

    IndexDiffCache indexDiffCache = activator.getIndexDiffCache();
    if (indexDiffCache != null)
      indexDiffCache.removeIndexDiffChangedListener(indexChangeListener);

    ResourcesPlugin.getWorkspace().removeResourceChangeListener(resourceChangeListener);
    subscriber.dispose();
View Full Code Here

Examples of org.eclipse.equinox.http.servlet.internal.Activator

    }

    @Override
    protected void doStartBundle() throws Exception {
        // activate the HttpService
        this.httpServiceActivator = new Activator();
        this.httpServiceActivator.start(this.getBundleContext());
    }
View Full Code Here

Examples of org.eclipse.equinox.http.servlet.internal.Activator

    }

    @Override
    protected void doStartBundle() throws Exception {
        // activate the HttpService
        this.httpServiceActivator = new Activator();
        this.httpServiceActivator.start(this.getBundleContext());
    }
View Full Code Here

Examples of org.eclipse.orion.internal.server.servlets.Activator

      return statusHandler.handleRequest(req, resp, new ServerStatus(IStatus.ERROR, HttpServletResponse.SC_BAD_REQUEST, "User " + userId + " could not be found.", null));
    }

    // Delete user from metadata store
    try {
      @SuppressWarnings("unused")
      Activator r = Activator.getDefault();
      final IMetaStore metastore = OrionConfiguration.getMetaStore();
      if (userInfo.getWorkspaceIds().size() > 0) {
        for (String workspaceId : userInfo.getWorkspaceIds()) {
          WorkspaceInfo workspaceInfo = metastore.readWorkspace(workspaceId);
View Full Code Here

Examples of org.eclipse.orion.internal.server.servlets.Activator

   * @param uri The URI to remove access to
   * @throws CoreException If an error occurred persisting user rights.
   */
  public static void removeUserRight(String userId, String uri) throws CoreException {
    try {
      @SuppressWarnings("unused")
      Activator r = Activator.getDefault();
      UserInfo user = OrionConfiguration.getMetaStore().readUser(userId);
      JSONArray userRightArray = AuthorizationReader.getAuthorizationData(user);
      for (int i = 0; i < userRightArray.length(); i++) {
        if (uri.equals(((JSONObject) userRightArray.get(i)).get(ProtocolConstants.KEY_USER_RIGHT_URI)))
View Full Code Here

Examples of org.foo.log.Activator

   
    // this latch limits the calls to the log service
    final CountDownLatch latch = new CountDownLatch(3);

    // override pause method to allow test synchronization
    BundleActivator logClientActivator = new Activator() {
      @Override protected void pauseTestThread() {

        // report log call
        latch.countDown();

        // nothing else left to do?
        if (latch.getCount() == 0) {
          LockSupport.park();
        }
      }
    };

    logClientActivator.start(context);

    // timeout in case test deadlocks
    if (!latch.await(5, TimeUnit.SECONDS)) {
      fail("Still expecting" + latch.getCount() + " calls");
    }

    logClientActivator.stop(context);

    // VERIFY - check the behavior matches
    // ===================================

    verify(context, serviceRef, logService);
View Full Code Here

Examples of org.jclouds.osgi.Activator

   */
  @Override
  public void start(BundleContext context) throws Exception {
    super.start(context);
    plugin = this;
    activator = new Activator();
    activator.start(context);
  }
View Full Code Here

Examples of org.locationtech.udig.catalog.tests.wmsc.Activator

    @Test
    public void testResolver() throws Exception {
        if( !localGeoserver){
            return; // ignore this test
        }
        Activator instance = Activator.getDefault();
        assertNotNull("Run as a JUnit Plug-in Test", instance);

        // get the service factory
        IServiceFactory factory = CatalogPlugin.getDefault().getServiceFactory();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.