congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
IJavaSourceLocation
Code IndexAdd Tabnine to your IDE (free)

How to use
IJavaSourceLocation
in
org.eclipse.jdt.launching.sourcelookup

Best Java code snippets using org.eclipse.jdt.launching.sourcelookup.IJavaSourceLocation (Showing top 10 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew ArrayList()
  • Codota Iconnew LinkedList()
  • Smart code suggestions by Tabnine
}
origin: org.eclipse.jdt/org.eclipse.jdt.launching

@Override
public Object findSourceElement(String name) throws CoreException {
  if (fRootLocations != null) {
    for (int i = 0; i < fRootLocations.length; i++) {
      Object element = fRootLocations[i].findSourceElement(name);
      if (element != null) {
        return element;
      }
    }
  }
  return null;
}
origin: org.eclipse.jdt/org.eclipse.jdt.launching

@Override
public String getMemento() throws CoreException {
  Document doc = DebugPlugin.newDocument();
  Element node = doc.createElement("javaSourceLocator"); //$NON-NLS-1$
  doc.appendChild(node);
  IJavaSourceLocation[] locations = getSourceLocations();
  for (int i = 0; i < locations.length; i++) {
    Element child = doc.createElement("javaSourceLocation"); //$NON-NLS-1$
    child.setAttribute("class", locations[i].getClass().getName()); //$NON-NLS-1$
    child.setAttribute("memento", locations[i].getMemento()); //$NON-NLS-1$
    node.appendChild(child);
  }
  return DebugPlugin.serializeDocument(doc);
}
origin: org.eclipse.jdt/org.eclipse.jdt.launching

    abort(LaunchingMessages.JavaSourceLocator_Unable_to_restore_source_location__12, e);
  location.initializeFrom(data);
  sourceLocations.add(location);
} else {
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jdt.launching

    abort(LaunchingMessages.JavaSourceLocator_Unable_to_restore_source_location__12, e); 
  location.initializeFrom(data);
  sourceLocations.add(location);
} else {
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jdt.launching

@Override
public Object findSourceElement(String name) throws CoreException {
  if (fRootLocations != null) {
    for (int i = 0; i < fRootLocations.length; i++) {
      Object element = fRootLocations[i].findSourceElement(name);
      if (element != null) {
        return element;
      }
    }
  }
  return null;
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jdt.launching

@Override
public String getMemento() throws CoreException {
  Document doc = DebugPlugin.newDocument();
  Element node = doc.createElement("javaSourceLocator"); //$NON-NLS-1$
  doc.appendChild(node);
  
  IJavaSourceLocation[] locations = getSourceLocations();
  for (int i = 0; i < locations.length; i++) {
    Element child = doc.createElement("javaSourceLocation"); //$NON-NLS-1$
    child.setAttribute("class", locations[i].getClass().getName()); //$NON-NLS-1$
    child.setAttribute("memento", locations[i].getMemento()); //$NON-NLS-1$
    node.appendChild(child);
  }
  return DebugPlugin.serializeDocument(doc); 
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jdt.launching

for (int i = 0; i < locations.length; i++) {
  try {
    Object sourceElement = locations[i].findSourceElement(name);
    if (sourceElement != null) {
      list.add(sourceElement);
origin: org.eclipse.jdt/org.eclipse.jdt.launching

for (int i = 0; i < locations.length; i++) {
  try {
    Object sourceElement = locations[i].findSourceElement(name);
    if (sourceElement != null) {
      list.add(sourceElement);
origin: org.eclipse.jdt/org.eclipse.jdt.launching

for (int i = 0; i < locations.length; i++) {
  try {
    Object sourceElement = locations[i].findSourceElement(name);
    if (sourceElement != null) {
      return sourceElement;
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jdt.launching

for (int i = 0; i < locations.length; i++) {
  try {
    Object sourceElement = locations[i].findSourceElement(name);
    if (sourceElement != null) {
      return sourceElement;
org.eclipse.jdt.launching.sourcelookupIJavaSourceLocation

Javadoc

A repository of source code. A source location is capable of retrieving source elements.

For example, a source location could be a project, zip/archive file, or a directory in the file system.

This interface is may be implemented by clients.

Most used methods

  • findSourceElement
    Returns an object representing the source code for a type with the specified name, or null if none c
  • getMemento
    Returns a memento for this source location from which this source location can be reconstructed.
  • initializeFrom
    Initializes this source location from the given memento.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • startActivity (Activity)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Permission (java.security)
    Legacy security code; do not use.
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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