Package org.kie.workbench.common.services.datamodel.oracle

Examples of org.kie.workbench.common.services.datamodel.oracle.PackageDataModelOracle


    public FactModelContent loadContent( final Path path ) {
        try {
            final FactModels factModels = load( path );
            final List<FactMetaModel> allAvailableTypes = loadAllAvailableTypes( path );
            allAvailableTypes.addAll( factModels.getModels() );
            final PackageDataModelOracle oracle = dataModelService.getDataModel( path );
            return new FactModelContent( factModels,
                                         allAvailableTypes,
                                         oracle );

        } catch ( Exception e ) {
View Full Code Here


    @Override
    public DrlModelContent loadContent( final Path path ) {
        try {
            final String drl = load( path );
            final PackageDataModelOracle oracle = dataModelService.getDataModel( path );

            return new DrlModelContent( drl,
                                        oracle );

        } catch ( Exception e ) {
View Full Code Here

    @Override
    public DrlModelContent loadContent( final Path path ) {
        try {
            final String drl = load( path );
            final PackageDataModelOracle oracle = dataModelService.getDataModel( path );

            return new DrlModelContent( drl,
                                        oracle );

        } catch ( Exception e ) {
View Full Code Here

        return new RemoteCallback<DrlModelContent>() {

            @Override
            public void callback( final DrlModelContent content ) {
                final String drl = content.getDrl();
                final PackageDataModelOracle oracle = content.getDataModel();
                if ( drl == null || drl.isEmpty() ) {
                    view.setContent( null,
                                     oracle );
                } else {
                    view.setContent( drl,
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 );

        } catch ( Exception e ) {
View Full Code Here

        return new RemoteCallback<DrlModelContent>() {

            @Override
            public void callback( final DrlModelContent content ) {
                final String drl = content.getDrl();
                final PackageDataModelOracle oracle = content.getDataModel();
                if ( drl == null || drl.isEmpty() ) {
                    view.setContent( null,
                                     oracle );
                } else {
                    view.setContent( drl,
View Full Code Here

    @Override
    public GuidedTemplateEditorContent loadContent( final Path path ) {
        try {
            final TemplateModel model = load( path );
            final PackageDataModelOracle oracle = dataModelService.getDataModel( path );
            return new GuidedTemplateEditorContent( oracle,
                                                    model );

        } catch ( Exception e ) {
            throw ExceptionUtilities.handleException( e );
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 );

        } catch ( Exception e ) {
View Full Code Here

    public FactModelContent loadContent( final Path path ) {
        try {
            final FactModels factModels = load( path );
            final List<FactMetaModel> allAvailableTypes = loadAllAvailableTypes( path );
            allAvailableTypes.addAll( factModels.getModels() );
            final PackageDataModelOracle oracle = dataModelService.getDataModel( path );
            return new FactModelContent( factModels,
                                         allAvailableTypes,
                                         oracle );

        } catch ( Exception e ) {
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 );

        } catch ( Exception e ) {
View Full Code Here

TOP

Related Classes of org.kie.workbench.common.services.datamodel.oracle.PackageDataModelOracle

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.