@Test @SuppressWarnings("unchecked") public void testShow() { testedTree.show(canvasHandler); verify(view, times(1)).init(eq(testedTree)); verify(childrenTraverseProcessor, times(1)).traverse(eq(graph), any(AbstractChildrenTraverseCallback.class)); }
@SuppressWarnings("unchecked") public void show(final CanvasHandler canvasHandler) { this.canvasHandler = canvasHandler; initView(); if (null != canvasHandler && null != canvasHandler.getDiagram()) { doShow(canvasHandler.getDiagram().getGraph()); } }
TreeExplorer implements IsWidget { @SuppressWarnings("unchecked") public void show(final CanvasHandler canvasHandler) { this.canvasHandler = canvasHandler; initView(); if (null != canvasHandler && null != canvasHandler.getDiagram()) { doShow(canvasHandler.getDiagram().getGraph()); } } }
TreeExplorer implements IsWidget { @SuppressWarnings("unchecked") public void show(final CanvasHandler canvasHandler) { this.canvasHandler = canvasHandler; initView(); if (null != canvasHandler && null != canvasHandler.getDiagram()) { doShow(canvasHandler.getDiagram().getGraph()); } } @Inject  TreeExplorer(final ChildrenTraverseProcessor childrenTraverseProcessor,
                        final TextPropertyProviderFactory textPropertyProviderFactory,
                        final Event<CanvasSelectionEvent> selectionEvent,
                        final DefinitionUtils definitionUtils,
                        final ShapeManager shapeManager,
                        final DOMGlyphRenderers domGlyphRenderers,
                        final @Any ManagedInstance<View> views); }
TreeExplorer implements IsWidget { @SuppressWarnings("unchecked") public void show(final CanvasHandler canvasHandler) { this.canvasHandler = canvasHandler; initView(); if (null != canvasHandler && null != canvasHandler.getDiagram()) { doShow(canvasHandler.getDiagram().getGraph()); } } @Inject  TreeExplorer(final ChildrenTraverseProcessor childrenTraverseProcessor,
                        final TextPropertyProviderFactory textPropertyProviderFactory,
                        final Event<CanvasSelectionEvent> selectionEvent,
                        final DefinitionUtils definitionUtils,
                        final ShapeManager shapeManager,
                        final DOMGlyphRenderers domGlyphRenderers,
                        final @Any ManagedInstance<View> views); @SuppressWarnings("unchecked") void show(final CanvasHandler canvasHandler); void clear(); @PreDestroy void destroy(); @Override Widget asWidget(); CanvasHandler getCanvasHandler(); }
TreeExplorer implements IsWidget { @SuppressWarnings("unchecked") public void show(final CanvasHandler canvasHandler) { this.canvasHandler = canvasHandler; initView(); if (null != canvasHandler && null != canvasHandler.getDiagram()) { doShow(canvasHandler.getDiagram().getGraph()); } } @Inject  TreeExplorer(final ChildrenTraverseProcessor childrenTraverseProcessor,
                        final TextPropertyProviderFactory textPropertyProviderFactory,
                        final Event<CanvasSelectionEvent> selectionEvent,
                        final DefinitionUtils definitionUtils,
                        final ShapeManager shapeManager,
                        final DOMGlyphRenderers domGlyphRenderers,
                        final @Any ManagedInstance<View> views); @SuppressWarnings("unchecked") void show(final CanvasHandler canvasHandler); void clear(); @PreDestroy void destroy(); @Override Widget asWidget(); CanvasHandler getCanvasHandler();  }