Search in sources :

Example 1 with PushTargetPanel

use of com.intellij.dvcs.push.PushTargetPanel in project intellij-community by JetBrains.

the class SingleRepositoryNode method render.

@Override
public void render(@NotNull ColoredTreeCellRenderer renderer) {
    renderer.append(" ");
    renderer.append(myRepositoryPanel.getSourceName(), SimpleTextAttributes.REGULAR_ATTRIBUTES);
    renderer.append(myRepositoryPanel.getArrow(), SimpleTextAttributes.REGULAR_ATTRIBUTES);
    PushTargetPanel pushTargetPanel = myRepositoryPanel.getTargetPanel();
    pushTargetPanel.render(renderer, renderer.getTree().isPathSelected(TreeUtil.getPathFromRoot(this)), true, null);
}
Also used : PushTargetPanel(com.intellij.dvcs.push.PushTargetPanel)

Example 2 with PushTargetPanel

use of com.intellij.dvcs.push.PushTargetPanel in project intellij-community by JetBrains.

the class RepositoryNode method render.

public void render(@NotNull ColoredTreeCellRenderer renderer, @Nullable String syncEditingText) {
    int repoFixedWidth = 120;
    SimpleTextAttributes repositoryDetailsTextAttributes = PushLogTreeUtil.addTransparencyIfNeeded(SimpleTextAttributes.REGULAR_ATTRIBUTES, isChecked());
    renderer.append(getRepoName(renderer, repoFixedWidth), repositoryDetailsTextAttributes);
    renderer.appendTextPadding(repoFixedWidth);
    renderer.append(myRepositoryPanel.getSourceName(), repositoryDetailsTextAttributes);
    renderer.append(myRepositoryPanel.getArrow(), repositoryDetailsTextAttributes);
    PushTargetPanel pushTargetPanel = myRepositoryPanel.getTargetPanel();
    pushTargetPanel.render(renderer, renderer.getTree().isPathSelected(TreeUtil.getPathFromRoot(this)), isChecked(), syncEditingText);
}
Also used : SimpleTextAttributes(com.intellij.ui.SimpleTextAttributes) PushTargetPanel(com.intellij.dvcs.push.PushTargetPanel)

Aggregations

PushTargetPanel (com.intellij.dvcs.push.PushTargetPanel)2 SimpleTextAttributes (com.intellij.ui.SimpleTextAttributes)1