Codota Logo
SearchItemReference
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
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

  • Finding current android device location
  • scheduleAtFixedRate (ScheduledExecutorService)
  • requestLocationUpdates (LocationManager)
  • findViewById (Activity)
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now