congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
AbstractRefactoringHistoryResourceMapping.getTraversals
Code IndexAdd Tabnine to your IDE (free)

How to use
getTraversals
method
in
org.eclipse.ltk.core.refactoring.model.AbstractRefactoringHistoryResourceMapping

Best Java code snippets using org.eclipse.ltk.core.refactoring.model.AbstractRefactoringHistoryResourceMapping.getTraversals (Showing top 3 results out of 315)

origin: org.eclipse/org.eclipse.ltk.core.refactoring

/**
 * Returns the associated resource.
 * <p>
 * This method only returns a meaningful result if the history contains
 * refactorings of a single project.
 * </p>
 * 
 * @return the associated resource, or <code>null</code> if the
 *         refactoring history contains workspace refactoring descriptors
 *         only, or if it contains refactoring descriptors from multiple
 *         projects.
 */
public final IResource getResource() {
  try {
    final ResourceTraversal[] traversals= getTraversals(null, null);
    if (traversals.length > 0) {
      final IResource[] resources= traversals[0].getResources();
      if (resources.length > 0)
        return resources[0];
    }
  } catch (CoreException exception) {
    RefactoringCorePlugin.log(exception);
  }
  return null;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.ltk.core.refactoring

/**
 * Returns the associated resource.
 * <p>
 * This method only returns a meaningful result if the history contains
 * refactorings of a single project.
 * </p>
 *
 * @return the associated resource, or <code>null</code> if the
 *         refactoring history contains workspace refactoring descriptors
 *         only, or if it contains refactoring descriptors from multiple
 *         projects.
 */
public final IResource getResource() {
  try {
    final ResourceTraversal[] traversals= getTraversals(null, null);
    if (traversals.length > 0) {
      final IResource[] resources= traversals[0].getResources();
      if (resources.length > 0)
        return resources[0];
    }
  } catch (CoreException exception) {
    RefactoringCorePlugin.log(exception);
  }
  return null;
}
origin: org.eclipse.platform/org.eclipse.ltk.core.refactoring

/**
 * Returns the associated resource.
 * <p>
 * This method only returns a meaningful result if the history contains
 * refactorings of a single project.
 * </p>
 *
 * @return the associated resource, or <code>null</code> if the
 *         refactoring history contains workspace refactoring descriptors
 *         only, or if it contains refactoring descriptors from multiple
 *         projects.
 */
public final IResource getResource() {
  try {
    final ResourceTraversal[] traversals= getTraversals(null, null);
    if (traversals.length > 0) {
      final IResource[] resources= traversals[0].getResources();
      if (resources.length > 0)
        return resources[0];
    }
  } catch (CoreException exception) {
    RefactoringCorePlugin.log(exception);
  }
  return null;
}
org.eclipse.ltk.core.refactoring.modelAbstractRefactoringHistoryResourceMappinggetTraversals

Popular methods of AbstractRefactoringHistoryResourceMapping

  • getProjects
  • getResource
    Returns the associated resource. This method only returns a meaningful result if the history contain

Popular in Java

  • Parsing JSON documents to java classes using gson
  • addToBackStack (FragmentTransaction)
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (Timer)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Socket (java.net)
    Provides a client-side TCP socket.
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • JList (javax.swing)
  • JTextField (javax.swing)
  • Top 25 Plugins for Webstorm
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