Package org.drools.workbench.screens.globals.model

Examples of org.drools.workbench.screens.globals.model.GlobalsModel


        result.addMessage( "Created Globals '" + assetName + "'",
                           ConversionMessageType.INFO );
    }

    private GlobalsModel makeGlobalsModel( final List<Global> globals ) {
        final GlobalsModel model = new GlobalsModel();
        for ( Global global : globals ) {
            model.getGlobals().add( new org.drools.workbench.screens.globals.model.Global( global.getIdentifier(),
                                                                                           global.getClassName() ) );
        }
        return model;
    }
View Full Code Here


    @Override
    public GlobalsEditorContent loadContent( final Path path ) {
        try {
            //De-serialize model
            final GlobalsModel model = load( path );
            final ProjectDataModelOracle oracle = dataModelService.getProjectDataModel( path );
            final String[] fullyQualifiedClassNames = new String[ oracle.getProjectModelFields().size() ];
            oracle.getProjectModelFields().keySet().toArray( fullyQualifiedClassNames );

            //Signal opening to interested parties
View Full Code Here

    public GlobalsModel unmarshal( final String content ) {
        //De-serialize model
        final List<Pair<String, String>> parsedGlobalsContent = GlobalsParser.parseGlobals( content );
        final List<Global> globals = makeGlobals( parsedGlobalsContent );
        final GlobalsModel model = new GlobalsModel();
        model.setGlobals( globals );

        //De-serialize Package name
        final String packageName = PackageNameParser.parsePackageName( content );
        model.setPackageName( packageName );
        return model;
    }
View Full Code Here

    @Override
    public GlobalsEditorContent loadContent( final Path path ) {
        try {
            //De-serialize model
            final GlobalsModel model = load( path );
            final ProjectDataModelOracle oracle = dataModelService.getProjectDataModel( path );
            final String[] fullyQualifiedClassNames = new String[ oracle.getProjectModelFields().size() ];
            oracle.getProjectModelFields().keySet().toArray( fullyQualifiedClassNames );

            //Signal opening to interested parties
View Full Code Here

    @Override
    public GlobalsEditorContent loadContent( final Path path ) {
        try {
            //De-serialize model
            final GlobalsModel model = load( path );
            final PackageDataModelOracle oracle = dataModelService.getDataModel( path );

            return new GlobalsEditorContent( model,
                                             oracle );
View Full Code Here

    public GlobalsModel unmarshal( final String content ) {
        //De-serialize model
        final List<Pair<String, String>> parsedGlobalsContent = GlobalsParser.parseGlobals( content );
        final List<Global> globals = makeGlobals( parsedGlobalsContent );
        final GlobalsModel model = new GlobalsModel();
        model.setGlobals( globals );

        //De-serialize Package name
        final String packageName = PackageNameParser.parsePackageName( content );
        model.setPackageName( packageName );
        return model;
    }
View Full Code Here

TOP

Related Classes of org.drools.workbench.screens.globals.model.GlobalsModel

Copyright © 2018 www.massapicom. 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.