Package org.apache.directory.studio.connection.core.jobs

Examples of org.apache.directory.studio.connection.core.jobs.StudioConnectionJob


        // add connection to folder
        selectedConnectionFolder.addConnectionId( conn.getId() );

        // open connection
        new StudioConnectionJob( new OpenConnectionsRunnable( conn ) ).execute();

        return true;
    }
View Full Code Here


    /**
     * {@inheritDoc}
     */
    public void run()
    {
        new StudioConnectionJob( new OpenConnectionsRunnable( getSelectedConnections() ) ).execute();
    }
View Full Code Here

            connection.setConnectionParameter( connectionParameter );

            if ( reconnectionRequired )
            {
                // close connection
                new StudioConnectionJob( new CloseConnectionsRunnable( connection ) ).execute();
            }
        }

        return true;
    }
View Full Code Here

            .getConnectionFolderManager();
        ConnectionFolder rootConnectionFolder = connectionFolderManager.getRootConnectionFolder();
        rootConnectionFolder.addConnectionId( connection.getId() );

        selectConnection( name );
        StudioConnectionJob job = new StudioConnectionJob( new OpenConnectionsRunnable( connection ) );
        job.execute();
        job.join();

        return connection;
    }
View Full Code Here

            connection.setConnectionParameter( connectionParameter );

            if ( reconnectionRequired )
            {
                // close connection
                new StudioConnectionJob( new CloseConnectionsRunnable( connection ) ).execute();
            }
        }

        return true;
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    public void run()
    {
        new StudioConnectionJob( new OpenConnectionsRunnable( getSelectedConnections() ) ).execute();
    }
View Full Code Here

    /**
     * @see org.apache.directory.studio.connection.ui.actions.StudioAction#run()
     */
    public void run()
    {
        new StudioConnectionJob( new CloseConnectionsRunnable( getSelectedConnections() ) ).execute();
    }
View Full Code Here

     * @param connectionsToDelete
     *      the Connections to delete
     */
    private void deleteConnections( List<Connection> connectionsToDelete )
    {
        new StudioConnectionJob( new CloseConnectionsRunnable( connectionsToDelete ) ).execute();
        for ( Connection connection : connectionsToDelete )
        {
            ConnectionCorePlugin.getDefault().getConnectionManager().removeConnection( connection);
        }
    }
View Full Code Here

        // add connection to folder
        selectedConnectionFolder.addConnectionId( conn.getId() );

        // open connection
        new StudioConnectionJob( new OpenConnectionsRunnable( conn ) ).execute();

        return true;
    }
View Full Code Here

            connection.setConnectionParameter( connectionParameter );

            if ( reconnectionRequired )
            {
                // close connection
                new StudioConnectionJob( new CloseConnectionsRunnable( connection ) ).execute();
            }
        }

        return true;
    }
View Full Code Here

TOP

Related Classes of org.apache.directory.studio.connection.core.jobs.StudioConnectionJob

Copyright © 2018 www.massapicom. 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.