Search in sources :

Example 1 with HistoryPanel

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));
}
Also used : HistoryPanel(com.oxygenxml.git.view.history.HistoryPanel)

Example 2 with HistoryPanel

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();
        }
    };
}
Also used : HistoryPanel(com.oxygenxml.git.view.history.HistoryPanel)

Example 3 with HistoryPanel

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++;
        }
    };
}
Also used : HistoryPanel(com.oxygenxml.git.view.history.HistoryPanel)

Aggregations

HistoryPanel (com.oxygenxml.git.view.history.HistoryPanel)3