Package com.vaadin.copilot.javarewriter
Class JavaRewriterCopyPasteHandler
java.lang.Object
com.vaadin.copilot.javarewriter.JavaRewriterCopyPasteHandler
Handles the copy & paste functionality for flow components.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCopiedJavaComponent
(ComponentTypeAndSourceLocation componentTypeAndSourceLocation) Collects required data for copying and pasting a component
-
Constructor Details
-
JavaRewriterCopyPasteHandler
-
-
Method Details
-
getCopiedJavaComponent
public JavaComponent getCopiedJavaComponent(ComponentTypeAndSourceLocation componentTypeAndSourceLocation) Collects required data for copying and pasting a component- Parameters:
componentTypeAndSourceLocation
- Component type and source location with children info included- Returns:
- JavaComponent that will be used for pasting.
-