de.cau.cs.kieler.kiml.grana.ui
Class AnalysisContentProvider

java.lang.Object
  extended by de.cau.cs.kieler.kiml.grana.ui.AnalysisContentProvider
All Implemented Interfaces:
IContentProvider, IStructuredContentProvider, ITreeContentProvider

public class AnalysisContentProvider
extends Object
implements ITreeContentProvider

The content provider for the analysis selection dialog.

Rating red

Constructor Summary
AnalysisContentProvider(Collection<AnalysisCategory> analysisCategories)
          Constructs the content provider.
 
Method Summary
 void dispose()
          
 Object[] getChildren(Object element)
          
 Object[] getElements(Object element)
          
 Object getParent(Object element)
          
 Map<AbstractInfoAnalysis,AnalysisCategory> getParentMap()
          Returns the map that maps the analyses on their parents.
 boolean hasChildren(Object element)
          
 void inputChanged(Viewer viewer, Object oldInput, Object newInput)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnalysisContentProvider

public AnalysisContentProvider(Collection<AnalysisCategory> analysisCategories)
Constructs the content provider.

Parameters:
analysisCategories - the analysis categories
Method Detail

getParentMap

public Map<AbstractInfoAnalysis,AnalysisCategory> getParentMap()
Returns the map that maps the analyses on their parents.

Returns:
the map

getChildren

public Object[] getChildren(Object element)

Specified by:
getChildren in interface ITreeContentProvider

getParent

public Object getParent(Object element)

Specified by:
getParent in interface ITreeContentProvider

hasChildren

public boolean hasChildren(Object element)

Specified by:
hasChildren in interface ITreeContentProvider

getElements

public Object[] getElements(Object element)

Specified by:
getElements in interface IStructuredContentProvider
Specified by:
getElements in interface ITreeContentProvider

dispose

public void dispose()

Specified by:
dispose in interface IContentProvider

inputChanged

public void inputChanged(Viewer viewer,
                         Object oldInput,
                         Object newInput)

Specified by:
inputChanged in interface IContentProvider