Package org.apache.directory.ldapstudio.schemas.view.views

Examples of org.apache.directory.ldapstudio.schemas.view.views.SearchView


    /* (non-Javadoc)
     * @see org.eclipse.search.ui.ISearchPage#performAction()
     */
    public boolean performAction()
    {
        SearchView searchView = ( SearchView ) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()
            .findView( SearchView.ID );

        String scope = null;

        if ( allMetadataButton.getSelection() )
        {
            scope = SearchView.SEARCH_ALL;
        }
        else if ( nameButton.getSelection() )
        {
            scope = SearchView.SEARCH_NAME;
        }
        else if ( oidButton.getSelection() )
        {
            scope = SearchView.SEARCH_OID;
        }
        else if ( descriptionButon.getSelection() )
        {
            scope = SearchView.SEARCH_DESC;
        }

        searchView.setSearch( searchCombo.getText(), scope );

        return true;
    }
View Full Code Here

TOP

Related Classes of org.apache.directory.ldapstudio.schemas.view.views.SearchView

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.