org.eclipse.ui.views.navigator.ResourceSorter Java Examples

The following examples show how to use org.eclipse.ui.views.navigator.ResourceSorter. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SVNWizardPage.java    From APICloud-Studio with GNU General Public License v3.0 6 votes vote down vote up
protected TreeViewer createResourceSelectionTree(Composite composite, int types, int span) {
	TreeViewer tree = new TreeViewer(composite, SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);
	tree.setUseHashlookup(true);
	tree.setContentProvider(getResourceProvider(types));
	tree.setLabelProvider(
		new DecoratingLabelProvider(
			new WorkbenchLabelProvider(), 
			SVNUIPlugin.getPlugin().getWorkbench().getDecoratorManager().getLabelDecorator()));
	tree.setSorter(new ResourceSorter(ResourceSorter.NAME));
	
	GridData data = new GridData(GridData.FILL_BOTH | GridData.GRAB_VERTICAL);
	data.heightHint = LIST_HEIGHT_HINT;
	data.horizontalSpan = span;
	tree.getControl().setLayoutData(data);
	return tree;
}
 
Example #2
Source File: ResourceExtensionSorter.java    From translationstudio8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Construct a sorter that uses the name of the resource as its sorting
 * criteria.
 * 
 */
public ResourceExtensionSorter() {
	super(ResourceSorter.NAME);
}
 
Example #3
Source File: ResourceExtensionSorter.java    From tmxeditor8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Construct a sorter that uses the name of the resource as its sorting
 * criteria.
 * 
 */
public ResourceExtensionSorter() {
	super(ResourceSorter.NAME);
}