Package com.vaadin.copilot
Class FlowUtil
java.lang.Object
com.vaadin.copilot.FlowUtil
-
Method Summary
Modifier and TypeMethodDescriptionfindActiveJavaFiles(ProjectManager projectManager, int uiId) Finds all Java files that are used to create the current component tree for the given ui.getViewChain(com.vaadin.flow.server.VaadinSession session, int uiId) Returns the view chain for the given UI.
-
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 manageruiId- 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 sessionuiId- the id for the UI, inside the given session- Returns:
- a list of the view classes currently being shown in the UI
-