Example usage for org.eclipse.jface.viewers ViewerSorter isSorterProperty

List of usage examples for org.eclipse.jface.viewers ViewerSorter isSorterProperty

Introduction

In this page you can find the example usage for org.eclipse.jface.viewers ViewerSorter isSorterProperty.

Prototype

public boolean isSorterProperty(Object element, String property) 

Source Link

Document

Returns whether this viewer sorter would be affected by a change to the given property of the given element.

Usage

From source file:net.refractions.udig.issues.internal.view.IssuesSorter.java

License:Open Source License

public boolean isSorterProperty(ViewerSorter defaultSorter, Object element, String property) {
    return defaultSorter.isSorterProperty(element, property);
}

From source file:org.dslforge.workspace.ui.BasicWorkspaceSorter.java

License:Open Source License

public boolean isSorterProperty(TreePath parentPath, Object element, String property) {
    INavigatorContentDescriptor contentDesc = getSource(element);
    if (parentPath.getSegmentCount() == 0)
        return false;
    ViewerSorter sorter = sorterService.findSorter(contentDesc, parentPath.getLastSegment(), element, null);
    if (sorter != null)
        return sorter.isSorterProperty(element, property);
    return false;
}