类org.eclipse.ui.views.navigator.ResourceSorter源码实例Demo

下面列出了怎么用org.eclipse.ui.views.navigator.ResourceSorter的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: APICloud-Studio   文件: SVNWizardPage.java
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;
}
 
/**
 * Construct a sorter that uses the name of the resource as its sorting
 * criteria.
 * 
 */
public ResourceExtensionSorter() {
	super(ResourceSorter.NAME);
}
 
源代码3 项目: tmxeditor8   文件: ResourceExtensionSorter.java
/**
 * Construct a sorter that uses the name of the resource as its sorting
 * criteria.
 * 
 */
public ResourceExtensionSorter() {
	super(ResourceSorter.NAME);
}
 
 类所在包
 类方法
 同包方法