@Test public void buildPerspectiveTest() { final PerspectiveDefinition perspectiveDefinition = perspective.buildPerspective(); assertEquals(ArchetypeManagementPerspective.NAME, perspectiveDefinition.getName()); assertEquals(1, perspectiveDefinition.getRoot().getParts().size()); assertTrue(perspectiveDefinition.getRoot().getParts().contains( new PartDefinitionImpl(new DefaultPlaceRequest(ArchetypeManagementScreenPresenter.IDENTIFIER)))); }
@Perspective public PerspectiveDefinition buildPerspective() { final PerspectiveDefinition perspective = new PerspectiveDefinitionImpl(StaticWorkbenchPanelPresenter.class.getName()); perspective.setName(NAME); perspective.getRoot() .addPart(new PartDefinitionImpl(new DefaultPlaceRequest(ArchetypeManagementScreenPresenter.IDENTIFIER))); return perspective; }
ArchetypeManagementPerspective { @Perspective public PerspectiveDefinition buildPerspective() { final PerspectiveDefinition perspective = new PerspectiveDefinitionImpl(StaticWorkbenchPanelPresenter.class.getName()); perspective.setName(NAME); perspective.getRoot() .addPart(new PartDefinitionImpl(new DefaultPlaceRequest(ArchetypeManagementScreenPresenter.IDENTIFIER))); return perspective; } }
ArchetypeManagementPerspective { @Perspective public PerspectiveDefinition buildPerspective() { final PerspectiveDefinition perspective = new PerspectiveDefinitionImpl(StaticWorkbenchPanelPresenter.class.getName()); perspective.setName(NAME); perspective.getRoot() .addPart(new PartDefinitionImpl(new DefaultPlaceRequest(ArchetypeManagementScreenPresenter.IDENTIFIER))); return perspective; }  }
ArchetypeManagementPerspective { @Perspective public PerspectiveDefinition buildPerspective() { final PerspectiveDefinition perspective = new PerspectiveDefinitionImpl(StaticWorkbenchPanelPresenter.class.getName()); perspective.setName(NAME); perspective.getRoot() .addPart(new PartDefinitionImpl(new DefaultPlaceRequest(ArchetypeManagementScreenPresenter.IDENTIFIER))); return perspective; }  @Perspective PerspectiveDefinition buildPerspective(); }
ArchetypeManagementPerspective { @Perspective public PerspectiveDefinition buildPerspective() { final PerspectiveDefinition perspective = new PerspectiveDefinitionImpl(StaticWorkbenchPanelPresenter.class.getName()); perspective.setName(NAME); perspective.getRoot() .addPart(new PartDefinitionImpl(new DefaultPlaceRequest(ArchetypeManagementScreenPresenter.IDENTIFIER))); return perspective; }  @Perspective PerspectiveDefinition buildPerspective(); static final String IDENTIFIER; static final String NAME; }