use of org.eclipse.egit.ui.internal.decorators.ProblemLabelDecorator in project egit by eclipse.
the class StagingView method createLabelProvider.
private IBaseLabelProvider createLabelProvider(TreeViewer treeViewer) {
StagingViewLabelProvider baseProvider = new StagingViewLabelProvider(this);
baseProvider.setFileNameMode(getPreferenceStore().getBoolean(UIPreferences.STAGING_VIEW_FILENAME_MODE));
ProblemLabelDecorator decorator = new ProblemLabelDecorator(treeViewer);
return new TreeDecoratingLabelProvider(baseProvider, decorator);
}
use of org.eclipse.egit.ui.internal.decorators.ProblemLabelDecorator in project egit by eclipse.
the class CommitViewerComparator method createStatusLabelProvider.
private static CellLabelProvider createStatusLabelProvider() {
CommitStatusLabelProvider baseProvider = new CommitStatusLabelProvider();
ProblemLabelDecorator decorator = new ProblemLabelDecorator(null);
return new DecoratingStyledCellLabelProvider(baseProvider, decorator, null) {
@Override
public String getToolTipText(Object element) {
return ((CommitItem) element).status.getText();
}
};
}
Aggregations