@Test public void testOnFormsOpenedEvent() { editor.onFormsOpenedEvent(new FormPropertiesOpened(clientSession, ELEMENTUUID, "")); assertEquals(ELEMENTUUID, editor.formElementUUID); }
void onFormsOpenedEvent(@Observes FormPropertiesOpened event) { formElementUUID = event.getUuid(); }
BPMNDiagramEditor extends AbstractDiagramEditor { void onFormsOpenedEvent(@Observes FormPropertiesOpened event) { formElementUUID = event.getUuid(); } }
BPMNDiagramEditor extends AbstractDiagramEditor { void onFormsOpenedEvent(@Observes FormPropertiesOpened event) { formElementUUID = event.getUuid(); } @Inject  BPMNDiagramEditor(final View view,
                             final FileMenuBuilder fileMenuBuilder,
                             final PlaceManager placeManager,
                             final MultiPageEditorContainerView multiPageEditorContainerView,
                             final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
                             final Event<NotificationEvent> notificationEvent,
                             final Event<OnDiagramFocusEvent> onDiagramFocusEvent,
                             final TextEditorView xmlEditorView,
                             final ManagedInstance<SessionEditorPresenter<EditorSession>> editorSessionPresenterInstances,
                             final ManagedInstance<SessionViewerPresenter<ViewerSession>> viewerSessionPresenterInstances,
                             final BPMNStandaloneEditorMenuSessionItems menuSessionItems,
                             final ErrorPopupPresenter errorPopupPresenter,
                             final DiagramClientErrorHandler diagramClientErrorHandler,
                             final ClientTranslationService translationService,
                             final DocumentationView documentationView,
                             final DiagramEditorPreviewAndExplorerDock diagramPreviewAndExplorerDock,
                             final DiagramEditorPropertiesDock diagramPropertiesDock,
                             final LayoutHelper layoutHelper,
                             final OpenDiagramLayoutExecutor openDiagramLayoutExecutor,
                             final AbstractKogitoClientDiagramService diagramServices,
                             final FormsFlushManager formsFlushManager,
                             final CanvasFileExport canvasFileExport,
                             final Promises promises); }
BPMNDiagramEditor extends AbstractDiagramEditor { void onFormsOpenedEvent(@Observes FormPropertiesOpened event) { formElementUUID = event.getUuid(); } @Inject  BPMNDiagramEditor(final View view,
                             final FileMenuBuilder fileMenuBuilder,
                             final PlaceManager placeManager,
                             final MultiPageEditorContainerView multiPageEditorContainerView,
                             final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
                             final Event<NotificationEvent> notificationEvent,
                             final Event<OnDiagramFocusEvent> onDiagramFocusEvent,
                             final TextEditorView xmlEditorView,
                             final ManagedInstance<SessionEditorPresenter<EditorSession>> editorSessionPresenterInstances,
                             final ManagedInstance<SessionViewerPresenter<ViewerSession>> viewerSessionPresenterInstances,
                             final BPMNStandaloneEditorMenuSessionItems menuSessionItems,
                             final ErrorPopupPresenter errorPopupPresenter,
                             final DiagramClientErrorHandler diagramClientErrorHandler,
                             final ClientTranslationService translationService,
                             final DocumentationView documentationView,
                             final DiagramEditorPreviewAndExplorerDock diagramPreviewAndExplorerDock,
                             final DiagramEditorPropertiesDock diagramPropertiesDock,
                             final LayoutHelper layoutHelper,
                             final OpenDiagramLayoutExecutor openDiagramLayoutExecutor,
                             final AbstractKogitoClientDiagramService diagramServices,
                             final FormsFlushManager formsFlushManager,
                             final CanvasFileExport canvasFileExport,
                             final Promises promises); @OnStartup @SuppressWarnings("unused") void onStartup(final PlaceRequest place); @Override void open(final Diagram diagram,
                     final Viewer.Callback callback); @OnOpen @SuppressWarnings("unused") void onOpen(); @OnClose @SuppressWarnings("unused") void onClose(); @Override void onDiagramLoad(); @OnFocus @SuppressWarnings("unused") void onFocus(); @OnLostFocus @SuppressWarnings("unused") void onLostFocus(); @Override @WorkbenchPartTitleDecoration IsWidget getTitle(); @WorkbenchPartTitle String getTitleText(); @WorkbenchMenu void getMenus(final Consumer<Menus> menusConsumer); @Override @WorkbenchPartView IsWidget asWidget(); @OnMayClose boolean onMayClose(); @Override String getEditorIdentifier(); @GetContent @Override Promise getContent(); @GetPreview Promise getPreview(); @Override @IsDirty boolean isDirty(); @SetContent @Override @SuppressWarnings("all") Promise setContent(final String path, final String value); @Override void resetContentHash(); }
BPMNDiagramEditor extends AbstractDiagramEditor { void onFormsOpenedEvent(@Observes FormPropertiesOpened event) { formElementUUID = event.getUuid(); } @Inject  BPMNDiagramEditor(final View view,
                             final FileMenuBuilder fileMenuBuilder,
                             final PlaceManager placeManager,
                             final MultiPageEditorContainerView multiPageEditorContainerView,
                             final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
                             final Event<NotificationEvent> notificationEvent,
                             final Event<OnDiagramFocusEvent> onDiagramFocusEvent,
                             final TextEditorView xmlEditorView,
                             final ManagedInstance<SessionEditorPresenter<EditorSession>> editorSessionPresenterInstances,
                             final ManagedInstance<SessionViewerPresenter<ViewerSession>> viewerSessionPresenterInstances,
                             final BPMNStandaloneEditorMenuSessionItems menuSessionItems,
                             final ErrorPopupPresenter errorPopupPresenter,
                             final DiagramClientErrorHandler diagramClientErrorHandler,
                             final ClientTranslationService translationService,
                             final DocumentationView documentationView,
                             final DiagramEditorPreviewAndExplorerDock diagramPreviewAndExplorerDock,
                             final DiagramEditorPropertiesDock diagramPropertiesDock,
                             final LayoutHelper layoutHelper,
                             final OpenDiagramLayoutExecutor openDiagramLayoutExecutor,
                             final AbstractKogitoClientDiagramService diagramServices,
                             final FormsFlushManager formsFlushManager,
                             final CanvasFileExport canvasFileExport,
                             final Promises promises); @OnStartup @SuppressWarnings("unused") void onStartup(final PlaceRequest place); @Override void open(final Diagram diagram,
                     final Viewer.Callback callback); @OnOpen @SuppressWarnings("unused") void onOpen(); @OnClose @SuppressWarnings("unused") void onClose(); @Override void onDiagramLoad(); @OnFocus @SuppressWarnings("unused") void onFocus(); @OnLostFocus @SuppressWarnings("unused") void onLostFocus(); @Override @WorkbenchPartTitleDecoration IsWidget getTitle(); @WorkbenchPartTitle String getTitleText(); @WorkbenchMenu void getMenus(final Consumer<Menus> menusConsumer); @Override @WorkbenchPartView IsWidget asWidget(); @OnMayClose boolean onMayClose(); @Override String getEditorIdentifier(); @GetContent @Override Promise getContent(); @GetPreview Promise getPreview(); @Override @IsDirty boolean isDirty(); @SetContent @Override @SuppressWarnings("all") Promise setContent(final String path, final String value); @Override void resetContentHash(); static final String EDITOR_ID; }