Package com.vaadin.copilot
Class FlowUtil
java.lang.Object
com.vaadin.copilot.FlowUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Map<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.static List<Class<? extends HasElement>>
getViewChain
(VaadinSession session, int uiId) Returns the view chain for the given UI.
-
Constructor Details
-
FlowUtil
public FlowUtil()
-
-
Method Details
-
findActiveJavaFiles
public static Map<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
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
-