@Test public void testSetWidget() { final IsWidget editor = mock(IsWidget.class); tested.setWidget(editor); verify(editorPanel).clear(); verify(editorPanel).add(eq(editor)); }
@Override public void setWidget(final IsWidget widget) { editorPanel.clear(); editorPanel.add(widget); }
ProjectDiagramEditorView extends KieEditorViewImpl implements AbstractProjectDiagramEditor.View { @Override public void setWidget(final IsWidget widget) { editorPanel.clear(); editorPanel.add(widget); } }
ProjectDiagramEditorView extends KieEditorViewImpl implements AbstractProjectDiagramEditor.View { @Override public void setWidget(final IsWidget widget) { editorPanel.clear(); editorPanel.add(widget); } protected  ProjectDiagramEditorView(); @Inject  ProjectDiagramEditorView(final ResizeFlowPanel editorPanel); }
ProjectDiagramEditorView extends KieEditorViewImpl implements AbstractProjectDiagramEditor.View { @Override public void setWidget(final IsWidget widget) { editorPanel.clear(); editorPanel.add(widget); } protected  ProjectDiagramEditorView(); @Inject  ProjectDiagramEditorView(final ResizeFlowPanel editorPanel); @Override void init(final DiagramEditorCore presenter); @Override void onResize(); @Override void setWidget(final IsWidget widget); @PreDestroy void destroy(); }
ProjectDiagramEditorView extends KieEditorViewImpl implements AbstractProjectDiagramEditor.View { @Override public void setWidget(final IsWidget widget) { editorPanel.clear(); editorPanel.add(widget); } protected  ProjectDiagramEditorView(); @Inject  ProjectDiagramEditorView(final ResizeFlowPanel editorPanel); @Override void init(final DiagramEditorCore presenter); @Override void onResize(); @Override void setWidget(final IsWidget widget); @PreDestroy void destroy();  }