PushAction pushAction = new PushAction(
UIText.GitActionContributor_Push, configuration);
pushAction.setImageDescriptor(PUSH);
appendToGroup(P_TOOLBAR_MENU, SYNCHRONIZE_GROUP, pushAction);
ISynchronizePageSite site = configuration.getSite();
IWorkbenchSite ws = site.getWorkbenchSite();
openWorkingFileAction = new OpenWorkingFileAction(ws.getWorkbenchWindow()
.getActivePage());
site.getSelectionProvider().addSelectionChangedListener(
openWorkingFileAction);
if (ws instanceof IViewSite) {
Object oldAction = configuration.getProperty(P_OPEN_ACTION);
if (!(oldAction instanceof Action))