Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.instancevalidation.report
Class InstanceValidationReportDetailsContentProvider

java.lang.Object
  extended by eu.esdihumboldt.hale.ui.instancevalidation.report.InstanceValidationReportDetailsContentProvider
All Implemented Interfaces:
org.eclipse.jface.viewers.IContentProvider, org.eclipse.jface.viewers.IStructuredContentProvider, org.eclipse.jface.viewers.ITreePathContentProvider

public class InstanceValidationReportDetailsContentProvider
extends Object
implements org.eclipse.jface.viewers.ITreePathContentProvider

Content provider for the instance validation report details page.

Author:
Kai Schwierczek

Field Summary
static int LIMIT
          Maximum number of messages shown for one path/category.
 
Constructor Summary
InstanceValidationReportDetailsContentProvider()
           
 
Method Summary
 void dispose()
           
 Object[] getChildren(org.eclipse.jface.viewers.TreePath parentPath)
           
 Object[] getElements(Object inputElement)
           
 int getMessageCount(org.eclipse.jface.viewers.TreePath path)
          Returns the number of messages that are children of the given path.
 Collection<InstanceValidationMessage> getMessages(org.eclipse.jface.viewers.TreePath path)
          Returns all messages that are children of the given path.
 org.eclipse.jface.viewers.TreePath[] getParents(Object element)
           
 boolean hasChildren(org.eclipse.jface.viewers.TreePath path)
           
 void inputChanged(org.eclipse.jface.viewers.Viewer viewer, Object oldInput, Object newInput)
           
 boolean isLimited(org.eclipse.jface.viewers.TreePath path)
          Returns whether the given path has more instances available than those which are shown.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LIMIT

public static final int LIMIT
Maximum number of messages shown for one path/category.

See Also:
Constant Field Values
Constructor Detail

InstanceValidationReportDetailsContentProvider

public InstanceValidationReportDetailsContentProvider()
Method Detail

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.jface.viewers.IContentProvider
See Also:
IContentProvider.dispose()

inputChanged

public void inputChanged(org.eclipse.jface.viewers.Viewer viewer,
                         Object oldInput,
                         Object newInput)
Specified by:
inputChanged in interface org.eclipse.jface.viewers.IContentProvider
See Also:
IContentProvider.inputChanged(Viewer, Object, Object)

getElements

public Object[] getElements(Object inputElement)
Specified by:
getElements in interface org.eclipse.jface.viewers.IStructuredContentProvider
Specified by:
getElements in interface org.eclipse.jface.viewers.ITreePathContentProvider
See Also:
ITreePathContentProvider.getElements(Object)

getChildren

public Object[] getChildren(org.eclipse.jface.viewers.TreePath parentPath)
Specified by:
getChildren in interface org.eclipse.jface.viewers.ITreePathContentProvider
See Also:
ITreePathContentProvider.getChildren(TreePath)

getMessageCount

public int getMessageCount(org.eclipse.jface.viewers.TreePath path)
Returns the number of messages that are children of the given path.

Parameters:
path - the path
Returns:
the number of messages that are children of the given path

isLimited

public boolean isLimited(org.eclipse.jface.viewers.TreePath path)
Returns whether the given path has more instances available than those which are shown.

Parameters:
path - the path
Returns:
whether the given path has more instances available than those which are shown
See Also:
LIMIT

getMessages

public Collection<InstanceValidationMessage> getMessages(org.eclipse.jface.viewers.TreePath path)
Returns all messages that are children of the given path.

Parameters:
path - the path
Returns:
all messages that are children of the given path

hasChildren

public boolean hasChildren(org.eclipse.jface.viewers.TreePath path)
Specified by:
hasChildren in interface org.eclipse.jface.viewers.ITreePathContentProvider
See Also:
ITreePathContentProvider.hasChildren(TreePath)

getParents

public org.eclipse.jface.viewers.TreePath[] getParents(Object element)
Specified by:
getParents in interface org.eclipse.jface.viewers.ITreePathContentProvider
See Also:
ITreePathContentProvider.getParents(Object)

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d