Codota Logo
AbstractSynchronizationContentProvider
Code IndexAdd Codota 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 LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
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

  • Making http requests using okhttp
  • putExtra (Intent)
  • addToBackStack (FragmentTransaction)
  • orElseThrow (Optional)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Option (scala)
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