Tabnine Logo
SearchItemReference
Code IndexAdd Tabnine to your IDE (free)

How to use
SearchItemReference
in
org.eclipse.che.ide.api.resources

Best Java code snippets using org.eclipse.che.ide.api.resources.SearchItemReference (Showing top 5 results out of 315)

origin: org.eclipse.che.core/che-core-ide-app

/** {@inheritDoc} */
@Override
public String getName() {
 return searchItemReference.getName();
}
origin: org.eclipse.che.core/che-core-ide-app

 @Override
 protected Promise<List<Node>> getChildrenImpl() {
  List<Node> fileNodes;
  List<SearchOccurrence> occurrences = searchItemReference.getOccurrences();
  occurrences.sort(
    Comparator.comparingInt(
      (SearchOccurrence searchOccurrence) -> searchOccurrence.getLineNumber()));
  fileNodes =
    occurrences
      .stream()
      .map(
        occurrence ->
          nodeFactory.newFoundOccurrenceNode(occurrence, searchItemReference.getPath()))
      .collect(Collectors.toList());
  return promiseProvider.resolve(fileNodes);
 }
}
origin: org.eclipse.che.plugin/che-plugin-debugger-ide

.getFile(resources.get(0).getPath())
.then(
  file -> {
origin: org.eclipse.che.core/che-core-ide-app

total += searchItemReference.getOccurrences().size();
origin: org.eclipse.che.core/che-core-ide-app

/** {@inheritDoc} */
@Override
public void updatePresentation(@NotNull NodePresentation presentation) {
 StringBuilder resultTitle = new StringBuilder();
 resultTitle.append(" (");
 resultTitle.append(searchItemReference.getOccurrences().size());
 resultTitle.append(" occurrence");
 if (searchItemReference.getOccurrences().size() > 1) {
  resultTitle.append('s');
 }
 resultTitle.append(" of '");
 resultTitle.append(request);
 resultTitle.append('\'');
 resultTitle.append(" found)");
 presentation.setPresentableText(resultTitle.toString());
 SpanElement spanElement = Elements.createSpanElement(resources.coreCss().foundItem());
 spanElement.setId(searchItemReference.getPath());
 spanElement.setInnerText(searchItemReference.getPath());
 presentation.setUserElement((Element) spanElement);
}
org.eclipse.che.ide.api.resourcesSearchItemReference

Most used methods

  • getPath
  • getName
  • getOccurrences

Popular in Java

  • Creating JSON documents from java classes using gson
  • getContentResolver (Context)
  • getExternalFilesDir (Context)
  • getApplicationContext (Context)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now