Search in sources :

Example 1 with ProblemLabelDecorator

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);
}
Also used : ProblemLabelDecorator(org.eclipse.egit.ui.internal.decorators.ProblemLabelDecorator)

Example 2 with ProblemLabelDecorator

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();
        }
    };
}
Also used : DecoratingStyledCellLabelProvider(org.eclipse.jface.viewers.DecoratingStyledCellLabelProvider) ProblemLabelDecorator(org.eclipse.egit.ui.internal.decorators.ProblemLabelDecorator)

Aggregations

ProblemLabelDecorator (org.eclipse.egit.ui.internal.decorators.ProblemLabelDecorator)2 DecoratingStyledCellLabelProvider (org.eclipse.jface.viewers.DecoratingStyledCellLabelProvider)1