Package org.jampa.gui.runnables

Examples of org.jampa.gui.runnables.SearchRunnable


     
      searchParamSection.setExpanded(false);
     
      form.reflow(true);
     
      SearchRunnable search;
      if (advancedSearchExpComposite.isExpanded()) {     
        search = new SearchRunnable(queryText.getText());
      } else {       
        search = new SearchRunnable(searchText.getText(),
            searchCaseSensitive.getSelection(),
            searchWholeWord.getSelection(),
            searchInTitle.getSelection(),
            searchInArtist.getSelection(),
            searchInAlbum.getSelection(),
            searchInGenre.getSelection(),
            searchInYear.getSelection());
      }
      ProgressMonitorDialog dialog = new ProgressMonitorDialog(Display.getDefault().getActiveShell());
     
      try {
        dialog.run(true, true, search);
      } catch (InvocationTargetException e) {
        Log.getInstance(SearchView.class).error(e.getMessage());
      } catch (InterruptedException e) {
        Log.getInstance(SearchView.class).error(e.getMessage());     
      }
     
      if (search.getQueryStatus()) {
        _lastSearch = search.getResults();
        viewer.setInput(getViewSite());
        setAllCheckedStatus(true);
      } else {
        form.setMessage(Messages.getString("SearchView.ErrorInQueryExecution"), IMessageProvider.ERROR); //$NON-NLS-1$
      }
View Full Code Here

TOP

Related Classes of org.jampa.gui.runnables.SearchRunnable

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.