Examples of addListener()


Examples of org.mule.tck.listener.FlowExecutionListener.addListener()

    private void verifyAppProcessMessageWithAppClassLoader(FakeMuleServer fakeMuleServer, String appName, String requestUrl) throws MuleException
    {
        MuleContext applicationContext = fakeMuleServer.findApplication(appName).getMuleContext();
        final AtomicReference<ClassLoader> executionClassLoader = new AtomicReference<ClassLoader>();
        FlowExecutionListener flowExecutionListener = new FlowExecutionListener(applicationContext);
        flowExecutionListener.addListener(new Callback<MuleEvent>()
        {
            @Override
            public void execute(MuleEvent source)
            {
                executionClassLoader.set(Thread.currentThread().getContextClassLoader());
View Full Code Here

Examples of org.objectstyle.wolips.eogenerator.core.model.EOGenerateWorkspaceJob.addListener()

        for (IResource eogenResource : eogenFiles) {
          IFile eogenFile = (IFile) eogenResource;
          EOGeneratorModel eogenModel = EOGeneratorModel.createModelFromFile(eogenFile);
          if (eogenModel.isModelReferenced(modifiedModelReference)) {
            EOGenerateWorkspaceJob eogenerateJob = new EOGenerateWorkspaceJob(eogenFile);
            eogenerateJob.addListener(new MarkerEOGeneratorListener());
            eogenerateJob.schedule();
          }
        }
      }
    } catch (Throwable e) {
View Full Code Here

Examples of org.olat.core.commons.modules.bc.components.FolderComponent.addListener()

    allowRelativeLinksForm.addListener(this);

    VFSContainer namedCourseFolder = new NamedContainerImpl(getTranslator().translate(NLS_FOLDER_DISPLAYNAME), rContainer);
    rootContainer = namedCourseFolder;
    FolderComponent folderComponent = new FolderComponent(ureq, "foldercomp", namedCourseFolder, ureq.getLocale(), null);
    folderComponent.addListener(this);
    cmdUpload = new CmdUpload(ureq, getWindowControl());
    cmdUpload.execute(folderComponent, ureq, getWindowControl(), getTranslator(), true);   
    cmdUpload.hideFieldset();
    listenTo(cmdUpload);
    Panel mainPanel = new Panel("upl");
View Full Code Here

Examples of org.olat.core.gui.components.Window.addListener()

    // put the global js translator mapper path into the main window
    mainvc.contextPut("jsTranslationMapperPath", jsTranslationMapperPath);
   
    // master window
    w.addListener(this); // to be able to report "browser reload" to the user
    w.setContentPane(mainPanel);
    setWindow(w);

  }
View Full Code Here

Examples of org.onemind.swingweb.session.SwingWebSession.addListener()

                        {
                            SwingWebSession swSession = (SwingWebSession) obj;
                            if (swSession == null)
                            {
                                swSession = (SwingWebSession) createSession(_manager.getContext(), session);
                                swSession.addListener(this);
                                swSession.putValue("SWINGWEB_SESSION_ID", String.valueOf(System.currentTimeMillis()));
                                session.setAttribute(uri, swSession);
                                swSession.putAllValues(env);
                                swSession.putValue("HTTP_FORM", form);
                                swSession.putValue("HTTP_SESSION", session);
View Full Code Here

Examples of org.openhab.binding.insteonhub.internal.hardware.InsteonHubProxy.addListener()

        proxies.putAll(newProxies);
        for (Map.Entry<String, InsteonHubProxy> entry : proxies
            .entrySet()) {
          String hubId = entry.getKey();
          InsteonHubProxy proxy = entry.getValue();
          proxy.addListener(new AsyncEventPublisher(hubId));
          // If activated, start proxy now
          if (activated) {
            proxy.start();
          }
        }
View Full Code Here

Examples of org.openhab.binding.insteonplm.internal.device.DeviceFeature.addListener()

      logger.error("item {} references unknown feature: {}, item disabled!", aItemName, aConfig.getFeature());
      return;
    }
    DeviceFeatureListener fl = new DeviceFeatureListener(aItemName, eventPublisher);
    fl.setParameters(aConfig.getParameters());
    f.addListener(fl)
  }

  /**
   * Handles messages that come in from the ports.
   * Will only process one message at a time.
View Full Code Here

Examples of org.openpnp.spi.JobProcessor.addListener()

        testDriver.setDelegate(delegate);

        TestCompleteNotifier notifier = new TestCompleteNotifier();

        JobProcessor jobProcessor = machine.getJobProcessor();
        jobProcessor.addListener(new BasicJobTestProcessorListener(notifier));
        jobProcessor.setDelegate(new BasicJobTestJobProcessorDelegate());

        Job job = createSimpleJob();

        Head h1 = machine.getHead("H1");
View Full Code Here

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

        proxy.useCyberVillains = false;
        httpContext.addHandler(proxy);
        server.addContext(httpContext);
        SocketListener listener = new SocketListener();
        listener.setPort(4444);
        server.addListener(listener);
        server.start();
    }

    public synchronized void generateSSLCertsForLoggingHosts(HttpServer server) {
        if (fakeCertsGenerated) return;
View Full Code Here

Examples of org.pentaho.di.ui.core.widget.StyledTextComp.addListener()

        hideParseErrors();
        highlightSyntax();
      }
    });

    wScript.addListener(SWT.Show, new Listener() {

      @Override
      public void handleEvent(Event e) {
        highlightSyntax();
        hideParseErrors();
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.