use of com.oxygenxml.git.view.history.HistoryPanel in project oxygen-git-client-addon by oxygenxml.
the class OxygenGitPluginExtension method customizeHistoryView.
/**
* Customize the history view.
*
* @param viewInfo View information.
*/
private void customizeHistoryView(ViewInfo viewInfo) {
if (historyView == null) {
historyView = new HistoryPanel(gitController);
gitRefreshSupport.setHistoryPanel(historyView);
}
viewInfo.setComponent(historyView);
viewInfo.setIcon(Icons.getIcon(Icons.GIT_HISTORY));
viewInfo.setTitle(translator.getTranslation(Tags.GIT_HISTORY));
}
use of com.oxygenxml.git.view.history.HistoryPanel in project oxygen-git-client-addon by oxygenxml.
the class HistoryPanel3Test method setUpHistoryPanel.
@Override
protected void setUpHistoryPanel() {
noOfRefreshes = 0;
// Initialize history panel.
historyPanel = new HistoryPanel(PUSH_PULL_CONTROLLER) {
@Override
protected int getUpdateDelay() {
return 0;
}
@Override
public boolean isShowing() {
// Branch related refresh is done only if the view is displayed.
return true;
}
@Override
public void scheduleRefreshHistory() {
noOfRefreshes++;
super.scheduleRefreshHistory();
}
};
}
use of com.oxygenxml.git.view.history.HistoryPanel in project oxygen-git-client-addon by oxygenxml.
the class HistoryPanel4RevertTest method setUpHistoryPanel.
@Override
protected void setUpHistoryPanel() {
noOfRefreshes = 0;
// Initialize history panel.
historyPanel = new HistoryPanel(PUSH_PULL_CONTROLLER) {
@Override
protected int getUpdateDelay() {
return 0;
}
@Override
public boolean isShowing() {
// Branch related refresh is done only if the view is displayed.
return true;
}
@Override
public void scheduleRefreshHistory() {
super.scheduleRefreshHistory();
noOfRefreshes++;
}
};
}
Aggregations