Package org.uberfire.workbench.events

Examples of org.uberfire.workbench.events.ResourceOpenedEvent


            DataModelOracleUtilities.populateDataModel( oracle,
                                                        dataModel,
                                                        consumedFQCNs );

            //Signal opening to interested parties
            resourceOpenedEvent.fire( new ResourceOpenedEvent( path,
                                                               sessionInfo ) );

            return new GuidedTemplateEditorContent( model,
                                                    loadOverview( path ),
                                                    dataModel );
View Full Code Here


    @Override
    public EnumModelContent loadContent( final Path path ) {
        try {

            //Signal opening to interested parties
            resourceOpenedEvent.fire( new ResourceOpenedEvent( path,
                                                               sessionInfo ) );

            return new EnumModelContent( new EnumModel( load( path ) ) );

        } catch ( Exception e ) {
View Full Code Here

        try {
            final InputStream inputStream = ioService.newInputStream( Paths.convert( path ),
                                                                      StandardOpenOption.READ );

            //Signal opening to interested parties
            resourceOpenedEvent.fire( new ResourceOpenedEvent( path,
                                                               new SessionInfo() {
                                                                   @Override
                                                                   public String getId() {
                                                                       return sessionId;
                                                                   }
View Full Code Here

            DataModelOracleUtilities.populateDataModel( oracle,
                                                        dataModel,
                                                        consumedFQCNs );

            //Signal opening to interested parties
            resourceOpenedEvent.fire( new ResourceOpenedEvent( path,
                                                               sessionInfo ) );

            return new TestScenarioModelContent( scenario,
                                                 loadOverview(path),
                                                 packageName,
View Full Code Here

                                                        consumedFQCNs );

            final Set<PortableWorkDefinition> workItemDefinitions = workItemsService.loadWorkItemDefinitions( path );

            //Signal opening to interested parties
            resourceOpenedEvent.fire( new ResourceOpenedEvent( path,
                                                               sessionInfo ) );

            return new GuidedDecisionTableEditorContent( model,
                                                         workItemDefinitions,
                                                         dataModel );
View Full Code Here

    public FactModels load( final Path path ) {
        try {
            final String content = ioService.readAllString( paths.convert( path ) );

            //Signal opening to interested parties
            resourceOpenedEvent.fire( new ResourceOpenedEvent( path ) );

            return FactModelPersistence.unmarshal( content );

        } catch ( Exception e ) {
            throw ExceptionUtilities.handleException( e );
View Full Code Here

            final ProjectDataModelOracle oracle = dataModelService.getProjectDataModel( path );
            final String[] fullyQualifiedClassNames = new String[ oracle.getProjectModelFields().size() ];
            oracle.getProjectModelFields().keySet().toArray( fullyQualifiedClassNames );

            //Signal opening to interested parties
            resourceOpenedEvent.fire( new ResourceOpenedEvent( path,
                                                               sessionInfo ) );

            return new GlobalsEditorContent( model,
                                             Arrays.asList( fullyQualifiedClassNames ) );
View Full Code Here

            final ProjectDataModelOracle oracle = dataModelService.getProjectDataModel( path );
            final String[] fullyQualifiedClassNames = new String[ oracle.getProjectModelFields().size() ];
            oracle.getProjectModelFields().keySet().toArray( fullyQualifiedClassNames );

            //Signal opening to interested parties
            resourceOpenedEvent.fire( new ResourceOpenedEvent( path,
                                                               sessionInfo ) );

            return new GlobalsEditorContent( model,
                                             Arrays.asList( fullyQualifiedClassNames ) );
View Full Code Here

    public GlobalsModel load( final Path path ) {
        try {
            final String content = ioService.readAllString( paths.convert( path ) );

            //Signal opening to interested parties
            resourceOpenedEvent.fire( new ResourceOpenedEvent( path ) );

            return GlobalsPersistence.getInstance().unmarshal( content );

        } catch ( Exception e ) {
            throw ExceptionUtilities.handleException( e );
View Full Code Here

TOP

Related Classes of org.uberfire.workbench.events.ResourceOpenedEvent

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.