• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java AppContext类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



AppContext类属于org.eclipse.che.ide.api.app包,在下文中一共展示了AppContext类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: CountLinesAction

import org.eclipse.che.ide.api.app.AppContext; //导入依赖的package包/类
/**
 * Constructor
 *
 * @param appContext the IDE application context
 * @param resources the JSON Example resources that contain the action icon
 * @param asyncRequestFactory asynchronous request factory for creating the server request
 * @param notificationManager the notification manager used to display the lines of code per file
 */
@Inject
public CountLinesAction(
    AppContext appContext,
    JsonExampleResources resources,
    AsyncRequestFactory asyncRequestFactory,
    NotificationManager notificationManager) {

  super(
      appContext,
      "Count JSON Lines of Code",
      "Counts lines of code for all JSON Files in the project",
      resources.icon());

  this.appContext = appContext;
  this.asyncRequestFactory = asyncRequestFactory;
  this.notificationManager = notificationManager;
  this.unmarshaller = new StringMapUnmarshaller();
}
 
开发者ID:eclipse,项目名称:che-archetypes,代码行数:27,代码来源:CountLinesAction.java


示例2: MyServiceClient

import org.eclipse.che.ide.api.app.AppContext; //导入依赖的package包/类
/**
 * Constructor.
 *
 * @param appContext the {@link AppContext}
 * @param asyncRequestFactory the {@link AsyncRequestFactory} that is used to create requests
 * @param loaderFactory the {@link LoaderFactory} for displaying a message while waiting for a
 *     response
 */
@Inject
public MyServiceClient(
    final AppContext appContext,
    final AsyncRequestFactory asyncRequestFactory,
    final LoaderFactory loaderFactory) {

  this.appContext = appContext;
  this.asyncRequestFactory = asyncRequestFactory;
  this.loaderFactory = loaderFactory;
}
 
开发者ID:eclipse,项目名称:che-archetypes,代码行数:19,代码来源:MyServiceClient.java


示例3: TextEditorsViewPresenter

import org.eclipse.che.ide.api.app.AppContext; //导入依赖的package包/类
@Inject
public TextEditorsViewPresenter(
        AppContext appContext,
        TextEditorsView textViewEditors,
        ResourceManager.ResourceManagerFactory resourceManagerFactory,
		EditorAgent editorAgent,
		EventBus eventBus) {
	this.textEditorsView = textViewEditors;

	this.resourceManagerFactory = resourceManagerFactory;
    resourceManager = resourceManagerFactory.newResourceManager(appContext.getDevMachine());
    this.editorAgent = editorAgent;

	eventBus.addHandler(FileEvent.TYPE, this);
	exportOpenEditor();
}
 
开发者ID:convertigo,项目名称:convertigo-che-assembly,代码行数:17,代码来源:TextEditorsViewPresenter.java


示例4: BitbucketSshKeyProvider

import org.eclipse.che.ide.api.app.AppContext; //导入依赖的package包/类
@Inject
public BitbucketSshKeyProvider(
    @NotNull final BitbucketClientService bitbucketService,
    @NotNull @RestContext final String baseUrl,
    @NotNull final BitbucketLocalizationConstant constant,
    @NotNull final NotificationManager notificationManager,
    @NotNull final DialogFactory dialogFactory,
    AppContext appContext,
    @NotNull final SecurityTokenProvider securityTokenProvider) {

  this.bitbucketService = bitbucketService;
  this.baseUrl = baseUrl;
  this.constant = constant;
  this.notificationManager = notificationManager;
  this.dialogFactory = dialogFactory;
  this.appContext = appContext;
  this.securityTokenProvider = securityTokenProvider;
}
 
开发者ID:codenvy,项目名称:codenvy,代码行数:19,代码来源:BitbucketSshKeyProvider.java


示例5: MicrosoftHostingService

import org.eclipse.che.ide.api.app.AppContext; //导入依赖的package包/类
@Inject
public MicrosoftHostingService(
    @RestContext final String baseUrl,
    AppContext appContext,
    DtoFactory dtoFactory,
    MicrosoftServiceClient microsoftClient,
    MicrosoftTemplates microsoftTemplates,
    SecurityTokenProvider securityTokenProvider) {
  this.baseUrl = baseUrl;
  this.appContext = appContext;
  this.dtoFactory = dtoFactory;
  this.microsoftClient = microsoftClient;
  this.microsoftTemplates = microsoftTemplates;
  this.securityTokenProvider = securityTokenProvider;
}
 
开发者ID:codenvy,项目名称:codenvy,代码行数:16,代码来源:MicrosoftHostingService.java


示例6: ResetFilesPresenter

import org.eclipse.che.ide.api.app.AppContext; //导入依赖的package包/类
/** Create presenter. */
@Inject
public ResetFilesPresenter(
    ResetFilesView view,
    GitServiceClient service,
    AppContext appContext,
    GitLocalizationConstant constant,
    NotificationManager notificationManager,
    DtoFactory dtoFactory,
    DialogFactory dialogFactory,
    GitOutputConsoleFactory gitOutputConsoleFactory,
    ProcessesPanelPresenter processesPanelPresenter) {
  this.view = view;
  this.dtoFactory = dtoFactory;
  this.dialogFactory = dialogFactory;
  this.gitOutputConsoleFactory = gitOutputConsoleFactory;
  this.consolesPanelPresenter = processesPanelPresenter;
  this.view.setDelegate(this);
  this.service = service;
  this.appContext = appContext;
  this.constant = constant;
  this.notificationManager = notificationManager;
}
 
开发者ID:eclipse,项目名称:che,代码行数:24,代码来源:ResetFilesPresenter.java


示例7: SshKeyManagerPresenter

import org.eclipse.che.ide.api.app.AppContext; //导入依赖的package包/类
@Inject
public SshKeyManagerPresenter(
    SshKeyManagerView view,
    SshServiceClient service,
    AppContext appContext,
    SshKeyLocalizationConstant constant,
    UploadSshKeyPresenter uploadSshKeyPresenter,
    NotificationManager notificationManager,
    DialogFactory dialogFactory,
    SshKeyUploaderRegistry registry,
    ShowSshKeyView showSshKeyView) {
  super(constant.sshManagerTitle(), constant.sshManagerCategory());

  this.view = view;
  this.appContext = appContext;
  this.dialogFactory = dialogFactory;
  this.registry = registry;
  this.showSshKeyView = showSshKeyView;
  this.view.setDelegate(this);
  this.service = service;
  this.constant = constant;
  this.uploadSshKeyPresenter = uploadSshKeyPresenter;
  this.notificationManager = notificationManager;
  this.hostNameValidator = new HostNameValidator();
}
 
开发者ID:eclipse,项目名称:che,代码行数:26,代码来源:SshKeyManagerPresenter.java


示例8: CreateCSharpSourceFileAction

import org.eclipse.che.ide.api.app.AppContext; //导入依赖的package包/类
@Inject
public CreateCSharpSourceFileAction(
    CSharpLocalizationConstant localizationConstant,
    CSharpResources resources,
    DialogFactory dialogFactory,
    CoreLocalizationConstant coreLocalizationConstant,
    EventBus eventBus,
    AppContext appContext,
    NotificationManager notificationManager,
    Provider<EditorAgent> editorAgentProvider) {
  super(
      localizationConstant.createCSharpFileActionTitle(),
      localizationConstant.createCSharpFileActionDescription(),
      resources.csharpFile(),
      dialogFactory,
      coreLocalizationConstant,
      eventBus,
      appContext,
      notificationManager,
      editorAgentProvider);
}
 
开发者ID:eclipse,项目名称:che,代码行数:22,代码来源:CreateCSharpSourceFileAction.java


示例9: DebugTestNgTestAction

import org.eclipse.che.ide.api.app.AppContext; //导入依赖的package包/类
@Inject
public DebugTestNgTestAction(
    TestNgResources resources,
    TestDetector testDetector,
    TestServiceClient client,
    TestingHandler testingHandler,
    DtoFactory dtoFactory,
    NotificationManager notificationManager,
    DebugConfigurationsManager debugConfigurationsManager,
    AppContext appContext,
    TestResultPresenter testResultPresenter,
    TestNgLocalizationConstant localization) {
  super(
      testDetector,
      testResultPresenter,
      testingHandler,
      debugConfigurationsManager,
      client,
      dtoFactory,
      appContext,
      notificationManager,
      singletonList(PROJECT_PERSPECTIVE_ID),
      localization.actionDebugDescription(),
      localization.actionDebugTestTitle(),
      resources.testIcon());
}
 
开发者ID:eclipse,项目名称:che,代码行数:27,代码来源:DebugTestNgTestAction.java


示例10: NewJavaScriptFileAction

import org.eclipse.che.ide.api.app.AppContext; //导入依赖的package包/类
@Inject
public NewJavaScriptFileAction(
    WebLocalizationConstant localizationConstant,
    DialogFactory dialogFactory,
    CoreLocalizationConstant coreLocalizationConstant,
    EventBus eventBus,
    AppContext appContext,
    NotificationManager notificationManager,
    Provider<EditorAgent> editorAgentProvider) {
  super(
      localizationConstant.newJavaScriptFileActionTitle(),
      localizationConstant.newJavaScriptFileActionDescription(),
      null,
      dialogFactory,
      coreLocalizationConstant,
      eventBus,
      appContext,
      notificationManager,
      editorAgentProvider);
}
 
开发者ID:eclipse,项目名称:che,代码行数:21,代码来源:NewJavaScriptFileAction.java


示例11: AddToIndexPresenter

import org.eclipse.che.ide.api.app.AppContext; //导入依赖的package包/类
@Inject
public AddToIndexPresenter(
    AddToIndexView view,
    AppContext appContext,
    GitLocalizationConstant constant,
    GitOutputConsoleFactory gitOutputConsoleFactory,
    ProcessesPanelPresenter processesPanelPresenter,
    GitServiceClient service,
    NotificationManager notificationManager) {
  this.view = view;
  this.view.setDelegate(this);
  this.service = service;
  this.constant = constant;
  this.appContext = appContext;
  this.notificationManager = notificationManager;
  this.gitOutputConsoleFactory = gitOutputConsoleFactory;
  this.consolesPanelPresenter = processesPanelPresenter;
}
 
开发者ID:eclipse,项目名称:che,代码行数:19,代码来源:AddToIndexPresenter.java


示例12: 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


示例13: CategoriesPagePresenter

import org.eclipse.che.ide.api.app.AppContext; //导入依赖的package包/类
@Inject
public CategoriesPagePresenter(
    CategoriesPageView view,
    ProjectTypeRegistry projectTypeRegistry,
    ProjectTemplateRegistry projectTemplateRegistry,
    ProjectWizardRegistry wizardRegistry,
    PreSelectedProjectTypeManager preSelectedProjectTypeManager,
    SelectPathPresenter selectPathPresenter,
    AppContext appContext) {
  super();
  this.view = view;
  this.projectTypeRegistry = projectTypeRegistry;
  this.projectTemplateRegistry = projectTemplateRegistry;
  this.wizardRegistry = wizardRegistry;
  this.preSelectedProjectTypeManager = preSelectedProjectTypeManager;
  this.selectPathPresenter = selectPathPresenter;
  this.appContext = appContext;

  view.setDelegate(this);
  loadProjectTypesAndTemplates();
}
 
开发者ID:eclipse,项目名称:che,代码行数:22,代码来源:CategoriesPagePresenter.java


示例14: ProjectTypeRegistryImpl

import org.eclipse.che.ide.api.app.AppContext; //导入依赖的package包/类
@Inject
public ProjectTypeRegistryImpl(
    AsyncRequestFactory asyncRequestFactory,
    DtoUnmarshallerFactory dtoUnmarshallerFactory,
    AppContext appContext,
    EventBus eventBus) {
  this.asyncRequestFactory = asyncRequestFactory;
  this.dtoUnmarshallerFactory = dtoUnmarshallerFactory;
  this.appContext = appContext;
  this.eventBus = eventBus;

  projectTypes = new HashMap<>();

  eventBus.addHandler(
      BasicIDEInitializedEvent.TYPE,
      e -> {
        if (RUNNING == appContext.getWorkspace().getStatus()) {
          registerProjectTypes();
        }
      });

  eventBus.addHandler(WsAgentServerRunningEvent.TYPE, e -> registerProjectTypes());
  eventBus.addHandler(WsAgentServerStoppedEvent.TYPE, e -> projectTypes.clear());
}
 
开发者ID:eclipse,项目名称:che,代码行数:25,代码来源:ProjectTypeRegistryImpl.java


示例15: SourceEntryPresenter

import org.eclipse.che.ide.api.app.AppContext; //导入依赖的package包/类
@Inject
public SourceEntryPresenter(
    SourceEntryView view,
    DtoFactory dtoFactory,
    ClasspathContainer classpathContainer,
    ClasspathResolver classpathResolver,
    JavaLocalizationConstant localization,
    AppContext appContext,
    SelectNodePresenter selectNodePresenter) {
  super(localization.sourcePropertyName(), localization.javaBuildPathCategory(), null);
  this.view = view;
  this.dtoFactory = dtoFactory;
  this.classpathContainer = classpathContainer;
  this.classpathResolver = classpathResolver;
  this.appContext = appContext;
  this.selectNodePresenter = selectNodePresenter;

  categories = new TreeMap<>();
  dirty = false;

  view.setDelegate(this);
}
 
开发者ID:eclipse,项目名称:che,代码行数:23,代码来源:SourceEntryPresenter.java


示例16: MatchNode

import org.eclipse.che.ide.api.app.AppContext; //导入依赖的package包/类
@Inject
public MatchNode(
    TreeStyles styles,
    JavaResources resources,
    EditorAgent editorAgent,
    AppContext appContext,
    @Assisted Match match,
    @Nullable @Assisted CompilationUnit compilationUnit,
    @Nullable @Assisted ClassFile classFile,
    JavaNavigationService service) {
  this.styles = styles;
  this.resources = resources;
  this.editorAgent = editorAgent;
  this.appContext = appContext;
  this.match = match;
  this.compilationUnit = compilationUnit;
  this.classFile = classFile;
  this.service = service;
}
 
开发者ID:eclipse,项目名称:che,代码行数:20,代码来源:MatchNode.java


示例17: InitialProjectImporter

import org.eclipse.che.ide.api.app.AppContext; //导入依赖的package包/类
@Inject
public InitialProjectImporter(
    ImportProjectNotificationSubscriberFactory subscriberFactory,
    AppContext appContext,
    OAuth2AuthenticatorRegistry oAuth2AuthenticatorRegistry,
    ProjectImportOutputJsonRpcNotifier subscriber,
    NotificationManager notificationManager,
    CoreLocalizationConstant locale,
    AskCredentialsDialog askCredentialsDialog,
    DialogFactory dialogFactory,
    PromiseProvider promises,
    EventBus eventBus) {

  super(appContext, subscriberFactory);

  this.oAuth2AuthenticatorRegistry = oAuth2AuthenticatorRegistry;
  this.subscriber = subscriber;
  this.notificationManager = notificationManager;
  this.locale = locale;
  this.askCredentialsDialog = askCredentialsDialog;
  this.dialogFactory = dialogFactory;
  this.promises = promises;

  eventBus.addHandler(WorkspaceReadyEvent.getType(), e -> importProjects());
}
 
开发者ID:eclipse,项目名称:che,代码行数:26,代码来源:InitialProjectImporter.java


示例18: NewHtmlFileAction

import org.eclipse.che.ide.api.app.AppContext; //导入依赖的package包/类
@Inject
public NewHtmlFileAction(
    WebLocalizationConstant localizationConstant,
    DialogFactory dialogFactory,
    CoreLocalizationConstant coreLocalizationConstant,
    EventBus eventBus,
    AppContext appContext,
    NotificationManager notificationManager,
    Provider<EditorAgent> editorAgentProvider) {
  super(
      localizationConstant.newHtmlFileActionTitle(),
      localizationConstant.newHtmlFileActionDescription(),
      null,
      dialogFactory,
      coreLocalizationConstant,
      eventBus,
      appContext,
      notificationManager,
      editorAgentProvider);
}
 
开发者ID:eclipse,项目名称:che,代码行数:21,代码来源:NewHtmlFileAction.java


示例19: AddToIndexAction

import org.eclipse.che.ide.api.app.AppContext; //导入依赖的package包/类
@Inject
public AddToIndexAction(
    AddToIndexPresenter presenter,
    AppContext appContext,
    GitLocalizationConstant constant,
    GitOutputConsoleFactory gitOutputConsoleFactory,
    ProcessesPanelPresenter consolesPanelPresenter,
    GitServiceClient service,
    NotificationManager notificationManager) {
  super(
      constant.addToIndexTitle(),
      constant.addToIndexTitle(),
      FontAwesome.PLUS_CIRCLE,
      appContext);
  this.presenter = presenter;
  this.constant = constant;
  this.gitOutputConsoleFactory = gitOutputConsoleFactory;
  this.consolesPanelPresenter = consolesPanelPresenter;
  this.service = service;
  this.notificationManager = notificationManager;
}
 
开发者ID:eclipse,项目名称:che,代码行数:22,代码来源:AddToIndexAction.java


示例20: isCutEnable

import org.eclipse.che.ide.api.app.AppContext; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public boolean isCutEnable(AppContext appContext) {
  final Resource[] resources = appContext.getResources();

  // check general state
  if (resources == null || resources.length == 0) {
    return false;
  }

  for (Resource resource : resources) {
    // if there is at least one root project
    if (resource.getResourceType() == PROJECT && resource.getLocation().segmentCount() == 1) {
      return false;
    }
  }

  return true;
}
 
开发者ID:eclipse,项目名称:che,代码行数:20,代码来源:ClipboardManagerImpl.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java DoRollbackRequestProto类代码示例发布时间:2022-05-22
下一篇:
Java ShellComponent类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap