Examples of addListener()


Examples of org.sf.feeling.swt.win32.internal.extension.widgets.ButtonCanvas.addListener()

          .setLayoutData(new GridData(GridData.FILL, GridData.FILL, false, false));

      switch (buttonType)
      {
      case ThemeConstants.BUTTON_MAX:
        buttonCanvas.addListener(SWT.MouseUp, new Listener()
        {
          public void handleEvent(Event event)
          {
            if (event.button != 1) return;
            Rectangle rect = new Rectangle(0, 0, buttonCanvas.getBounds().width,
View Full Code Here

Examples of org.sonar.ide.intellij.worker.RefreshProjectListWorker.addListener()

        useProxyBox.setEnabled(false);

        final Sonar sonarConn = SonarUtils.getSonar(txtHost.getText(), txtUser.getText(), new String(txtPassword.getPassword()),
                                          useProxyBox.isSelected());
        final RefreshProjectListWorker refreshProjectListWorker = new RefreshProjectListWorker(sonarConn);
        refreshProjectListWorker.addListener(this);
        refreshProjectListWorker.execute();
    }

    @Override
    public void doneRefreshProjects(final List<SonarProject> newProjectList)
View Full Code Here

Examples of org.sonar.ide.intellij.worker.RefreshRuleWorker.addListener()

    private void downloadRules() {
        if (refreshingInProgress || (rulesToolTipMap != null && rulesToolTipMap.size() != 0))
            return;
        RefreshRuleWorker refreshRuleWorker = new RefreshRuleWorker(project);
        refreshRuleWorker.addListener(this);
        refreshingInProgress = true;
        refreshRuleWorker.execute();

    }
View Full Code Here

Examples of org.spockframework.runtime.model.SpecInfo.addListener()

      topSpec.getCleanupMethod().addInterceptor(interceptor);
      topSpec.getCleanupSpecMethod().addInterceptor(interceptor);

      // set the last created Spec, so we can call AfterSuite only when this is done.
      lastCreatedSpec = topSpec;
      topSpec.addListener(new AbstractRunListener()
      {
         @Override
         public void afterSpec(SpecInfo spec)
         {
            if(spec == lastCreatedSpec)
View Full Code Here

Examples of org.springframework.amqp.rabbit.support.PublisherCallbackChannel.addListener()

  }

  private void addListener(Channel channel) {
    if (channel instanceof PublisherCallbackChannel) {
      PublisherCallbackChannel publisherCallbackChannel = (PublisherCallbackChannel) channel;
      SortedMap<Long, PendingConfirm> pendingConfirms = publisherCallbackChannel
          .addListener(this);
      if (!this.pendingConfirms.containsKey(channel)) {
        this.pendingConfirms.put(channel, pendingConfirms);
        if (logger.isDebugEnabled()) {
          logger.debug("Added pending confirms for " + channel
View Full Code Here

Examples of org.springsource.ide.eclipse.commons.content.core.ContentManager.addListener()

      }

    };

    ContentManager manager = ContentPlugin.getDefault().getManager();
    manager.addListener(contentManagerListener);

    // This does not automatically add the templates to the tree viewer
    // input.
    // Rather it downloads templates asynchronously, and the content manager
    // will then notify the tree viewer when the content is available and at
View Full Code Here

Examples of org.switchyard.component.common.knowledge.config.model.v1.V1ListenersModel.addListener()

        }
        ListenersModel listenersModel = new V1ListenersModel(knowledgeNamespace.uri());
        for (Listener listenerAnnotation : listenerAnnotations) {
            ListenerModel listenerModel = new V1ListenerModel(knowledgeNamespace.uri());
            listenerModel.setClazz(listenerAnnotation.value());
            listenersModel.addListener(listenerModel);
        }
        return listenersModel;
    }

    /**
 
View Full Code Here

Examples of org.sylfra.idea.plugins.revu.settings.app.RevuAppSettingsComponent.addListener()

      public void settingsChanged(RevuAppSettings oldSettings, RevuAppSettings newSettings)
      {
        updateUIDependingOnAppSettings(newSettings);
      }
    };
    appSettingsComponent.addListener(appSettingsListener);
  }

  @Override
  protected void setupUI()
  {
View Full Code Here

Examples of org.testng.TestNG.addListener()

    public static void main(String[] args) {
        TestNG testng = new TestNG();
        testng.setTestClasses(new Class[] { CacheBenchmark4.class });
        TestListenerAdapter tla = new TestListenerAdapter();
        testng.addListener(tla);
        testng.run();
    }

    @DataProvider(name = "zipf")
    public Object[][] zipfDist1() {
View Full Code Here

Examples of org.testng.TestRunner.addListener()

    if(null == m_customTestRunnerFactory) {
      m_customTestRunnerFactory= new ITestRunnerFactory() {
          public TestRunner newTestRunner(ISuite suite, XmlTest xmlTest) {
            TestRunner runner= new TestRunner(suite, xmlTest);
            if(m_useDefaultListeners) {
              runner.addListener(new TestHTMLReporter());
              runner.addListener(new JUnitXMLReporter());
            }

            return runner;
          }
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.