ContentManagerPerspective { public void onPerspectiveEditorFocus(@Observes PerspectiveEditorFocusEvent event) { refreshWestDocks(true, componentPaletteDock); refreshEastDocks(true, propertiesEditorDock); propertiesPresenter.edit(event.getLayoutEditor()); }  @Perspective PerspectiveDefinition getPerspective(); @AfterInitialization void init(); @OnOpen void onOpen(); void onPerspectiveEditorFocus(@Observes PerspectiveEditorFocusEvent event); void onPerspectiveEditorHidden(@Observes PlaceHiddenEvent event); static final String PERSPECTIVE_ID; }
@Test public void testOnLayoutEditorFocus() { reset(uberfireDocks); perspective.onPerspectiveEditorFocus(new PerspectiveEditorFocusEvent(layoutEditor)); verify(uberfireDocks).add(perspective.componentPaletteDock); verify(uberfireDocks).open(perspective.componentPaletteDock); verify(uberfireDocks).show(UberfireDockPosition.WEST, ContentManagerPerspective.PERSPECTIVE_ID); }