Package org.apache.directory.studio.ldapbrowser.ui.views.connection

Examples of org.apache.directory.studio.ldapbrowser.ui.views.connection.ConnectionView


     * @return the currently selected connection
     */
    private Connection getSelectedConnection()
    {
        // Getting the connections view
        ConnectionView connectionView = ( ConnectionView ) PlatformUI.getWorkbench().getActiveWorkbenchWindow()
            .getActivePage().findView( ConnectionView.getId() );

        if ( connectionView != null )
        {
            // Getting the selection of the connections view
            StructuredSelection selection = ( StructuredSelection ) connectionView.getMainWidget().getViewer()
                .getSelection();

            // Checking if only one object is selected
            if ( selection.size() == 1 )
            {
View Full Code Here

TOP

Related Classes of org.apache.directory.studio.ldapbrowser.ui.views.connection.ConnectionView

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.