We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.copilot.
Package com.vaadin.copilot
Class FlowUtil
java.lang.Object
com.vaadin.copilot.FlowUtil
-
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.
findAllComponents
(ProjectManager projectManager, int uiId) static Integer
static List<Class<? extends HasElement>>
getViewChain
(VaadinSession session, int uiId) Returns the view chain for the given UI.
-
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 sessionReturns:
a map of the locations and the corresponding Java files
-
findAllComponents
public static Map<Component,ComponentTypeAndSourceLocation> findAllComponents(ProjectManager projectManager, int uiId) -
getViewChain
Returns the view chain for the given UI.
Parameters:
session
- the vaadin sessionuiId
- the id for the UI, inside the given sessionReturns:
a list of the view classes currently being shown in the UI
-
getNodeId
-