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

How to use
AbstractSynchronizationContentProvider
in
org.eclipse.ltk.ui.refactoring.model

Best Java code snippets using org.eclipse.ltk.ui.refactoring.model.AbstractSynchronizationContentProvider (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.ui

@Override
public boolean hasChildren(final Object element) {
  if (element instanceof ICompilationUnit || element instanceof IFile || element instanceof RefactoringDescriptorProxy || element instanceof RefactoringDescriptor)
    return false;
  return super.hasChildren(element);
}
origin: org.eclipse/org.eclipse.jdt.ui

/**
 * Since the this content provider overrides the resource content provider,
 * this method is only invoked when the resource content provider is
 * disabled. In this case, we still want the Java projects to appear at the
 * root of the view.
 * 
 * {@inheritDoc}
 */
public Object[] getElements(Object parent) {
  if (parent instanceof ISynchronizationContext)
    // Put the resource projects directly under the context
    parent= getModelRoot();
  return super.getElements(parent);
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

@Override
protected Object[] getChildrenInContext(final ISynchronizationContext context, final Object parent, final Object[] children) {
  final Object[] elements= super.getChildrenInContext(context, parent, children);
  if (parent instanceof IPackageFragment)
    return getPackageFragmentChildren(context, parent, elements);
  else if (parent instanceof IPackageFragmentRoot)
    return getPackageFragmentRootChildren(context, parent, elements);
  else if (parent instanceof IJavaProject)
    return getJavaProjectChildren(context, parent, elements);
  else if (parent instanceof RefactoringHistory)
    return ((RefactoringHistory) parent).getDescriptors();
  // It may be the case that the elements are folders that have a corresponding
  // source folder in which case they should be filtered out
  return getFilteredElements(parent, elements);
}
origin: org.eclipse/org.eclipse.ltk.ui.refactoring

if (!isVisible(new RefactoringDescriptorDiff(proxy, IDiff.CHANGE, proxy.getDirection())))
  result.remove(proxy);
origin: org.eclipse.jdt/org.eclipse.jdt.ui

/**
 * Since the this content provider overrides the resource content provider,
 * this method is only invoked when the resource content provider is
 * disabled. In this case, we still want the Java projects to appear at the
 * root of the view.
 *
 * {@inheritDoc}
 */
@Override
public Object[] getElements(Object parent) {
  if (parent instanceof ISynchronizationContext)
    // Put the resource projects directly under the context
    parent= getModelRoot();
  return super.getElements(parent);
}
origin: org.eclipse/org.eclipse.jdt.ui

/**
 * {@inheritDoc}
 */
protected Object[] getChildrenInContext(final ISynchronizationContext context, final Object parent, final Object[] children) {
  final Object[] elements= super.getChildrenInContext(context, parent, children);
  if (parent instanceof IPackageFragment)
    return getPackageFragmentChildren(context, parent, elements);
  else if (parent instanceof IPackageFragmentRoot)
    return getPackageFragmentRootChildren(context, parent, elements);
  else if (parent instanceof IJavaProject)
    return getJavaProjectChildren(context, parent, elements);
  else if (parent instanceof RefactoringHistory)
    return ((RefactoringHistory) parent).getDescriptors();
  // It may be the case that the elements are folders that have a corresponding
  // source folder in which case they should be filtered out
  return getFilteredElements(parent, elements);
}
origin: org.eclipse/org.eclipse.jdt.ui

/**
 * {@inheritDoc}
 */
public boolean hasChildren(final Object element) {
  if (element instanceof ICompilationUnit || element instanceof IFile || element instanceof RefactoringDescriptorProxy || element instanceof RefactoringDescriptor)
    return false;
  return super.hasChildren(element);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

/**
 * Since the this content provider overrides the resource content provider,
 * this method is only invoked when the resource content provider is
 * disabled. In this case, we still want the Java projects to appear at the
 * root of the view.
 *
 * {@inheritDoc}
 */
@Override
public Object[] getElements(Object parent) {
  if (parent instanceof ISynchronizationContext)
    // Put the resource projects directly under the context
    parent= getModelRoot();
  return super.getElements(parent);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
protected Object[] getChildrenInContext(final ISynchronizationContext context, final Object parent, final Object[] children) {
  final Object[] elements= super.getChildrenInContext(context, parent, children);
  if (parent instanceof IPackageFragment)
    return getPackageFragmentChildren(context, parent, elements);
  else if (parent instanceof IPackageFragmentRoot)
    return getPackageFragmentRootChildren(context, parent, elements);
  else if (parent instanceof IJavaProject)
    return getJavaProjectChildren(context, parent, elements);
  else if (parent instanceof RefactoringHistory)
    return ((RefactoringHistory) parent).getDescriptors();
  // It may be the case that the elements are folders that have a corresponding
  // source folder in which case they should be filtered out
  return getFilteredElements(parent, elements);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
public boolean hasChildren(final Object element) {
  if (element instanceof ICompilationUnit || element instanceof IFile || element instanceof RefactoringDescriptorProxy || element instanceof RefactoringDescriptor)
    return false;
  return super.hasChildren(element);
}
org.eclipse.ltk.ui.refactoring.modelAbstractSynchronizationContentProvider

Javadoc

Partial implementation of a refactoring-aware synchronization content provider.

This class provides a method #getRefactorings(ISynchronizationContext,IProject,IProgressMonitor)which may be used in subclasses to render refactorings in team synchronization views.

Note: this class is designed to be extended by clients. Programming language implementers who need refactoring support in a synchronization content provider used in team synchronization views may use this class as a basis for refactoring-aware synchronization content providers.

Most used methods

  • getChildrenInContext
  • getElements
  • hasChildren
  • isVisible

Popular in Java

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • putExtra (Intent)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Join (org.hibernate.mapping)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top 17 PhpStorm 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