use of org.kie.workbench.common.workbench.client.events.LayoutEditorFocusEvent in project kie-wb-common by kiegroup.
the class FormEditorPresenter method setActiveInstance.
private void setActiveInstance() {
formEditorContext.setActiveEditorHelper(editorHelper);
initLayoutDragComponentPalette();
layoutFocusEvent.fire(new LayoutEditorFocusEvent());
}
use of org.kie.workbench.common.workbench.client.events.LayoutEditorFocusEvent in project kie-wb-common by kiegroup.
the class AuthoringWorkbenchDocksTest method testCloseComponentPalette.
@Test
public void testCloseComponentPalette() {
authoringWorkbenchDocks.onLayoutEditorFocus(new LayoutEditorFocusEvent());
reset(uberfireDocks);
authoringWorkbenchDocks.onLayoutEditorClose(new PlaceHiddenEvent(new DefaultPlaceRequest("FormEditor")));
verify(uberfireDocks).remove(authoringWorkbenchDocks.componentPaletteDock);
assertFalse(authoringWorkbenchDocks.componentPaletteEnabled);
verify(uberfireDocks, never()).open(any());
}
use of org.kie.workbench.common.workbench.client.events.LayoutEditorFocusEvent in project kie-wb-common by kiegroup.
the class AuthoringWorkbenchDocksTest method testShowComponentPalette.
@Test
public void testShowComponentPalette() {
authoringWorkbenchDocks.onLayoutEditorFocus(new LayoutEditorFocusEvent());
verify(uberfireDocks).add(authoringWorkbenchDocks.componentPaletteDock);
verify(uberfireDocks).open(authoringWorkbenchDocks.componentPaletteDock);
assertTrue(authoringWorkbenchDocks.componentPaletteEnabled);
}
Aggregations