use of org.rstudio.studio.client.workbench.views.vcs.common.events.VcsRefreshHandler in project rstudio by rstudio.
the class Workbench method onWorkbenchLoaded.
public void onWorkbenchLoaded(WorkbenchLoadedEvent event) {
server_.initializeForMainWorkbench();
FileSystemItem defaultDialogDir = session_.getSessionInfo().getActiveProjectDir();
if (defaultDialogDir != null)
workbenchContext_.setDefaultFileDialogDir(defaultDialogDir);
// check for init messages
checkForInitMessages();
if (Desktop.isDesktop() && session_.getSessionInfo().getVcsName().equals(VCSConstants.GIT_ID)) {
pGitState_.get().addVcsRefreshHandler(new VcsRefreshHandler() {
@Override
public void onVcsRefresh(VcsRefreshEvent event) {
String title = workbenchContext_.createWindowTitle();
if (title != null)
Desktop.getFrame().setWindowTitle(title);
}
});
}
}
Aggregations