Example usage for org.eclipse.jgit.awtui UIText get

List of usage examples for org.eclipse.jgit.awtui UIText get

Introduction

In this page you can find the example usage for org.eclipse.jgit.awtui UIText get.

Prototype

public static UIText get() 

Source Link

Document

Get an instance of this translation bundle.

Usage

From source file:kr.re.ec.grigit.graph.ui.GriGitGraphPane.java

License:Eclipse Distribution License

@Override
public void setModel(final TableModel dataModel) {
    if (dataModel != null && !(dataModel instanceof CommitTableModel))
        throw new ClassCastException(UIText.get().mustBeSpecialTableModel);
    super.setModel(dataModel);
}

From source file:kr.re.ec.grigit.graph.ui.GriGitGraphPane.java

License:Eclipse Distribution License

private void configureHeader() {
    final JTableHeader th = getTableHeader();
    final TableColumnModel cols = th.getColumnModel();

    final TableColumn graph = cols.getColumn(0);
    final TableColumn author = cols.getColumn(1);
    final TableColumn date = cols.getColumn(2);

    graph.setHeaderValue(""); //$NON-NLS-1$
    author.setHeaderValue(UIText.get().author);
    date.setHeaderValue(UIText.get().date);

    graph.setCellRenderer(new GraphCellRender());
    author.setCellRenderer(new NameCellRender());
    date.setCellRenderer(new DateCellRender());
}