Class FlowUtil

java.lang.Object
com.vaadin.copilot.FlowUtil

public class FlowUtil extends Object
  • Method Details

    • findActiveJavaFiles

      public static Map<com.vaadin.flow.component.internal.ComponentTracker.Location,File> findActiveJavaFiles(ProjectManager projectManager, int uiId)
      Finds all Java files that are used to create the current component tree for the given ui.
      Parameters:
      projectManager - the project manager
      uiId - the id for the UI, inside the given session
      Returns:
      a map of the locations and the corresponding Java files
    • getViewChain

      public static List<Class<? extends com.vaadin.flow.component.HasElement>> getViewChain(com.vaadin.flow.server.VaadinSession session, int uiId)
      Returns the view chain for the given UI.
      Parameters:
      session - the vaadin session
      uiId - the id for the UI, inside the given session
      Returns:
      a list of the view classes currently being shown in the UI