Package org.drools.workbench.screens.drltext.service

Examples of org.drools.workbench.screens.drltext.service.DRLTextEditorService.copy()


        final CreationalContext cc = beanManager.createCreationalContext( drlTextEditorServiceBean );
        final DRLTextEditorService drlTextEditorService = (DRLTextEditorService) beanManager.getReference( drlTextEditorServiceBean,
                                                                                                           DRLTextEditorService.class, cc );

        //Copy
        drlTextEditorService.copy( makePath( "/ProjectStructureValid/src/main/resources/org/kie/test/rule1.drl" ), "copiedFromRule1.drl", "copied" );
        URL testUrl = this.getClass().getResource( "/ProjectStructureValid/src/main/resources/org/kie/test/copiedFromRule1.drl" );
        assertNotNull( testUrl );

        //Rename
        drlTextEditorService.rename( makePath( "/ProjectStructureValid/src/main/resources/org/kie/test/copiedFromRule1.drl" ), "renamedFromRule1.drl", "renamed" );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.