Examples of WorkspaceManager


Examples of org.drools.guvnor.client.admin.WorkspaceManager

                tabbedPanel.add(constants.RepositoryConfig(),
                        new RepoConfigManager());
                break;
            case 9:
                tabbedPanel.add(constants.Workspaces(),
                        new WorkspaceManager());
                break;
        }
    }
View Full Code Here

Examples of org.drools.guvnor.client.admin.WorkspaceManager

                                                                                                         new RepoConfigManager(),
                                                                                                         REPOCONFIG );
                break;
            case 9 :
                if ( !explorerViewCenterPanel.showIfOpen( WORKSPACES ) ) explorerViewCenterPanel.addTab( constants.Workspaces(),
                                                                                                         new WorkspaceManager(),
                                                                                                         WORKSPACES );
                break;
        }

    }
View Full Code Here

Examples of org.drools.guvnor.client.explorer.navigation.admin.widget.WorkspaceManager

                tabbedPanel.add( constants.RepositoryConfig(),
                                 new RepoConfigManager() );
                break;
            case 9 :
                tabbedPanel.add( constants.Workspaces(),
                                 new WorkspaceManager() );
                break;
        }
    }
View Full Code Here

Examples of org.drools.guvnor.client.explorer.navigation.admin.widget.WorkspaceManager

                tabbedPanel.add( constants.RepositoryConfig(),
                                 new RepoConfigManager() );
                break;
            case 9 :
                tabbedPanel.add( constants.Workspaces(),
                                 new WorkspaceManager() );
                break;
        }
    }
View Full Code Here

Examples of org.drools.guvnor.client.explorer.navigation.admin.widget.WorkspaceManager

                tabbedPanel.add( constants.RepositoryConfig(),
                                 new RepoConfigManager() );
                break;
            case 9 :
                tabbedPanel.add( constants.Workspaces(),
                                 new WorkspaceManager() );
                break;
        }
    }
View Full Code Here

Examples of org.openquark.cal.services.WorkspaceManager

            System.err.println(messageLogger.toString());
        }

        final ExecutionContext executionContext = calServices.getWorkspaceManager().makeExecutionContextWithDefaultProperties();

        WorkspaceManager workspaceManager = calServices.getWorkspaceManager();
        Compiler compiler = calServices.getCompiler();
        optimizer_entryPoint = compiler.getEntryPoint(
                EntryPointSpec.make(CAL_Optimizer_internal.Functions.optimize),
                CAL_Optimizer.MODULE_NAME, messageLogger);
        if (messageLogger.getNMessages() > 0) {
            System.err.println(messageLogger.toString());
        }
        optimizer_executor = workspaceManager.makeExecutor(executionContext);
       
        // Initialize preludeTypeConstants
        {
            ModuleTypeInfo moduleTypeInfo = workspaceManager.getModuleTypeInfo(CAL_Prelude.MODULE_NAME);
            preludeTypeConstants = new PreludeTypeConstants(moduleTypeInfo);
            OptimizerHelper.setPreludeTypeConstants(preludeTypeConstants);
        }   
    }
View Full Code Here

Examples of org.openquark.cal.services.WorkspaceManager

    /**
     * Test invoking a non-zero arity run target.
     */
    public void testInvokingNonCAF_lecc () {
        if (test_lecc_machine) {
            WorkspaceManager workspaceManager = leccCALServices.getWorkspaceManager();
            Compiler compiler = leccCALServices.getCompiler();

            CompilerMessageLogger messageLogger = new MessageLogger();
            EntryPoint entryPoint = compiler.getEntryPoint(
                EntryPointSpec.make(QualifiedName.make(CALPlatformTestModuleNames.RuntimeRegression, "nonCAFEntryPoint")),
                CALPlatformTestModuleNames.RuntimeRegression, messageLogger);
            if (messageLogger.getNMessages() > 0) {
                System.err.println(messageLogger.toString());
            }

            final ExecutionContext executionContext = leccCALServices.getWorkspaceManager().makeExecutionContextWithDefaultProperties();

            CALExecutor executor = workspaceManager.makeExecutor(executionContext);
            try {
                Object result = executor.exec(entryPoint, new Object[] { new Integer(1), new Integer(2)});
                assertTrue(((Integer)result).intValue() == 6);
            } catch (CALExecutorException e) {
                fail(e.toString());
View Full Code Here

Examples of org.openquark.cal.services.WorkspaceManager

    /**
     * Test invoking a non-zero arity run target.
     */
    public void testInvokingNonCAF_g () {
        if (test_g_machine) {
            WorkspaceManager workspaceManager = gCALServices.getWorkspaceManager();
            Compiler compiler = gCALServices.getCompiler();

            CompilerMessageLogger messageLogger = new MessageLogger();
            EntryPoint entryPoint = compiler.getEntryPoint(
                EntryPointSpec.make(QualifiedName.make(CALPlatformTestModuleNames.RuntimeRegression, "nonCAFEntryPoint")),
                CALPlatformTestModuleNames.RuntimeRegression, messageLogger);
            if (messageLogger.getNMessages() > 0) {
                System.err.println(messageLogger.toString());
            }

            final ExecutionContext executionContext = gCALServices.getWorkspaceManager().makeExecutionContextWithDefaultProperties();

            CALExecutor executor = workspaceManager.makeExecutor(executionContext);
            try {
                Object result = executor.exec(entryPoint, new Object[] { new Integer(1), new Integer(2)});
                assertTrue(((Integer)result).intValue() == 6);
            } catch (CALExecutorException e) {
                fail(e.toString());
View Full Code Here

Examples of org.openquark.cal.services.WorkspaceManager

        String sourceDefString = comment + " module " + tempModuleName + "; import " + CAL_Prelude.MODULE_NAME + ";";
       
        ModuleSourceDefinition sourceDef = new StringModuleSourceDefinition(tempModuleName, sourceDefString);
       
        // Get the workspace manager and the logger.
        WorkspaceManager workspaceManager = leccCALServices.getWorkspaceManager();
        CompilerMessageLogger logger = new MessageLogger();
       
        // Compile the module.
        workspaceManager.makeModule(sourceDef, logger);
       
        // Remove the module.
        leccCALServices.getWorkspaceManager().removeModule(tempModuleName, new Status("Remove module status."));
       
        // Check that we got an error message of the expected type.
View Full Code Here

Examples of org.openquark.cal.services.WorkspaceManager

       
        AdjunctSource source = new AdjunctSource.FromSourceModel(
                SourceModel.FunctionDefn.Algebraic.make(adjunctUnqualifiedName, Scope.PUBLIC, null, funcExpr));
       

        WorkspaceManager workspaceManager = leccCALServices.getWorkspaceManager();
        CompilerMessageLogger logger = new MessageLogger();
       
       
        // Compile the adjunct definition.       
        EntryPointSpec entryPointSpec = EntryPointSpec.make(qualifiedAdjunctName, new InputPolicy[0], OutputPolicy.DEFAULT_OUTPUT_POLICY);
        workspaceManager.getCompiler().getEntryPoint (source, entryPointSpec, adjunctModuleName,  logger);

        if (logger.getMaxSeverity().compareTo(CompilerMessage.Severity.ERROR) >= 0) {
            fail("Compilation failed: " + logger.getFirstError().getMessage());
        }
       

        // Get the classloader for module with the adjunct we compiled.
        LECCModule module = (LECCModule)workspaceManager.getModuleTypeInfo(adjunctModuleName).getModule();
        CALClassLoader adjunctModuleClassLoader = module.getClassLoader();
       
        // Check that it's an adjunct classloader..
        checkIsAdjunctClassLoader(adjunctModuleClassLoader);
       
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.