diff --git a/plugins/plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/GitLocalizationConstant.java b/plugins/plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/GitLocalizationConstant.java index 28730cbae3..1ae0b718d8 100644 --- a/plugins/plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/GitLocalizationConstant.java +++ b/plugins/plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/GitLocalizationConstant.java @@ -661,4 +661,7 @@ public interface GitLocalizationConstant extends Messages { @Key("merge.failed") String mergeFailed(); + + @Key("console.project.name") + String consoleProjectName(String projectName); } \ No newline at end of file diff --git a/plugins/plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/outputconsole/GitOutputConsolePresenter.java b/plugins/plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/outputconsole/GitOutputConsolePresenter.java index 19390f82d1..15755f146b 100644 --- a/plugins/plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/outputconsole/GitOutputConsolePresenter.java +++ b/plugins/plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/outputconsole/GitOutputConsolePresenter.java @@ -13,8 +13,9 @@ package org.eclipse.che.ide.ext.git.client.outputconsole; import com.google.gwt.user.client.ui.AcceptsOneWidget; import com.google.inject.Inject; import com.google.inject.assistedinject.Assisted; -import com.google.web.bindery.event.shared.EventBus; +import org.eclipse.che.ide.api.app.AppContext; +import org.eclipse.che.ide.ext.git.client.GitLocalizationConstant; import org.eclipse.che.ide.ext.git.client.GitResources; import org.vectomatic.dom.svg.ui.SVGResource; @@ -25,22 +26,26 @@ import org.vectomatic.dom.svg.ui.SVGResource; */ public class GitOutputConsolePresenter implements GitOutputPartView.ActionDelegate, GitOutputConsole { - private String title; - private final GitOutputPartView view; private final GitResources resources; + private final String title; /** Construct empty Part */ @Inject public GitOutputConsolePresenter(GitOutputPartView view, GitResources resources, - final EventBus eventBus, + AppContext appContext, + GitLocalizationConstant locale, @Assisted String title) { this.view = view; - this.title = title; - this.resources = resources; this.view.setDelegate(this); + this.title = title; + this.resources = resources; + + String projectName = appContext.getCurrentProject().getRootProject().getName(); + + view.print(locale.consoleProjectName(projectName) + "\n"); } /** {@inheritDoc} */ diff --git a/plugins/plugin-git/che-plugin-git-ext-git/src/main/resources/org/eclipse/che/ide/ext/git/client/GitLocalizationConstant.properties b/plugins/plugin-git/che-plugin-git-ext-git/src/main/resources/org/eclipse/che/ide/ext/git/client/GitLocalizationConstant.properties index 6de7d24ce4..395c3bd2a8 100644 --- a/plugins/plugin-git/che-plugin-git-ext-git/src/main/resources/org/eclipse/che/ide/ext/git/client/GitLocalizationConstant.properties +++ b/plugins/plugin-git/che-plugin-git-ext-git/src/main/resources/org/eclipse/che/ide/ext/git/client/GitLocalizationConstant.properties @@ -148,8 +148,6 @@ view.create.title=Initialize local repository view.compare.with.latest.title=Compare with latest repository version view.compare.with.branch.title=Compare with branch view.compare.with.revision.title=Compare with revision -view.compare.branch.list.title=Select branch to compare -view.compare.revision.list.title=Select revision to compare view.compare.revision.table.id.title=Id view.compare.revision.table.time.title=Time view.compare.revision.table.author.title=Author @@ -255,6 +253,7 @@ committer.title = Committer ################ Git console ################ console.tooltip.scroll=Click this button to navigate to the bottom of the console. console.tooltip.clear=Click this button to remove all text from the console. +console.project.name=Project name: {0} commited=Commited failed.to.delete.repository=Failed to delete repository