Examples of addListener()


Examples of org.apache.commons.vfs.FileSystem.addListener()

        FileObject child = baseFile.resolveFile("newfile.txt");
        assertTrue(!child.exists());

        FileSystem fs = baseFile.getFileSystem();
        TestListener listener = new TestListener(child);
        fs.addListener(child, listener);

        // Create as a folder
        listener.addCreateEvent();
        child.createFolder();
        listener.assertFinished();
View Full Code Here

Examples of org.apache.commons.vfs2.FileSystem.addListener()

        FileObject child = baseFile.resolveFile("newfile.txt");
        assertTrue(!child.exists());

        FileSystem fs = baseFile.getFileSystem();
        TestListener listener = new TestListener(child);
        fs.addListener(child, listener);

        // Create as a folder
        listener.addCreateEvent();
        child.createFolder();
        listener.assertFinished();
View Full Code Here

Examples of org.apache.curator.framework.recipes.leader.LeaderLatch.addListener()

  {
    final LeaderLatch newLeaderLatch = new LeaderLatch(
        curator, ZKPaths.makePath(zkPaths.getCoordinatorPath(), COORDINATOR_OWNER_NODE), self.getHost()
    );

    newLeaderLatch.addListener(
        new LeaderLatchListener()
        {
          @Override
          public void isLeader()
          {
View Full Code Here

Examples of org.apache.cxf.service.factory.FactoryBeanListenerManager.addListener()

        }
        bus = b;
        addBusInterceptors();
        FactoryBeanListenerManager fblm = bus.getExtension(FactoryBeanListenerManager.class);
        if (fblm != null) {
            fblm.addListener(new PolicyAnnotationListener());
        }
    }

    public Bus getBus() {
        return bus;
View Full Code Here

Examples of org.apache.directory.ldapstudio.schemas.model.SchemaPool.addListener()

    private void initViewer()
    {
        SchemaPool pool = SchemaPool.getInstance();
        //we want to be notified if the pool has been modified
        pool.addListener( this );

        viewer = new TreeViewer( parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER );
        contentProvider = new PoolManagerContentProvider();
        contentProvider.bindToTreeViewer( viewer );
View Full Code Here

Examples of org.apache.directory.studio.apacheds.model.Server.addListener()

        };

        // Adding the listener to the servers
        for ( Server server : ServersHandler.getDefault().getServersList() )
        {
            server.addListener( serverListener );
        }
    }


    /**
 
View Full Code Here

Examples of org.apache.directory.studio.apacheds.model.ServersHandler.addListener()

     * Initializes the listeners
     */
    private void initListeners()
    {
        ServersHandler serversHandler = ServersHandler.getDefault();
        serversHandler.addListener( serversHandlerListener );

        tableViewer.addDoubleClickListener( new IDoubleClickListener()
        {
            public void doubleClick( DoubleClickEvent event )
            {
View Full Code Here

Examples of org.apache.directory.studio.ldapservers.LdapServersManager.addListener()

     * Initializes the listeners
     */
    private void initListeners()
    {
        LdapServersManager serversHandler = LdapServersManager.getDefault();
        serversHandler.addListener( ldapServersManagerListener );

        tableViewer.addDoubleClickListener( new IDoubleClickListener()
        {
            public void doubleClick( DoubleClickEvent event )
            {
View Full Code Here

Examples of org.apache.directory.studio.ldapservers.model.LdapServer.addListener()

        };

        // Adding the listener to the servers
        for ( LdapServer server : LdapServersManager.getDefault().getServersList() )
        {
            server.addListener( serverListener );
        }
    }


    /**
 
View Full Code Here

Examples of org.apache.directory.studio.schemaeditor.controller.SchemaHandler.addListener()

        originalAttributeType = ( ( AttributeTypeEditorInput ) getEditorInput() ).getAttributeType();
        modifiedAttributeType = PluginUtils.getClone( originalAttributeType );

        SchemaHandler schemaHandler = Activator.getDefault().getSchemaHandler();
        originalSchema = schemaHandler.getSchema( originalAttributeType.getSchema() );
        schemaHandler.addListener( originalAttributeType, attributeTypeListener );
        schemaHandler.addListener( schemaHandlerListener );

        addPageChangedListener( pageChangedListener );
    }
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.