Examples of ListenerSupport


Examples of com.bbn.openmap.event.ListenerSupport

     * @param aInfoDisplayListener the listener to add
     */
    public synchronized void addInfoDisplayListener(
                                                    InfoDisplayListener aInfoDisplayListener) {
        if (IDListeners == null) {
            IDListeners = new ListenerSupport(this);
        }
        IDListeners.addListener(aInfoDisplayListener);
    }
View Full Code Here

Examples of com.bbn.openmap.event.ListenerSupport

     */
    public synchronized void addLayerStatusListener(
                                                    LayerStatusListener aLayerStatusListener) {

        if (lsListeners == null) {
            lsListeners = new ListenerSupport(this);
        }
        lsListeners.addListener(aLayerStatusListener);
    }
View Full Code Here

Examples of com.bbn.openmap.event.ListenerSupport

     * notification. Remove when it works.
     */
    public void addComponentListener(ComponentListener cl) {
        super.addComponentListener(cl);
        if (localHackList == null) {
            localHackList = new ListenerSupport(this);
        }
        localHackList.addListener(cl);
    }
View Full Code Here

Examples of org.openbp.common.listener.ListenerSupport

   */
  public synchronized void addClipboardListener(ChangeListener listener)
  {
    if (listenerSupport == null)
    {
      listenerSupport = new ListenerSupport();
    }
    listenerSupport.addWeakListener(ChangeListener.class, listener);
  }
View Full Code Here

Examples of org.openbp.common.listener.ListenerSupport

   */
  public synchronized void addTreeTableListener(TreeTableListener listener)
  {
    if (listenerSupport == null)
    {
      listenerSupport = new ListenerSupport();
    }
    listenerSupport.addListener(TreeTableListener.class, listener);
  }
View Full Code Here

Examples of org.openbp.common.listener.ListenerSupport

   */
  public synchronized void addWeakTreeTableListener(TreeTableListener listener)
  {
    if (listenerSupport == null)
    {
      listenerSupport = new ListenerSupport();
    }
    listenerSupport.addWeakListener(TreeTableListener.class, listener);
  }
View Full Code Here

Examples of org.sonatype.sisu.resource.scanner.helper.ListenerSupport

  }

  public Set<File> scan(final File baseDir) {
    final Set<File> rpms = Sets.newHashSet();

    scanner.scan(baseDir, new ListenerSupport()
    {
      @Override
      public void onFile(final File file) {
        if ("rpm".equalsIgnoreCase(FilenameUtils.getExtension(file.getName()))
            && !getRelativePath(baseDir, file).startsWith(".")) {
View Full Code Here

Examples of org.sonatype.sisu.resource.scanner.helper.ListenerSupport

        // copy repository content to a temporary location
        final File content = getP2Content(configuration, repository);
        final File tempContent = new File(destinationP2Repository, content.getName());
        FileUtils.copyFile(content, tempContent);

        new SerialScanner().scan(scanPath, new ListenerSupport()
        {

          @Override
          public void onFile(final File file) {
            try {
View Full Code Here

Examples of org.sonatype.sisu.resource.scanner.helper.ListenerSupport

      File scanPath = localStorage;
      if (resourceStorePath != null) {
        scanPath = new File(scanPath, resourceStorePath);
      }

      new SerialScanner().scan(scanPath, new ListenerSupport()
      {

        @Override
        public void onFile(final File file) {
          final String path = getRelativePath(localStorage, file);
View Full Code Here

Examples of org.sonatype.sisu.resource.scanner.helper.ListenerSupport

      final Repository repo = repoRegistry.getRepository(repoId);

      final File root = RepoHelp.repoRoot(repo);

      final Listener listener = new ListenerSupport() {

        @Override
        public void onBegin() {

          log.info("##########################################");
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.