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