test_class.declarator: view
test_class.modifier: @Mock
test_class.original_string: @Mock
      TargetPerspectiveEditor.View view;
test_class.type: TargetPerspectiveEditor.View
test_class.var_name: view
test_class.declarator: perspectivePluginManager
test_class.modifier: @Mock
test_class.original_string: @Mock
      PerspectivePluginManager perspectivePluginManager;
test_class.type: PerspectivePluginManager
test_class.var_name: perspectivePluginManager
test_class.declarator: perspectiveDropDown
test_class.modifier: @Mock
test_class.original_string: @Mock
      PerspectiveDropDown perspectiveDropDown;
test_class.type: PerspectiveDropDown
test_class.var_name: perspectiveDropDown
test_class.declarator: perspectiveTreeProvider
test_class.modifier: @Mock
test_class.original_string: @Mock
      PerspectiveTreeProvider perspectiveTreeProvider;
test_class.type: PerspectiveTreeProvider
test_class.var_name: perspectiveTreeProvider
test_class.declarator: updateCommand
test_class.modifier: @Mock
test_class.original_string: @Mock
      Command updateCommand;
test_class.type: Command
test_class.var_name: updateCommand
test_class.declarator: presenter
test_class.original_string: TargetPerspectiveEditor presenter;
test_class.type: TargetPerspectiveEditor
test_class.var_name: presenter
test_class.declarator: NAV_TREE = new NavTreeBuilder()
              .group("root", "root", "root", true)
                  .group("level1a", "level1a", "level1a", true)
                  .endGroup()
                  .group("level1b", "level1b", "level1b", true)
                  .endGroup()
                  .group("levelnull", null, null, true)
                      .group("level2a", "level2a", "level2a", true)
                      .endGroup()
                  .endGroup()
              .build()
test_class.original_string: NavTree NAV_TREE = new NavTreeBuilder()
              .group("root", "root", "root", true)
                  .group("level1a", "level1a", "level1a", true)
                  .endGroup()
                  .group("level1b", "level1b", "level1b", true)
                  .endGroup()
                  .group("levelnull", null, null, true)
                      .group("level2a", "level2a", "level2a", true)
                      .endGroup()
                  .endGroup()
              .build();
test_class.type: NavTree
test_class.var_name: NAV_TREE
test_class.file: dashbuilder-client/dashbuilder-navigation-client/src/test/java/org/dashbuilder/client/navigation/widget/editor/TargetPerspectiveEditorTest.java
test_class.identifier: TargetPerspectiveEditorTest
test_case.body: @Test
      public void testPerspectiveName() {
          when(perspectivePluginManager.isRuntimePerspective("A.1")).thenReturn(true);
          when(perspectiveTreeProvider.getPerspectiveName("B.1")).thenReturn("Pretty");
  
          assertEquals(presenter.getPerspectiveName("A.1"), "A.1");
          assertEquals(presenter.getPerspectiveName("B.1"), "Pretty");
      }
test_case.class_method_signature: TargetPerspectiveEditorTest.testPerspectiveName()
test_case.full_signature: @Test public void testPerspectiveName()
test_case.identifier: testPerspectiveName
test_case.invocations: thenReturn when isRuntimePerspective thenReturn when getPerspectiveName assertEquals getPerspectiveName assertEquals getPerspectiveName
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testPerspectiveName()
focal_class.declarator: view
focal_class.original_string: View view;
focal_class.type: View
focal_class.var_name: view
focal_class.declarator: navGroupId
focal_class.original_string: String navGroupId;
focal_class.type: String
focal_class.var_name: navGroupId
focal_class.declarator: perspectiveDropDown
focal_class.original_string: PerspectiveDropDown perspectiveDropDown;
focal_class.type: PerspectiveDropDown
focal_class.var_name: perspectiveDropDown
focal_class.declarator: perspectivePluginManager
focal_class.original_string: PerspectivePluginManager perspectivePluginManager;
focal_class.type: PerspectivePluginManager
focal_class.var_name: perspectivePluginManager
focal_class.declarator: perspectiveTreeProvider
focal_class.original_string: PerspectiveTreeProvider perspectiveTreeProvider;
focal_class.type: PerspectiveTreeProvider
focal_class.var_name: perspectiveTreeProvider
focal_class.declarator: navItemList
focal_class.original_string: List<NavItem> navItemList;
focal_class.type: List<NavItem>
focal_class.var_name: navItemList
focal_class.declarator: onUpdateCommand
focal_class.original_string: Command onUpdateCommand;
focal_class.type: Command
focal_class.var_name: onUpdateCommand
focal_class.file: dashbuilder-client/dashbuilder-navigation-client/src/main/java/org/dashbuilder/client/navigation/widget/editor/TargetPerspectiveEditor.java
focal_class.identifier: TargetPerspectiveEditor
focal_class.interfaces: implements IsElement, PerspectiveNameProvider
focal_class.class_method_signature: TargetPerspectiveEditor.TargetPerspectiveEditor(View view,
                                     PerspectiveDropDown perspectiveDropDown,
                                     PerspectivePluginManager perspectivePluginManager,
                                     PerspectiveTreeProvider perspectiveTreeProvider)
focal_class.full_signature: @Inject public  TargetPerspectiveEditor(View view,
                                     PerspectiveDropDown perspectiveDropDown,
                                     PerspectivePluginManager perspectivePluginManager,
                                     PerspectiveTreeProvider perspectiveTreeProvider)
focal_class.identifier: TargetPerspectiveEditor
focal_class.modifiers: @Inject public
focal_class.parameters: (View view,
                                     PerspectiveDropDown perspectiveDropDown,
                                     PerspectivePluginManager perspectivePluginManager,
                                     PerspectiveTreeProvider perspectiveTreeProvider)
focal_class.signature:  TargetPerspectiveEditor(View view,
                                     PerspectiveDropDown perspectiveDropDown,
                                     PerspectivePluginManager perspectivePluginManager,
                                     PerspectiveTreeProvider perspectiveTreeProvider)
focal_class.class_method_signature: TargetPerspectiveEditor.getElement()
focal_class.full_signature: @Override public HTMLElement getElement()
focal_class.identifier: getElement
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: HTMLElement
focal_class.signature: HTMLElement getElement()
focal_class.class_method_signature: TargetPerspectiveEditor.setNavItemList(List<NavItem> navItemList)
focal_class.full_signature: public void setNavItemList(List<NavItem> navItemList)
focal_class.identifier: setNavItemList
focal_class.modifiers: public
focal_class.parameters: (List<NavItem> navItemList)
focal_class.return: void
focal_class.signature: void setNavItemList(List<NavItem> navItemList)
focal_class.class_method_signature: TargetPerspectiveEditor.setOnUpdateCommand(Command onUpdateCommand)
focal_class.full_signature: public void setOnUpdateCommand(Command onUpdateCommand)
focal_class.identifier: setOnUpdateCommand
focal_class.modifiers: public
focal_class.parameters: (Command onUpdateCommand)
focal_class.return: void
focal_class.signature: void setOnUpdateCommand(Command onUpdateCommand)
focal_class.class_method_signature: TargetPerspectiveEditor.setPerspectiveIdsExcluded(Set<String> perspectiveIdsExcluded)
focal_class.full_signature: public void setPerspectiveIdsExcluded(Set<String> perspectiveIdsExcluded)
focal_class.identifier: setPerspectiveIdsExcluded
focal_class.modifiers: public
focal_class.parameters: (Set<String> perspectiveIdsExcluded)
focal_class.return: void
focal_class.signature: void setPerspectiveIdsExcluded(Set<String> perspectiveIdsExcluded)
focal_class.class_method_signature: TargetPerspectiveEditor.setPerspectiveId(String perspectiveId)
focal_class.full_signature: public void setPerspectiveId(String perspectiveId)
focal_class.identifier: setPerspectiveId
focal_class.modifiers: public
focal_class.parameters: (String perspectiveId)
focal_class.return: void
focal_class.signature: void setPerspectiveId(String perspectiveId)
focal_class.class_method_signature: TargetPerspectiveEditor.getPerspectiveId()
focal_class.full_signature: public String getPerspectiveId()
focal_class.identifier: getPerspectiveId
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getPerspectiveId()
focal_class.class_method_signature: TargetPerspectiveEditor.getPerspectiveName(String perspectiveId)
focal_class.full_signature: @Override public String getPerspectiveName(String perspectiveId)
focal_class.identifier: getPerspectiveName
focal_class.modifiers: @Override public
focal_class.parameters: (String perspectiveId)
focal_class.return: String
focal_class.signature: String getPerspectiveName(String perspectiveId)
focal_class.class_method_signature: TargetPerspectiveEditor.setNavGroupEnabled(boolean enabled)
focal_class.full_signature: public void setNavGroupEnabled(boolean enabled)
focal_class.identifier: setNavGroupEnabled
focal_class.modifiers: public
focal_class.parameters: (boolean enabled)
focal_class.return: void
focal_class.signature: void setNavGroupEnabled(boolean enabled)
focal_class.class_method_signature: TargetPerspectiveEditor.setNavGroupId(String navGroupId)
focal_class.full_signature: public void setNavGroupId(String navGroupId)
focal_class.identifier: setNavGroupId
focal_class.modifiers: public
focal_class.parameters: (String navGroupId)
focal_class.return: void
focal_class.signature: void setNavGroupId(String navGroupId)
focal_class.class_method_signature: TargetPerspectiveEditor.getNavGroupId()
focal_class.full_signature: public String getNavGroupId()
focal_class.identifier: getNavGroupId
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getNavGroupId()
focal_class.class_method_signature: TargetPerspectiveEditor.show()
focal_class.full_signature: public void show()
focal_class.identifier: show
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void show()
focal_class.class_method_signature: TargetPerspectiveEditor.clear()
focal_class.full_signature: public void clear()
focal_class.identifier: clear
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clear()
focal_class.class_method_signature: TargetPerspectiveEditor.updateNavGroups()
focal_class.full_signature: private void updateNavGroups()
focal_class.identifier: updateNavGroups
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void updateNavGroups()
focal_class.class_method_signature: TargetPerspectiveEditor.updateNavGroups(List<NavItem> navItemList)
focal_class.full_signature: private void updateNavGroups(List<NavItem> navItemList)
focal_class.identifier: updateNavGroups
focal_class.modifiers: private
focal_class.parameters: (List<NavItem> navItemList)
focal_class.return: void
focal_class.signature: void updateNavGroups(List<NavItem> navItemList)
focal_class.class_method_signature: TargetPerspectiveEditor.addNavGroup(NavItem navItem)
focal_class.full_signature: private void addNavGroup(NavItem navItem)
focal_class.identifier: addNavGroup
focal_class.modifiers: private
focal_class.parameters: (NavItem navItem)
focal_class.return: void
focal_class.signature: void addNavGroup(NavItem navItem)
focal_class.class_method_signature: TargetPerspectiveEditor.calculateFullPath(NavItem navItem)
focal_class.full_signature: private String calculateFullPath(NavItem navItem)
focal_class.identifier: calculateFullPath
focal_class.modifiers: private
focal_class.parameters: (NavItem navItem)
focal_class.return: String
focal_class.signature: String calculateFullPath(NavItem navItem)
focal_class.class_method_signature: TargetPerspectiveEditor.onGroupSelected(String id)
focal_class.full_signature: public void onGroupSelected(String id)
focal_class.identifier: onGroupSelected
focal_class.modifiers: public
focal_class.parameters: (String id)
focal_class.return: void
focal_class.signature: void onGroupSelected(String id)
focal_class.class_method_signature: TargetPerspectiveEditor.onPerspectiveChanged()
focal_class.full_signature: public void onPerspectiveChanged()
focal_class.identifier: onPerspectiveChanged
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void onPerspectiveChanged()
focal_method.body: @Override
      public String getPerspectiveName(String perspectiveId) {
          if (perspectivePluginManager.isRuntimePerspective(perspectiveId)) {
              return perspectiveId;
          }
          return perspectiveTreeProvider.getPerspectiveName(perspectiveId);
      }
focal_method.class_method_signature: TargetPerspectiveEditor.getPerspectiveName(String perspectiveId)
focal_method.full_signature: @Override public String getPerspectiveName(String perspectiveId)
focal_method.identifier: getPerspectiveName
focal_method.invocations: isRuntimePerspective getPerspectiveName
focal_method.modifiers: @Override public
focal_method.parameters: (String perspectiveId)
focal_method.return: String
focal_method.signature: String getPerspectiveName(String perspectiveId)