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


Java EventBus类代码示例

本文整理汇总了Java中com.google.web.bindery.event.shared.EventBus的典型用法代码示例。如果您正苦于以下问题:Java EventBus类的具体用法?Java EventBus怎么用?Java EventBus使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


EventBus类属于com.google.web.bindery.event.shared包,在下文中一共展示了EventBus类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: TextEditorsViewPresenter

import com.google.web.bindery.event.shared.EventBus; //导入依赖的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

示例2: MiniSideNavPresenter

import com.google.web.bindery.event.shared.EventBus; //导入依赖的package包/类
@Inject
MiniSideNavPresenter(
        EventBus eventBus,
        MyView view,
        MyProxy proxy) {
    super(eventBus, view, proxy, RevealType.Root);

}
 
开发者ID:GwtMaterialDesign,项目名称:gwt-material-patterns,代码行数:9,代码来源:MiniSideNavPresenter.java

示例3: ApplicationPresenter

import com.google.web.bindery.event.shared.EventBus; //导入依赖的package包/类
@Inject
ApplicationPresenter(
        EventBus eventBus,
        MyView view,
        MyProxy proxy) {
    super(eventBus, view, proxy, RevealType.Root);
}
 
开发者ID:GwtMaterialDesign,项目名称:gwt-material-patterns,代码行数:8,代码来源:ApplicationPresenter.java

示例4: FixedSideNavPresenter

import com.google.web.bindery.event.shared.EventBus; //导入依赖的package包/类
@Inject
FixedSideNavPresenter(
        EventBus eventBus,
        MyView view,
        MyProxy proxy) {
    super(eventBus, view, proxy, RevealType.Root);

}
 
开发者ID:GwtMaterialDesign,项目名称:gwt-material-patterns,代码行数:9,代码来源:FixedSideNavPresenter.java

示例5: MavenMessagesHandler

import com.google.web.bindery.event.shared.EventBus; //导入依赖的package包/类
@Inject
public MavenMessagesHandler(
    EventBus eventBus,
    MavenJsonRpcHandler mavenJsonRpcHandler,
    BackgroundLoaderPresenter dependencyResolver,
    PomEditorReconciler pomEditorReconciler,
    ProcessesPanelPresenter processesPanelPresenter,
    CommandConsoleFactory commandConsoleFactory,
    AppContext appContext) {
  this.eventBus = eventBus;
  this.dependencyResolver = dependencyResolver;
  this.pomEditorReconciler = pomEditorReconciler;
  this.processesPanelPresenter = processesPanelPresenter;
  this.appContext = appContext;

  mavenJsonRpcHandler.addTextHandler(this::handleTextNotification);
  mavenJsonRpcHandler.addStartStopHandler(this::handleStartStop);
  mavenJsonRpcHandler.addPercentHandler(this::handlePercentNotification);
  mavenJsonRpcHandler.addProjectsUpdateHandler(this::handleUpdate);
  mavenJsonRpcHandler.addArchetypeOutputHandler(this::onMavenArchetypeReceive);

  handleOperations();
  outputConsole = (DefaultOutputConsole) commandConsoleFactory.create("Maven Archetype");
}
 
开发者ID:eclipse,项目名称:che,代码行数:25,代码来源:MavenMessagesHandler.java

示例6: NewCssFileAction

import com.google.web.bindery.event.shared.EventBus; //导入依赖的package包/类
@Inject
public NewCssFileAction(
    WebLocalizationConstant localizationConstant,
    DialogFactory dialogFactory,
    CoreLocalizationConstant coreLocalizationConstant,
    EventBus eventBus,
    AppContext appContext,
    NotificationManager notificationManager,
    Provider<EditorAgent> editorAgentProvider) {
  super(
      localizationConstant.newCssFileActionTitle(),
      localizationConstant.newCssFileActionDescription(),
      null,
      dialogFactory,
      coreLocalizationConstant,
      eventBus,
      appContext,
      notificationManager,
      editorAgentProvider);
}
 
开发者ID:eclipse,项目名称:che,代码行数:21,代码来源:NewCssFileAction.java

示例7: DummyPerspective

import com.google.web.bindery.event.shared.EventBus; //导入依赖的package包/类
public DummyPerspective(
    @NotNull PerspectiveViewImpl view,
    @NotNull PartStackPresenterFactory stackPresenterFactory,
    @NotNull PartStackViewFactory partViewFactory,
    @NotNull WorkBenchControllerFactory controllerFactory,
    @NotNull EventBus eventBus,
    PartStackPresenter extraPartStackPresenter,
    PartStackPresenter editingPartStackPresenter,
    DynaProvider dynaProvider) {
  super(
      SOME_TEXT,
      view,
      stackPresenterFactory,
      partViewFactory,
      controllerFactory,
      eventBus,
      dynaProvider);

  if (extraPartStackPresenter != null) {
    partStacks.put(NAVIGATION, extraPartStackPresenter);
  }

  if (editingPartStackPresenter != null) {
    partStacks.put(EDITING, editingPartStackPresenter);
  }
}
 
开发者ID:eclipse,项目名称:che,代码行数:27,代码来源:AbstractPerspectiveTest.java

示例8: CreateHeaderSourceFileAction

import com.google.web.bindery.event.shared.EventBus; //导入依赖的package包/类
@Inject
public CreateHeaderSourceFileAction(
    CppLocalizationConstant localizationConstant,
    CppResources cppResources,
    DialogFactory dialogFactory,
    CoreLocalizationConstant coreLocalizationConstant,
    EventBus eventBus,
    AppContext appContext,
    NotificationManager notificationManager,
    Provider<EditorAgent> editorAgentProvider) {
  super(
      localizationConstant.createCHeaderFileActionTitle(),
      localizationConstant.createCHeaderFileActionDescription(),
      cppResources.cHeaderFile(),
      dialogFactory,
      coreLocalizationConstant,
      eventBus,
      appContext,
      notificationManager,
      editorAgentProvider);
}
 
开发者ID:eclipse,项目名称:che,代码行数:22,代码来源:CreateHeaderSourceFileAction.java

示例9: NewFileAction

import com.google.web.bindery.event.shared.EventBus; //导入依赖的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

示例10: EditorWorkFlow

import com.google.web.bindery.event.shared.EventBus; //导入依赖的package包/类
public EditorWorkFlow(EventBus ebus, PlaceController placeController,
        ActivityManager activityManager, Layout delegate,
        PresenterFactory presenterFactory, ClientMessages i18n) {

    this.presenterFactory = presenterFactory;
    this.i18n = i18n;
    this.ebus = (ebus != null) ? ebus : new SimpleEventBus();
    // PlaceController uses delegate to ask user with blocking Window.confirm
    // whether to leave the current place.
    // In order to use non blocking SmartGWT dialog
    // it will be necessary to override PlaceController.goto method.
    this.placeController = (placeController != null) ? placeController
            : new PlaceController(this.ebus);
    this.activityManager = (activityManager != null) ? activityManager
            : new ActivityManager(new EditorActivityMapper(), this.ebus);
    this.activityManager.setDisplay(new EditorDisplay(delegate));
    EditorPlaceHistoryMapper historyMapper = GWT.create(EditorPlaceHistoryMapper.class);
    placeHistoryHandler = new PlaceHistoryHandler(historyMapper);
    placeHistoryHandler.register(this.placeController, this.ebus, Place.NOWHERE);
}
 
开发者ID:proarc,项目名称:proarc,代码行数:21,代码来源:EditorWorkFlow.java

示例11: CreateCSourceFileAction

import com.google.web.bindery.event.shared.EventBus; //导入依赖的package包/类
@Inject
public CreateCSourceFileAction(
    CppLocalizationConstant localizationConstant,
    CppResources cppResources,
    DialogFactory dialogFactory,
    CoreLocalizationConstant coreLocalizationConstant,
    EventBus eventBus,
    AppContext appContext,
    NotificationManager notificationManager,
    Provider<EditorAgent> editorAgentProvider) {
  super(
      localizationConstant.createCFileActionTitle(),
      localizationConstant.createCFileActionDescription(),
      cppResources.cFile(),
      dialogFactory,
      coreLocalizationConstant,
      eventBus,
      appContext,
      notificationManager,
      editorAgentProvider);
}
 
开发者ID:eclipse,项目名称:che,代码行数:22,代码来源:CreateCSourceFileAction.java

示例12: NewFolderAction

import com.google.web.bindery.event.shared.EventBus; //导入依赖的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

示例13: DefaultIdeInitializationStrategy

import com.google.web.bindery.event.shared.EventBus; //导入依赖的package包/类
@Inject
DefaultIdeInitializationStrategy(
    WorkspaceServiceClient workspaceServiceClient,
    AppContext appContext,
    BrowserAddress browserAddress,
    CurrentUserInitializer userInitializer,
    ThemeAgent themeAgent,
    StyleInjector styleInjector,
    Provider<StandardComponentInitializer> standardComponentsInitializerProvider,
    AppStateManager appStateManager,
    Provider<WorkspacePresenter> workspacePresenterProvider,
    EventBus eventBus,
    DialogFactory dialogFactory) {
  this.workspaceServiceClient = workspaceServiceClient;
  this.appContext = appContext;
  this.browserAddress = browserAddress;
  this.userInitializer = userInitializer;
  this.themeAgent = themeAgent;
  this.styleInjector = styleInjector;
  this.standardComponentsInitializerProvider = standardComponentsInitializerProvider;
  this.appStateManager = appStateManager;
  this.workspacePresenterProvider = workspacePresenterProvider;
  this.eventBus = eventBus;
  this.dialogFactory = dialogFactory;
}
 
开发者ID:eclipse,项目名称:che,代码行数:26,代码来源:DefaultIdeInitializationStrategy.java

示例14: InitialProjectImporter

import com.google.web.bindery.event.shared.EventBus; //导入依赖的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

示例15: ResourceNode

import com.google.web.bindery.event.shared.EventBus; //导入依赖的package包/类
protected ResourceNode(
    R resource,
    NodeSettings nodeSettings,
    NodesResources nodesResources,
    NodeFactory nodeFactory,
    EventBus eventBus,
    Set<NodeIconProvider> nodeIconProviders) {
  this.resource = resource;
  this.nodeSettings = nodeSettings;
  this.nodeFactory = nodeFactory;
  this.nodesResources = nodesResources;
  this.nodeIconProviders = nodeIconProviders;

  eventBus.addHandler(
      MarkerChangedEvent.getType(),
      new MarkerChangedEvent.MarkerChangedHandler() {
        @Override
        public void onMarkerChanged(MarkerChangedEvent event) {
          if (event.getMarker().getType().equals(CutResourceMarker.ID)
              && getData().equals(event.getResource())) {
            resourceIsCut = event.getStatus() != Marker.REMOVED;
          }
        }
      });
}
 
开发者ID:eclipse,项目名称:che,代码行数:26,代码来源:ResourceNode.java


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