Examples of canRunInBackground()


Examples of org.eclipse.dltk.internal.ui.search.DLTKSearchQuery.canRunInBackground()

  }
 
  protected void startNewSearch(INamedElement defunit) throws ModelException {
    assertNotNull(defunit);
    DLTKSearchQuery query= new DLTKSearchQuery(createQuery(defunit));
    if (query.canRunInBackground()) {
      /*
       * This indirection with Object as parameter is needed to prevent the loading
       * of the Search plug-in: the Interpreter verifies the method call and hence loads the
       * types used in the method signature, eventually triggering the loading of
       * a plug-in (in this case ISearchQuery results in Search plug-in being loaded).
View Full Code Here

Examples of org.eclipse.egit.ui.internal.search.CommitSearchQuery.canRunInBackground()

  @Test
  public void testQuery() {
    CommitSearchQuery query = new CommitSearchQuery(createSettings());
    assertTrue(query.canRerun());
    assertTrue(query.canRunInBackground());
    assertNotNull(query.getLabel());
    assertTrue(query.getLabel().length() > 0);
  }

  @Test
View Full Code Here

Examples of org.eclipse.search.ui.ISearchQuery.canRunInBackground()

            NewSearchUI.activateSearchResultView();

            if (matchText != null && type != null) {
              ISearchQuery searchQuery = getSearchQuery(file, structuredDocument, matchText, type, textSelection);
              if (searchQuery != null) {
                if (searchQuery.canRunInBackground())
                  NewSearchUI.runQueryInBackground(searchQuery);
                else
                  NewSearchUI.runQueryInForeground(null, searchQuery);
              }
              findOccurrences = true;
View Full Code Here

Examples of org.erlide.ui.internal.search.ErlSearchQuery.canRunInBackground()

    return _searchPatternFactory.getSearchPattern(searchFor, moduleName, name, arity, limitTo, module);
  }
 
  public static void runQuery(final ErlangSearchPattern pattern, final ErlSearchScope scope, final String scopeDescription, final Shell shell) {
    final ErlSearchQuery query = new ErlSearchQuery(pattern, scope, scopeDescription);
    boolean _canRunInBackground = query.canRunInBackground();
    if (_canRunInBackground) {
      NewSearchUI.runQueryInBackground(query);
    } else {
      IWorkbench _workbench = PlatformUI.getWorkbench();
      final IProgressService progressService = _workbench.getProgressService();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.