本文整理汇总了Java中org.eclipse.jface.viewers.ViewerColumn类的典型用法代码示例。如果您正苦于以下问题:Java ViewerColumn类的具体用法?Java ViewerColumn怎么用?Java ViewerColumn使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ViewerColumn类属于org.eclipse.jface.viewers包,在下文中一共展示了ViewerColumn类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initialize
import org.eclipse.jface.viewers.ViewerColumn; //导入依赖的package包/类
public void initialize(ColumnViewer viewer, ViewerColumn column) {
PlatformUI.getPreferenceStore().addPropertyChangeListener(this);
JFaceResources.getColorRegistry().addListener(this);
setOwnerDrawEnabled(showColoredLabels());
super.initialize(viewer, column);
}
示例2: initialize
import org.eclipse.jface.viewers.ViewerColumn; //导入依赖的package包/类
@Override
protected void initialize(ColumnViewer viewer, ViewerColumn column) {
super.initialize(viewer, column);
if (decorator != null) {
ColumnViewerToolTipSupport.enableFor(viewer);
}
}
示例3: buildViewer
import org.eclipse.jface.viewers.ViewerColumn; //导入依赖的package包/类
/** Builds a viewer. */
private <ViewerType extends StructuredViewer, ColumnType extends Item> ViewerType buildViewer(ViewerType viewer, List<ColumnType> columns, BiFunction<ViewerType, ColumnType, ViewerColumn> columnViewerCreator) {
viewer.setUseHashlookup(useHashLookup);
for (int i = 0; i < columnBuilders.size(); ++i) {
ViewerColumn viewerColumn = columnViewerCreator.apply(viewer, columns.get(i));
ColumnBuilder<T> builder = columnBuilders.get(i);
if (builder.provider != null) {
viewerColumn.setLabelProvider(builder.provider);
}
builder.finalSetup.accept(viewerColumn);
}
return viewer;
}
示例4: initialize
import org.eclipse.jface.viewers.ViewerColumn; //导入依赖的package包/类
@Override
public void initialize(ColumnViewer viewer, ViewerColumn column) {
ColoredViewersManager.install(this);
setOwnerDrawEnabled(ColoredViewersManager.showColoredLabels());
super.initialize(viewer, column);
}
示例5: initialize
import org.eclipse.jface.viewers.ViewerColumn; //导入依赖的package包/类
@Override
public void initialize(ColumnViewer viewer, ViewerColumn column) {
PlatformUI.getPreferenceStore().addPropertyChangeListener(this);
JFaceResources.getColorRegistry().addListener(this);
setOwnerDrawEnabled(showColoredLabels());
super.initialize(viewer, column);
}
示例6: initialize
import org.eclipse.jface.viewers.ViewerColumn; //导入依赖的package包/类
@Override
protected void initialize(ColumnViewer viewer, ViewerColumn column) {
super.initialize(viewer, column);
tableViewer = (TableViewer) viewer;
}
示例7: setFinalSetup
import org.eclipse.jface.viewers.ViewerColumn; //导入依赖的package包/类
/** Calls the given consumer after the ColumnViewer has been constructed. */
public ColumnBuilder<T> setFinalSetup(Consumer<? super ViewerColumn> finalSetup) {
this.finalSetup = finalSetup;
return this;
}
示例8: initialize
import org.eclipse.jface.viewers.ViewerColumn; //导入依赖的package包/类
@Override
public void initialize(ColumnViewer viewer, ViewerColumn column) {
super.initialize(viewer, column, true);
}