Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CHE-4594: Make che-plugin-product-info optional for IDE #4682

Merged
merged 2 commits into from
Apr 4, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/*******************************************************************************
* Copyright (c) 2012-2017 Codenvy, S.A.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Codenvy, S.A. - initial API and implementation
*******************************************************************************/
package org.eclipse.che.ide.api;

import org.vectomatic.dom.svg.ui.SVGResource;

/**
* @author Vitalii Parfonov
*/

public class ProductInfoDataProviderImpl implements ProductInfoDataProvider {
@Override
public String getName() {
return "Che";
}

@Override
public String getSupportLink() {
return "";
}

@Override
public String getDocumentTitle() {
return "";
}

@Override
public String getDocumentTitle(String workspaceName) {
return workspaceName;
}

@Override
public SVGResource getLogo() {
return null;
}

@Override
public String getSupportTitle() {
return "";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,21 @@
import com.google.web.bindery.event.shared.SimpleEventBus;

import org.eclipse.che.ide.actions.ActionApiModule;
import org.eclipse.che.ide.api.ProductInfoDataProvider;
import org.eclipse.che.ide.api.ProductInfoDataProviderImpl;
import org.eclipse.che.ide.api.app.AppContext;
import org.eclipse.che.ide.api.component.Component;
import org.eclipse.che.ide.api.extension.ExtensionGinModule;
import org.eclipse.che.ide.api.extension.ExtensionRegistry;
import org.eclipse.che.ide.api.git.GitServiceClient;
import org.eclipse.che.ide.api.git.GitServiceClientImpl;
import org.eclipse.che.ide.api.keybinding.KeyBindingAgent;
import org.eclipse.che.ide.api.machine.CheWsAgentLinksModifier;
import org.eclipse.che.ide.api.machine.ExecAgentCommandManager;
import org.eclipse.che.ide.api.machine.ExecAgentEventManager;
import org.eclipse.che.ide.api.machine.RecipeServiceClient;
import org.eclipse.che.ide.api.machine.RecipeServiceClientImpl;
import org.eclipse.che.ide.api.machine.WsAgentURLModifier;
import org.eclipse.che.ide.api.machine.execagent.ConnectedEventHandler;
import org.eclipse.che.ide.api.machine.execagent.JsonRpcExecAgentCommandManager;
import org.eclipse.che.ide.api.machine.execagent.JsonRpcExecAgentEventManager;
Expand Down Expand Up @@ -151,6 +155,8 @@ protected void configure() {
bind(ExecAgentEventManager.class).to(JsonRpcExecAgentEventManager.class);
bind(ConnectedEventHandler.class).asEagerSingleton();
bind(AskCredentialsDialog.class).to(AskCredentialsDialogImpl.class);
bind(ProductInfoDataProvider.class).to(ProductInfoDataProviderImpl.class);
bind(WsAgentURLModifier.class).to(CheWsAgentLinksModifier.class);
}

@Provides
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import com.google.inject.Singleton;

import org.eclipse.che.ide.api.ProductInfoDataProvider;
import org.eclipse.che.ide.api.ProductInfoDataProviderImpl;
import org.eclipse.che.ide.ui.Resources;
import org.vectomatic.dom.svg.ui.SVGResource;

Expand All @@ -24,7 +25,7 @@
* @author Alexander Andrienko
*/
@Singleton
public class CheProductInfoDataProvider implements ProductInfoDataProvider {
public class CheProductInfoDataProvider extends ProductInfoDataProviderImpl {

private final LocalizationConstant locale;
private final Resources resources;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@

import com.google.gwt.inject.client.AbstractGinModule;

import org.eclipse.che.ide.api.ProductInfoDataProvider;
import org.eclipse.che.ide.api.ProductInfoDataProviderImpl;
import org.eclipse.che.ide.api.extension.ExtensionGinModule;
import org.eclipse.che.ide.api.machine.CheWsAgentLinksModifier;
import org.eclipse.che.ide.api.machine.WsAgentURLModifier;
import org.eclipse.che.plugin.product.info.client.CheProductInfoDataProvider;

/**
Expand All @@ -26,7 +24,6 @@ public class ProductInfoGinModule extends AbstractGinModule {
/** {@inheritDoc} */
@Override
protected void configure() {
bind(ProductInfoDataProvider.class).to(CheProductInfoDataProvider.class);
bind(WsAgentURLModifier.class).to(CheWsAgentLinksModifier.class);
bind(ProductInfoDataProviderImpl.class).to(CheProductInfoDataProvider.class);
}
}