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(JavaFileSourceProvider javaFileSourceProvider, ComponentTypeAndSourceLocation componentTypeAndSourceLocation, ExceptionReportCreator exceptionReportCreator, ComponentSourceFinder sourceFinder) Collects required data for copying and pasting a component
-
Constructor Details
-
JavaRewriterCopyPasteHandler
public JavaRewriterCopyPasteHandler()
-
-
Method Details
-
getCopiedJavaComponent
public JavaComponent getCopiedJavaComponent(JavaFileSourceProvider javaFileSourceProvider, ComponentTypeAndSourceLocation componentTypeAndSourceLocation, ExceptionReportCreator exceptionReportCreator, ComponentSourceFinder sourceFinder) throws IOException Collects required data for copying and pasting a component- Parameters:
componentTypeAndSourceLocation- Component type and source location with children info includedsourceFinder- Component source finder to access sibling sources of given component- Returns:
- JavaComponent that will be used for pasting.
- Throws:
IOException- exception happens when file read fails
-