/* (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;
}