当前位置: 首页>>代码示例>>Java>>正文


Java AppContext.getMasterApiEndpoint方法代码示例

本文整理汇总了Java中org.eclipse.che.ide.api.app.AppContext.getMasterApiEndpoint方法的典型用法代码示例。如果您正苦于以下问题:Java AppContext.getMasterApiEndpoint方法的具体用法?Java AppContext.getMasterApiEndpoint怎么用?Java AppContext.getMasterApiEndpoint使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.che.ide.api.app.AppContext的用法示例。


在下文中一共展示了AppContext.getMasterApiEndpoint方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: FactoryProjectImporter

import org.eclipse.che.ide.api.app.AppContext; //导入方法依赖的package包/类
@Inject
public FactoryProjectImporter(
    AppContext appContext,
    NotificationManager notificationManager,
    AskCredentialsDialog askCredentialsDialog,
    CoreLocalizationConstant locale,
    ImportProjectNotificationSubscriberFactory subscriberFactory,
    DialogFactory dialogFactory,
    OAuth2AuthenticatorRegistry oAuth2AuthenticatorRegistry,
    RequestTransmitter requestTransmitter,
    ProjectImportOutputJsonRpcNotifier subscriber) {
  super(appContext, subscriberFactory);
  this.notificationManager = notificationManager;
  this.askCredentialsDialog = askCredentialsDialog;
  this.locale = locale;
  this.restContext = appContext.getMasterApiEndpoint();
  this.dialogFactory = dialogFactory;
  this.oAuth2AuthenticatorRegistry = oAuth2AuthenticatorRegistry;
  this.requestTransmitter = requestTransmitter;
  this.subscriber = subscriber;
}
 
开发者ID:eclipse,项目名称:che,代码行数:22,代码来源:FactoryProjectImporter.java

示例2: GitHubHostingService

import org.eclipse.che.ide.api.app.AppContext; //导入方法依赖的package包/类
@Inject
public GitHubHostingService(
    @NotNull final AppContext appContext,
    @NotNull final DtoFactory dtoFactory,
    @NotNull final GitHubServiceClient gitHubClientService,
    @NotNull final GitHubTemplates templates,
    SecurityTokenProvider securityTokenProvider,
    OAuthServiceClient oAuthServiceClient) {
  this.appContext = appContext;
  this.dtoFactory = dtoFactory;
  this.gitHubClientService = gitHubClientService;
  this.templates = templates;
  this.baseUrl = appContext.getMasterApiEndpoint();
  this.securityTokenProvider = securityTokenProvider;
  this.oAuthServiceClient = oAuthServiceClient;
}
 
开发者ID:eclipse,项目名称:che,代码行数:17,代码来源:GitHubHostingService.java

示例3: GitHubSshKeyUploader

import org.eclipse.che.ide.api.app.AppContext; //导入方法依赖的package包/类
@Inject
public GitHubSshKeyUploader(
    GitHubServiceClient gitHubService,
    GitHubLocalizationConstant constant,
    NotificationManager notificationManager,
    ProductInfoDataProvider productInfoDataProvider,
    DialogFactory dialogFactory,
    AppContext appContext,
    SecurityTokenProvider securityTokenProvider,
    OAuthServiceClient oAuthServiceClient) {
  this.gitHubService = gitHubService;
  this.baseUrl = appContext.getMasterApiEndpoint();
  this.constant = constant;
  this.notificationManager = notificationManager;
  this.productInfoDataProvider = productInfoDataProvider;
  this.dialogFactory = dialogFactory;
  this.appContext = appContext;
  this.securityTokenProvider = securityTokenProvider;
  this.oAuthServiceClient = oAuthServiceClient;
}
 
开发者ID:eclipse,项目名称:che,代码行数:21,代码来源:GitHubSshKeyUploader.java

示例4: GitHubAuthenticatorImpl

import org.eclipse.che.ide.api.app.AppContext; //导入方法依赖的package包/类
@Inject
public GitHubAuthenticatorImpl(
    SshKeyUploaderRegistry registry,
    SshServiceClient sshServiceClient,
    GitHubAuthenticatorView view,
    DialogFactory dialogFactory,
    GitHubLocalizationConstant locale,
    NotificationManager notificationManager,
    AppContext appContext,
    SecurityTokenProvider securityTokenProvider) {
  this.registry = registry;
  this.sshServiceClient = sshServiceClient;
  this.view = view;
  this.securityTokenProvider = securityTokenProvider;
  this.view.setDelegate(this);
  this.locale = locale;
  this.baseUrl = appContext.getMasterApiEndpoint();
  this.dialogFactory = dialogFactory;
  this.notificationManager = notificationManager;
  this.appContext = appContext;
}
 
开发者ID:eclipse,项目名称:che,代码行数:22,代码来源:GitHubAuthenticatorImpl.java

示例5: GithubImporterPagePresenter

import org.eclipse.che.ide.api.app.AppContext; //导入方法依赖的package包/类
@Inject
public GithubImporterPagePresenter(
    GithubImporterPageView view,
    OAuth2AuthenticatorRegistry gitHubAuthenticatorRegistry,
    GitHubServiceClient gitHubClientService,
    DtoFactory dtoFactory,
    AppContext appContext,
    GitHubLocalizationConstant locale,
    OAuthServiceClient oAuthServiceClient,
    NotificationManager notificationManager) {
  this.view = view;
  this.baseUrl = appContext.getMasterApiEndpoint();
  this.appContext = appContext;
  this.gitHubAuthenticator = gitHubAuthenticatorRegistry.getAuthenticator("github");
  this.gitHubClientService = gitHubClientService;
  this.dtoFactory = dtoFactory;
  this.oAuthServiceClient = oAuthServiceClient;
  this.notificationManager = notificationManager;
  this.view.setDelegate(this);
  this.locale = locale;
}
 
开发者ID:eclipse,项目名称:che,代码行数:22,代码来源:GithubImporterPagePresenter.java

示例6: UploadSshKeyPresenter

import org.eclipse.che.ide.api.app.AppContext; //导入方法依赖的package包/类
@Inject
public UploadSshKeyPresenter(
    UploadSshKeyView view,
    SshKeyLocalizationConstant constant,
    AppContext appContext,
    NotificationManager notificationManager) {
  this.view = view;
  this.view.setDelegate(this);
  this.constant = constant;
  this.restContext = appContext.getMasterApiEndpoint();
  this.notificationManager = notificationManager;
  this.appContext = appContext;
}
 
开发者ID:eclipse,项目名称:che,代码行数:14,代码来源:UploadSshKeyPresenter.java

示例7: OAuthServiceClient

import org.eclipse.che.ide.api.app.AppContext; //导入方法依赖的package包/类
@Inject
public OAuthServiceClient(
    AppContext appContext,
    AsyncRequestFactory asyncRequestFactory,
    DtoUnmarshallerFactory unmarshallerFactory) {
  this.asyncRequestFactory = asyncRequestFactory;
  this.restContext = appContext.getMasterApiEndpoint() + "/oauth";
  this.unmarshallerFactory = unmarshallerFactory;
}
 
开发者ID:eclipse,项目名称:che,代码行数:10,代码来源:OAuthServiceClient.java

示例8: WorkspaceServiceClient

import org.eclipse.che.ide.api.app.AppContext; //导入方法依赖的package包/类
@Inject
private WorkspaceServiceClient(
    AppContext appContext,
    DtoUnmarshallerFactory dtoUnmarshallerFactory,
    DtoFactory dtoFactory,
    AsyncRequestFactory asyncRequestFactory,
    LoaderFactory loaderFactory) {
  this.dtoUnmarshallerFactory = dtoUnmarshallerFactory;
  this.dtoFactory = dtoFactory;
  this.asyncRequestFactory = asyncRequestFactory;
  this.loaderFactory = loaderFactory;
  this.baseHttpUrl = appContext.getMasterApiEndpoint() + "/workspace";
}
 
开发者ID:eclipse,项目名称:che,代码行数:14,代码来源:WorkspaceServiceClient.java

示例9: PreferencesManagerImpl

import org.eclipse.che.ide.api.app.AppContext; //导入方法依赖的package包/类
@Inject
protected PreferencesManagerImpl(AsyncRequestFactory asyncRequestFactory, AppContext appContext) {
  this.asyncRequestFactory = asyncRequestFactory;
  this.persistedPreferences = new HashMap<>();
  this.changedPreferences = new HashMap<>();

  PREFERENCES_SERVICE_ENDPOINT = appContext.getMasterApiEndpoint() + "/preferences";
}
 
开发者ID:eclipse,项目名称:che,代码行数:9,代码来源:PreferencesManagerImpl.java

示例10: SshServiceClientImpl

import org.eclipse.che.ide.api.app.AppContext; //导入方法依赖的package包/类
@Inject
protected SshServiceClientImpl(
    AppContext appContext,
    DtoFactory dtoFactory,
    AsyncRequestFactory asyncRequestFactory,
    DtoUnmarshallerFactory unmarshallerFactory) {
  this.dtoFactory = dtoFactory;
  this.asyncRequestFactory = asyncRequestFactory;
  this.unmarshallerFactory = unmarshallerFactory;
  this.sshApi = appContext.getMasterApiEndpoint() + "/ssh";
}
 
开发者ID:eclipse,项目名称:che,代码行数:12,代码来源:SshServiceClientImpl.java

示例11: UploadSshKeyPresenter

import org.eclipse.che.ide.api.app.AppContext; //导入方法依赖的package包/类
@Inject
public UploadSshKeyPresenter(
    UploadSshKeyView view,
    SshLocalizationConstant constant,
    AppContext appContext,
    NotificationManager notificationManager) {
  this.view = view;
  this.view.setDelegate(this);
  this.constant = constant;
  this.restContext = appContext.getMasterApiEndpoint();
  this.notificationManager = notificationManager;
  this.appContext = appContext;
}
 
开发者ID:eclipse,项目名称:che,代码行数:14,代码来源:UploadSshKeyPresenter.java


注:本文中的org.eclipse.che.ide.api.app.AppContext.getMasterApiEndpoint方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。