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)

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

  • Reading from database using SQL prepared statement
  • runOnUiThread (Activity)
  • getResourceAsStream (ClassLoader)
  • getSupportFragmentManager (FragmentActivity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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