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

Java NotificationManager类代码示例

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

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



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

示例1: CountLinesAction

import org.eclipse.che.ide.api.notification.NotificationManager; //导入依赖的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: BitbucketSshKeyProvider

import org.eclipse.che.ide.api.notification.NotificationManager; //导入依赖的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


示例3: SshKeyManagerPresenter

import org.eclipse.che.ide.api.notification.NotificationManager; //导入依赖的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


示例4: MovePresenter

import org.eclipse.che.ide.api.notification.NotificationManager; //导入依赖的package包/类
@Inject
public MovePresenter(
    MoveView view,
    RefactoringUpdater refactoringUpdater,
    EditorAgent editorAgent,
    PreviewPresenter previewPresenter,
    RefactoringServiceClient refactorService,
    JavaNavigationService navigationService,
    DtoFactory dtoFactory,
    JavaLocalizationConstant locale,
    NotificationManager notificationManager,
    ClientServerEventService clientServerEventService) {
  this.view = view;
  this.refactoringUpdater = refactoringUpdater;
  this.editorAgent = editorAgent;
  this.clientServerEventService = clientServerEventService;
  this.view.setDelegate(this);

  this.previewPresenter = previewPresenter;
  this.refactorService = refactorService;
  this.navigationService = navigationService;
  this.dtoFactory = dtoFactory;
  this.locale = locale;
  this.notificationManager = notificationManager;
}
 
开发者ID:eclipse,项目名称:che,代码行数:26,代码来源:MovePresenter.java


示例5: ProjectImportOutputJsonRpcNotifier

import org.eclipse.che.ide.api.notification.NotificationManager; //导入依赖的package包/类
@Inject
public ProjectImportOutputJsonRpcNotifier(
    NotificationManager notificationManager,
    CoreLocalizationConstant locale,
    EventBus eventBus,
    RequestHandlerConfigurator configurator,
    RequestHandlerManager requestHandlerManager) {
  this.notificationManager = notificationManager;
  this.locale = locale;
  this.configurator = configurator;
  this.requestHandlerManager = requestHandlerManager;

  eventBus.addHandler(
      WsAgentServerStoppedEvent.TYPE,
      e -> {
        requestHandlerManager.deregister(EVENT_IMPORT_OUTPUT_PROGRESS);
        if (singletonNotification != null) {
          singletonNotification.setStatus(FAIL);
          singletonNotification.setContent("");
        }
      });
}
 
开发者ID:eclipse,项目名称:che,代码行数:23,代码来源:ProjectImportOutputJsonRpcNotifier.java


示例6: MainPagePresenter

import org.eclipse.che.ide.api.notification.NotificationManager; //导入依赖的package包/类
@Inject
public MainPagePresenter(
    DtoUnmarshallerFactory dtoUnmarshallerFactory,
    NotificationManager notificationManager,
    CoreLocalizationConstant locale,
    MainPageView view,
    ImportWizardRegistry importWizardRegistry,
    AppContext appContext,
    AsyncRequestFactory asyncRequestFactory) {
  super();
  this.view = view;
  this.dtoUnmarshallerFactory = dtoUnmarshallerFactory;
  this.notificationManager = notificationManager;
  this.locale = locale;
  this.importWizardRegistry = importWizardRegistry;
  this.appContext = appContext;
  this.asyncRequestFactory = asyncRequestFactory;

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


示例7: UploadFilePresenter

import org.eclipse.che.ide.api.notification.NotificationManager; //导入依赖的package包/类
@Inject
public UploadFilePresenter(
    UploadFileView view,
    AppContext appContext,
    EventBus eventBus,
    NotificationManager notificationManager,
    CoreLocalizationConstant locale,
    EditorAgent editorAgent) {
  this.appContext = appContext;
  this.eventBus = eventBus;
  this.view = view;
  this.locale = locale;
  this.notificationManager = notificationManager;
  this.editorAgent = editorAgent;
  this.view.setDelegate(this);

  this.view.setEnabledUploadButton(false);
  this.view.setEncoding(FormPanel.ENCODING_MULTIPART);
}
 
开发者ID:eclipse,项目名称:che,代码行数:20,代码来源:UploadFilePresenter.java


示例8: FactoryProjectImporter

import org.eclipse.che.ide.api.notification.NotificationManager; //导入依赖的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


示例9: CreatePhpSourceFileAction

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


示例10: RenameItemAction

import org.eclipse.che.ide.api.notification.NotificationManager; //导入依赖的package包/类
@Inject
public RenameItemAction(
    Resources resources,
    CoreLocalizationConstant localization,
    Set<RenamingSupport> renamingSupport,
    EditorAgent editorAgent,
    NotificationManager notificationManager,
    DialogFactory dialogFactory,
    AppContext appContext,
    WorkspaceAgent workspaceAgent) {
  super(
      singletonList(PROJECT_PERSPECTIVE_ID),
      localization.renameItemActionText(),
      localization.renameItemActionDescription(),
      resources.rename());
  this.localization = localization;
  this.renamingSupport = renamingSupport;
  this.editorAgent = editorAgent;
  this.notificationManager = notificationManager;
  this.dialogFactory = dialogFactory;
  this.appContext = appContext;
  this.workspaceAgent = workspaceAgent;
}
 
开发者ID:eclipse,项目名称:che,代码行数:24,代码来源:RenameItemAction.java


示例11: EventLogsDisplayingModeAction

import org.eclipse.che.ide.api.notification.NotificationManager; //导入依赖的package包/类
@Inject
public EventLogsDisplayingModeAction(
    Resources resources,
    EditorAgent editorAgent,
    CoreLocalizationConstant localizedConstant,
    WorkspaceAgent workspaceAgent,
    Provider<NotificationManager> notificationManagerProvider) {
  super(
      singletonList(PROJECT_PERSPECTIVE_ID),
      localizedConstant.switchEventLogsDisplayingTitle(),
      localizedConstant.switchEventLogsDisplayingDescription(),
      resources.eventsPartIcon());
  this.editorAgent = editorAgent;
  this.workspaceAgent = workspaceAgent;
  this.notificationManagerProvider = notificationManagerProvider;
}
 
开发者ID:eclipse,项目名称:che,代码行数:17,代码来源:EventLogsDisplayingModeAction.java


示例12: NewXmlFileAction

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


示例13: PreferencesPresenter

import org.eclipse.che.ide.api.notification.NotificationManager; //导入依赖的package包/类
/**
 * Create presenter.
 *
 * <p>For tests.
 *
 * @param view
 * @param preferences
 * @param dialogFactory
 * @param locale
 * @param managers
 */
@Inject
protected PreferencesPresenter(
    PreferencesView view,
    Set<PreferencePagePresenter> preferences,
    DialogFactory dialogFactory,
    CoreLocalizationConstant locale,
    Set<PreferencesManager> managers,
    Provider<NotificationManager> notificationManagerProvider) {
  this.view = view;
  this.preferences = preferences;
  this.dialogFactory = dialogFactory;
  this.locale = locale;
  this.managers = managers;
  this.notificationManagerProvider = notificationManagerProvider;
  this.view.setDelegate(this);
  for (PreferencePagePresenter preference : preferences) {
    preference.setUpdateDelegate(this);
  }
}
 
开发者ID:eclipse,项目名称:che,代码行数:31,代码来源:PreferencesPresenter.java


示例14: TerminalPresenter

import org.eclipse.che.ide.api.notification.NotificationManager; //导入依赖的package包/类
@Inject
public TerminalPresenter(
    TerminalView view,
    NotificationManager notificationManager,
    CoreLocalizationConstant locale,
    @NotNull @Assisted MachineImpl machine,
    @Assisted TerminalOptionsJso options,
    final TerminalInitializePromiseHolder terminalHolder,
    final ModuleHolder moduleHolder,
    AgentURLModifier agentURLModifier) {
  this.view = view;
  this.options = options != null ? options : TerminalOptionsJso.createDefault();
  this.agentURLModifier = agentURLModifier;
  view.setDelegate(this);
  this.notificationManager = notificationManager;
  this.locale = locale;
  this.machine = machine;

  connected = false;
  countRetry = 2;
  this.terminalHolder = terminalHolder;
  this.moduleHolder = moduleHolder;
}
 
开发者ID:eclipse,项目名称:che,代码行数:24,代码来源:TerminalPresenter.java


示例15: NewFileAction

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


示例16: RunTestNgTestAction

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


示例17: NewFolderAction

import org.eclipse.che.ide.api.notification.NotificationManager; //导入依赖的package包/类
@Inject
public NewFolderAction(
    CoreLocalizationConstant localizationConstant,
    Resources resources,
    DialogFactory dialogFactory,
    EventBus eventBus,
    AppContext appContext,
    NotificationManager notificationManager,
    Provider<EditorAgent> editorAgentProvider) {
  super(
      localizationConstant.actionNewFolderTitle(),
      localizationConstant.actionNewFolderDescription(),
      resources.defaultFolder(),
      dialogFactory,
      localizationConstant,
      eventBus,
      appContext,
      notificationManager,
      editorAgentProvider);
  this.folderNameValidator = new FolderNameValidator();
}
 
开发者ID:eclipse,项目名称:che,代码行数:22,代码来源:NewFolderAction.java


示例18: GetEffectivePomAction

import org.eclipse.che.ide.api.notification.NotificationManager; //导入依赖的package包/类
@Inject
public GetEffectivePomAction(
    MavenLocalizationConstant constant,
    MavenResources mavenResources,
    EditorAgent editorAgent,
    NotificationManager notificationManager,
    MavenServerServiceClient mavenServerServiceClient,
    AppContext appContext) {
  super(
      Collections.singletonList(PROJECT_PERSPECTIVE_ID),
      constant.actionGetEffectivePomTitle(),
      constant.actionGetEffectivePomDescription(),
      mavenResources.maven());
  this.editorAgent = editorAgent;
  this.notificationManager = notificationManager;
  this.mavenServerServiceClient = mavenServerServiceClient;
  this.appContext = appContext;
}
 
开发者ID:eclipse,项目名称:che,代码行数:19,代码来源:GetEffectivePomAction.java


示例19: ReimportMavenDependenciesAction

import org.eclipse.che.ide.api.notification.NotificationManager; //导入依赖的package包/类
@Inject
public ReimportMavenDependenciesAction(
    MavenLocalizationConstant constant,
    AppContext appContext,
    NotificationManager notificationManager,
    Resources resources,
    MavenServerServiceClient mavenServerServiceClient) {
  super(
      Collections.singletonList(PROJECT_PERSPECTIVE_ID),
      constant.actionReimportDependenciesTitle(),
      constant.actionReimportDependenciesDescription(),
      resources.refresh());
  this.appContext = appContext;
  this.notificationManager = notificationManager;
  this.mavenServerServiceClient = mavenServerServiceClient;
}
 
开发者ID:eclipse,项目名称:che,代码行数:17,代码来源:ReimportMavenDependenciesAction.java


示例20: NewJavaScriptFileAction

import org.eclipse.che.ide.api.notification.NotificationManager; //导入依赖的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



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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