List of usage examples for org.eclipse.jface.viewers IDecorationContext IDecorationContext
IDecorationContext
From source file:org.eclipse.ui.tests.performance.LabelProviderTest.java
License:Open Source License
private DecoratingStyledCellLabelProvider getDecoratingStyledCellLabelProvider(boolean useColor) { // create our own context to avoid using default context IDecorationContext context = new IDecorationContext() { public String[] getProperties() { return null; }/*from w w w. j av a 2 s.co m*/ public Object getProperty(String property) { return null; } }; return new DecoratingStyledCellLabelProvider(new TestCellLabelProvider(useColor), useColor ? getDecorator() : null, context); }