org.eclipse.emf.cdo.ui.ide
Class RepositoryContentProvider

java.lang.Object
  extended by org.eclipse.net4j.util.ui.StructuredContentProvider<IWorkspaceRoot>
      extended by org.eclipse.emf.cdo.ui.ide.RepositoryContentProvider
All Implemented Interfaces:
EventListener, IContentProvider, IStructuredContentProvider, ITreeContentProvider, IListener

public class RepositoryContentProvider
extends StructuredContentProvider<IWorkspaceRoot>
implements ITreeContentProvider

ITreeContentProvider implementation for the CDO Team integration. Capable of providing containment information for an project synchronized with a repository. Understands containment information of the node abstraction.


Constructor Summary
RepositoryContentProvider()
           
 
Method Summary
static ComposedAdapterFactory createAdapterFactory()
           
 void dispose()
           
 Object[] getChildren(Object parentElement)
           
 Object[] getElements(Object parentElement)
           
 Object getParent(Object element)
           
 boolean hasChildren(Object parentElement)
           
 boolean isPackagesNodeHidden()
           
 boolean isResourcesNodeHidden()
           
 boolean isSessionsNodeHidden()
           
 void setPackagesNodeHidden(boolean packageNodesHidden)
           
 void setResourcesNodeHidden(boolean resourceNodesHidden)
           
 void setSessionsNodeHidden(boolean sessionNodesHidden)
           
 
Methods inherited from class org.eclipse.net4j.util.ui.StructuredContentProvider
connectInput, disconnectInput, getDisplay, getInput, getItalicFont, getViewer, inputChanged, notifyEvent, refreshElement, refreshSynced, refreshViewer, revealElement, selectElement, updateLabels
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.viewers.IContentProvider
inputChanged
 

Constructor Detail

RepositoryContentProvider

public RepositoryContentProvider()
Method Detail

dispose

public void dispose()
Specified by:
dispose in interface IContentProvider
Overrides:
dispose in class StructuredContentProvider<IWorkspaceRoot>

isSessionsNodeHidden

public boolean isSessionsNodeHidden()

setSessionsNodeHidden

public void setSessionsNodeHidden(boolean sessionNodesHidden)

isPackagesNodeHidden

public boolean isPackagesNodeHidden()

setPackagesNodeHidden

public void setPackagesNodeHidden(boolean packageNodesHidden)

isResourcesNodeHidden

public boolean isResourcesNodeHidden()

setResourcesNodeHidden

public void setResourcesNodeHidden(boolean resourceNodesHidden)

getChildren

public Object[] getChildren(Object parentElement)
Specified by:
getChildren in interface ITreeContentProvider

getElements

public Object[] getElements(Object parentElement)
Specified by:
getElements in interface IStructuredContentProvider
Specified by:
getElements in interface ITreeContentProvider

getParent

public Object getParent(Object element)
Specified by:
getParent in interface ITreeContentProvider

createAdapterFactory

public static ComposedAdapterFactory createAdapterFactory()

hasChildren

public boolean hasChildren(Object parentElement)
Specified by:
hasChildren in interface ITreeContentProvider


Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.