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


Java NotificationManager类代码示例

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


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


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