test_class.declarator: viewM
test_class.modifier: @Mock
test_class.original_string: @Mock
      PerspectivesExplorer.View viewM;
test_class.type: PerspectivesExplorer.View
test_class.var_name: viewM
test_class.declarator: perspectivePluginManagerM
test_class.modifier: @Mock
test_class.original_string: @Mock
      PerspectivePluginManager perspectivePluginManagerM;
test_class.type: PerspectivePluginManager
test_class.var_name: perspectivePluginManagerM
test_class.declarator: placeManagerM
test_class.modifier: @Mock
test_class.original_string: @Mock
      PlaceManager placeManagerM;
test_class.type: PlaceManager
test_class.var_name: placeManagerM
test_class.declarator: pluginControllerM
test_class.modifier: @Mock
test_class.original_string: @Mock
      PluginController pluginControllerM;
test_class.type: PluginController
test_class.var_name: pluginControllerM
test_class.declarator: newPluginPopUpM
test_class.modifier: @Mock
test_class.original_string: @Mock
      NewPluginPopUp newPluginPopUpM;
test_class.type: NewPluginPopUp
test_class.var_name: newPluginPopUpM
test_class.declarator: i18nM
test_class.modifier: @Mock
test_class.original_string: @Mock
      ContentManagerI18n i18nM;
test_class.type: ContentManagerI18n
test_class.var_name: i18nM
test_class.declarator: perspectivesExplorer
test_class.original_string: PerspectivesExplorer perspectivesExplorer;
test_class.type: PerspectivesExplorer
test_class.var_name: perspectivesExplorer
test_class.declarator: a = mkPlugin("a")
test_class.original_string: Plugin a = mkPlugin("a"), b = mkPlugin("B"), c = mkPlugin("cEE");
test_class.type: Plugin
test_class.var_name: a
test_class.declarator: pluginList = Arrays.asList(b, c, a)
test_class.original_string: List<Plugin> pluginList = Arrays.asList(b, c, a);
test_class.type: List<Plugin>
test_class.var_name: pluginList
test_class.file: dashbuilder-client/dashbuilder-cms-client/src/test/java/org/dashbuilder/client/cms/widget/PerspectivesExplorerTest.java
test_class.identifier: PerspectivesExplorerTest
test_case.body: @Test
      public void testPerspectiveListEmpty() {
          pluginList = new ArrayList<>();
          perspectivesExplorer.show();
  
          verify(viewM).clear();
          verify(viewM).showEmpty(anyString());
      }
test_case.class_method_signature: PerspectivesExplorerTest.testPerspectiveListEmpty()
test_case.full_signature: @Test public void testPerspectiveListEmpty()
test_case.identifier: testPerspectiveListEmpty
test_case.invocations: show clear verify showEmpty verify anyString
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testPerspectiveListEmpty()
focal_class.declarator: view
focal_class.original_string: View view;
focal_class.type: View
focal_class.var_name: view
focal_class.declarator: perspectivePluginManager
focal_class.original_string: PerspectivePluginManager perspectivePluginManager;
focal_class.type: PerspectivePluginManager
focal_class.var_name: perspectivePluginManager
focal_class.declarator: placeManager
focal_class.original_string: PlaceManager placeManager;
focal_class.type: PlaceManager
focal_class.var_name: placeManager
focal_class.declarator: pluginController
focal_class.original_string: PluginController pluginController;
focal_class.type: PluginController
focal_class.var_name: pluginController
focal_class.declarator: newPluginPopUp
focal_class.original_string: NewPluginPopUp newPluginPopUp;
focal_class.type: NewPluginPopUp
focal_class.var_name: newPluginPopUp
focal_class.declarator: i18n
focal_class.original_string: ContentManagerI18n i18n;
focal_class.type: ContentManagerI18n
focal_class.var_name: i18n
focal_class.declarator: onExpandCommand
focal_class.original_string: Command onExpandCommand;
focal_class.type: Command
focal_class.var_name: onExpandCommand
focal_class.declarator: expanded
focal_class.original_string: boolean expanded;
focal_class.type: boolean
focal_class.var_name: expanded
focal_class.file: dashbuilder-client/dashbuilder-cms-client/src/main/java/org/dashbuilder/client/cms/widget/PerspectivesExplorer.java
focal_class.identifier: PerspectivesExplorer
focal_class.interfaces: implements IsElement
focal_class.class_method_signature: PerspectivesExplorer.PerspectivesExplorer(View view,
                                  PerspectivePluginManager perspectivePluginManager,
                                  PluginController pluginController,
                                  NewPluginPopUp newPluginPopUp,
                                  PlaceManager placeManager,
                                  ContentManagerI18n i18n)
focal_class.full_signature: @Inject public  PerspectivesExplorer(View view,
                                  PerspectivePluginManager perspectivePluginManager,
                                  PluginController pluginController,
                                  NewPluginPopUp newPluginPopUp,
                                  PlaceManager placeManager,
                                  ContentManagerI18n i18n)
focal_class.identifier: PerspectivesExplorer
focal_class.modifiers: @Inject public
focal_class.parameters: (View view,
                                  PerspectivePluginManager perspectivePluginManager,
                                  PluginController pluginController,
                                  NewPluginPopUp newPluginPopUp,
                                  PlaceManager placeManager,
                                  ContentManagerI18n i18n)
focal_class.signature:  PerspectivesExplorer(View view,
                                  PerspectivePluginManager perspectivePluginManager,
                                  PluginController pluginController,
                                  NewPluginPopUp newPluginPopUp,
                                  PlaceManager placeManager,
                                  ContentManagerI18n i18n)
focal_class.class_method_signature: PerspectivesExplorer.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: PerspectivesExplorer.setOnExpandCommand(Command onExpandCommand)
focal_class.full_signature: public void setOnExpandCommand(Command onExpandCommand)
focal_class.identifier: setOnExpandCommand
focal_class.modifiers: public
focal_class.parameters: (Command onExpandCommand)
focal_class.return: void
focal_class.signature: void setOnExpandCommand(Command onExpandCommand)
focal_class.class_method_signature: PerspectivesExplorer.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: PerspectivesExplorer.onPerspectiveClick(Plugin plugin)
focal_class.full_signature: public void onPerspectiveClick(Plugin plugin)
focal_class.identifier: onPerspectiveClick
focal_class.modifiers: public
focal_class.parameters: (Plugin plugin)
focal_class.return: void
focal_class.signature: void onPerspectiveClick(Plugin plugin)
focal_class.class_method_signature: PerspectivesExplorer.isExpanded()
focal_class.full_signature: public boolean isExpanded()
focal_class.identifier: isExpanded
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isExpanded()
focal_class.class_method_signature: PerspectivesExplorer.expand()
focal_class.full_signature: public void expand()
focal_class.identifier: expand
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void expand()
focal_class.class_method_signature: PerspectivesExplorer.collapse()
focal_class.full_signature: public void collapse()
focal_class.identifier: collapse
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void collapse()
focal_class.class_method_signature: PerspectivesExplorer.expandOrCollapse()
focal_class.full_signature: public void expandOrCollapse()
focal_class.identifier: expandOrCollapse
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void expandOrCollapse()
focal_class.class_method_signature: PerspectivesExplorer.setMaximized(boolean maximized)
focal_class.full_signature: public void setMaximized(boolean maximized)
focal_class.identifier: setMaximized
focal_class.modifiers: public
focal_class.parameters: (boolean maximized)
focal_class.return: void
focal_class.signature: void setMaximized(boolean maximized)
focal_class.class_method_signature: PerspectivesExplorer.createNewPerspective()
focal_class.full_signature: public void createNewPerspective()
focal_class.identifier: createNewPerspective
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void createNewPerspective()
focal_class.class_method_signature: PerspectivesExplorer.onPerspectivePluginsChanged(@Observes final PerspectivePluginsChangedEvent event)
focal_class.full_signature: public void onPerspectivePluginsChanged(@Observes final PerspectivePluginsChangedEvent event)
focal_class.identifier: onPerspectivePluginsChanged
focal_class.modifiers: public
focal_class.parameters: (@Observes final PerspectivePluginsChangedEvent event)
focal_class.return: void
focal_class.signature: void onPerspectivePluginsChanged(@Observes final PerspectivePluginsChangedEvent event)
focal_method.body: public void show() {
          view.clear();
          view.setTitle(i18n.capitalizeFirst(i18n.getPerspectivesResourceName()));
          view.setNewMenuName(i18n.getContentExplorerNew());
          view.setNewMenuVisible(pluginController.canCreatePerspectives());
          view.setPerspectiveName(i18n.capitalizeFirst(i18n.getPerspectiveResourceName()));
  
          perspectivePluginManager.getPerspectivePlugins(perspectivePlugins -> {
  
              List<Plugin> filteredPlugins = perspectivePlugins.stream()
                      .filter(pluginController::canRead)
                      .sorted((p1, p2) -> p1.getName().compareToIgnoreCase(p2.getName()))
                      .collect(Collectors.toList());
  
  
              if (filteredPlugins.isEmpty()) {
                  view.showEmpty(i18n.getNoPerspectives());
              } else {
                  filteredPlugins.forEach(p -> view.addPerspective(p.getName(), () -> onPerspectiveClick(p)));
              }
          });
  
          this.expand();
      }
focal_method.class_method_signature: PerspectivesExplorer.show()
focal_method.full_signature: public void show()
focal_method.identifier: show
focal_method.invocations: clear setTitle capitalizeFirst getPerspectivesResourceName setNewMenuName getContentExplorerNew setNewMenuVisible canCreatePerspectives setPerspectiveName capitalizeFirst getPerspectiveResourceName getPerspectivePlugins collect sorted filter stream compareToIgnoreCase getName getName toList isEmpty showEmpty getNoPerspectives forEach addPerspective getName onPerspectiveClick expand
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void show()