Examples of addListener()


Examples of org.locationtech.udig.project.geoselection.IGeoSelectionManager.addListener()

                    Object listenerObj = element.createExecutableExtension("class");
                    IGeoSelectionChangedListener listener = (IGeoSelectionChangedListener)listenerObj;

                    IGeoSelectionManager manager = getSelectionManager(managerId);
                    if(manager != null){
                        manager.addListener(listener);
                    }

                } catch (InvalidRegistryObjectException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
View Full Code Here

Examples of org.locationtech.udig.project.internal.Layer.addListener()

        });
        getSite().getPage().addPostSelectionListener(layerSelectionListener);

        for( Layer layer : getMap().getLayersInternal() ) {
            layer.addListener(layerListener);
        }

        dropTarget = UDIGDragDropUtilities.addDropSupport(viewer.getViewport().getControl(), this);
        this.replaceableSelectionProvider = new ReplaceableSelectionProvider();
        getSite().setSelectionProvider(replaceableSelectionProvider);
View Full Code Here

Examples of org.locationtech.udig.project.internal.render.CompositeRenderContext.addListener()

        if (context != null) {
            ((CompositeRenderContext) context).removeListener(contextListener);
        }
        if (newContext != null) {
            CompositeRenderContext compositeRenderContext = (CompositeRenderContext) newContext;
            compositeRenderContext.addListener(contextListener);
            for( IRenderContext context : compositeRenderContext.getContexts() ) {
                if (findExecutor(context) == null) {
                    Renderer renderer = getRendererCreator(context).getRenderer((RenderContext) context);
                    getRenderExecutors().add(createRenderExecutor(renderer));
                }
View Full Code Here

Examples of org.mortbay.http.HttpServer.addListener()

        assertNotNull(endpoint);
        assertTrue(!endpoint.isPublished());
       
        HttpServer server = new HttpServer();     
        SocketListener listener = new SocketListener(new InetAddrPort(27220));
        server.addListener(listener);
        try {
            server.start();
        } catch (Exception e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
View Full Code Here

Examples of org.mortbay.jetty.Server.addListener()

        System.out.println("Starting Web Server on port: " + port);
        Server server = new Server();
        SocketListener listener = new SocketListener();
        listener.setPort(port);
        server.addWebApplication(WEBAPP_CTX, WEBAPP_DIR);
        server.addListener(listener);
        server.start();
    }
}
View Full Code Here

Examples of org.mortbay.jetty.rhttp.client.JettyClient.addListener()

            if (currentClients < clients)
            {
                for (int i = 0; i < clients - currentClients; ++i)
                {
                    final RHTTPClient client = new JettyClient(httpClient, gatewayAddress, gatewayURI, nodeName + (currentClients + i));
                    client.addListener(new EchoListener(client));
                    client.connect();
                    this.clients.add(client);

                    // Give some time to the server to accept connections and
                    // reply to handshakes and connects
View Full Code Here

Examples of org.mortbay.jetty.rhttp.client.RHTTPClient.addListener()

            if (currentClients < clients)
            {
                for (int i = 0; i < clients - currentClients; ++i)
                {
                    final RHTTPClient client = new JettyClient(httpClient, gatewayAddress, gatewayURI, nodeName + (currentClients + i));
                    client.addListener(new EchoListener(client));
                    client.connect();
                    this.clients.add(client);

                    // Give some time to the server to accept connections and
                    // reply to handshakes and connects
View Full Code Here

Examples of org.mortbay.util.Scanner.addListener()

    Scanner scanner = new Scanner();
    scanner.setScanInterval(scanIntervalSeconds);
    scanner.setScanDirs(scanList);
    scanner.setRecursive(true);
    scanner.setReportExistingFilesOnStartup(true);
    scanner.addListener(new RJRFileChangeListener(web,config));
    System.err.println("Starting scanner at interval of "
        + scanIntervalSeconds + " seconds.");
    scanner.start();
  }
View Full Code Here

Examples of org.mozilla.javascript.ContextFactory.addListener()

        debuggerScript = path;
    }

    public void install() {
        ContextFactory factory = Context.getCurrentContext().getFactory();
        factory.addListener(new ContextFactory.Listener() {
            public void contextCreated(Context cx) {
                DebuggerBase debugger = createDebugger();
                if (debugger != null) {
                    debugger.attach(createContextData());
                }
View Full Code Here

Examples of org.mule.context.DefaultMuleContextFactory.addListener()

                builders.add(cfgBuilder);

                DefaultMuleContextFactory muleContextFactory = new DefaultMuleContextFactory();
                if (deploymentListener != null)
                {
                    muleContextFactory.addListener(new MuleContextDeploymentListener(getArtifactName(), deploymentListener));
                }

                ApplicationMuleContextBuilder applicationContextBuilder = new ApplicationMuleContextBuilder(descriptor);
                setMuleContext(muleContextFactory.createMuleContext(builders, applicationContextBuilder));
            }
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.