本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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";
}
示例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";
}
示例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";
}
示例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;
}