@Test @SuppressWarnings("unchecked") public void testShow() { tested.show(session); verify(sessionPreview, times(1)).open(eq(session), anyInt(), anyInt(), any(SessionViewer.SessionViewerCallback.class)); verify(treeExplorer, times(1)).show(eq(canvasHandler)); verify(changeTitleNotificationEvent, times(1)).fire(any(ChangeTitleWidgetEvent.class)); verify(treeExplorer, times(0)).clear(); verify(sessionPreview, times(0)).clear(); verify(errorPopupPresenter, times(0)).showMessage(anyString()); verify(view, times(0)).setPreviewWidget(any(IsWidget.class)); verify(view, times(1)).setExplorerWidget(any(IsWidget.class)); }
public void show(final ClientSession session) { if (null != session.getCanvasHandler().getDiagram()) { showPreview(session); showExplorer(session); updateTitle(session); } }
DiagramEditorExplorerScreen { public void show(final ClientSession session) { if (null != session.getCanvasHandler().getDiagram()) { showPreview(session); showExplorer(session); updateTitle(session); } } }
DiagramEditorExplorerScreen { public void show(final ClientSession session) { if (null != session.getCanvasHandler().getDiagram()) { showPreview(session); showExplorer(session); updateTitle(session); } } protected  DiagramEditorExplorerScreen(); @Inject  DiagramEditorExplorerScreen(final SessionManager clientSessionManager,
                                       final @Any ManagedInstance<TreeExplorer> treeExplorers,
                                       final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
                                       final @Any @Default ManagedInstance<SessionDiagramPreview<AbstractSession>> sessionPreviews,
                                       final ErrorPopupPresenter errorPopupPresenter,
                                       final View view,
                                       final Event<ScreenPreMaximizedStateEvent> screenStateEvent); }
DiagramEditorExplorerScreen { public void show(final ClientSession session) { if (null != session.getCanvasHandler().getDiagram()) { showPreview(session); showExplorer(session); updateTitle(session); } } protected  DiagramEditorExplorerScreen(); @Inject  DiagramEditorExplorerScreen(final SessionManager clientSessionManager,
                                       final @Any ManagedInstance<TreeExplorer> treeExplorers,
                                       final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
                                       final @Any @Default ManagedInstance<SessionDiagramPreview<AbstractSession>> sessionPreviews,
                                       final ErrorPopupPresenter errorPopupPresenter,
                                       final View view,
                                       final Event<ScreenPreMaximizedStateEvent> screenStateEvent); @OnStartup void onStartup(final PlaceRequest placeRequest); @OnOpen void onOpen(); @OnClose void onClose(); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchContextId String getMyContextRef(); void show(final ClientSession session); void close(); }
DiagramEditorExplorerScreen { public void show(final ClientSession session) { if (null != session.getCanvasHandler().getDiagram()) { showPreview(session); showExplorer(session); updateTitle(session); } } protected  DiagramEditorExplorerScreen(); @Inject  DiagramEditorExplorerScreen(final SessionManager clientSessionManager,
                                       final @Any ManagedInstance<TreeExplorer> treeExplorers,
                                       final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
                                       final @Any @Default ManagedInstance<SessionDiagramPreview<AbstractSession>> sessionPreviews,
                                       final ErrorPopupPresenter errorPopupPresenter,
                                       final View view,
                                       final Event<ScreenPreMaximizedStateEvent> screenStateEvent); @OnStartup void onStartup(final PlaceRequest placeRequest); @OnOpen void onOpen(); @OnClose void onClose(); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchContextId String getMyContextRef(); void show(final ClientSession session); void close(); static final String SCREEN_ID; static final String TITLE; static final int PREVIEW_WIDTH; static final int PREVIEW_HEIGHT; }