Package org.uberfire.mvp.impl

Examples of org.uberfire.mvp.impl.PathPlaceRequest


                                 @Override
                                 public void execute() {
                                     busyIndicatorView.hideBusyIndicator();
                                     presenter.complete();
                                     notifySuccess();
                                     final PlaceRequest place = new PathPlaceRequest( newPath );
                                     placeManager.goTo( place );
                                 }

                             },
                             new Command() {
View Full Code Here


            placeManager.goTo( new DefaultPlaceRequest( "StandaloneEditorPerspective" ) );
            vfsService.get( parameters.get( "path" ).get( 0 ), new ParameterizedCommand<Path>() {
                @Override
                public void execute( final Path response ) {
                    if ( parameters.containsKey( "editor" ) && !parameters.get( "editor" ).isEmpty() ) {
                        placeManager.goTo( new PathPlaceRequest( response, parameters.get( "editor" ).get( 0 ) ) );
                    } else {
                        placeManager.goTo( new PathPlaceRequest( response ) );
                    }
                }
            } );
        }
    }
View Full Code Here

    }

    @Test
    public void createPathPlaceRequest() throws Exception {
        final Path path = PathFactory.newPath( "file", "default://master@repo/path/to/file" );
        final PlaceRequest placeRequestOriginal = new PathPlaceRequest( path );

        PlaceRequest placeRequest = placeRequestHistoryMapper.getPlaceRequest( placeRequestOriginal.getFullIdentifier() );
        assertEquals( placeRequestOriginal.getFullIdentifier(), placeRequest.getFullIdentifier() );

        assertTrue( placeRequest.getParameters().isEmpty() );
    }
View Full Code Here

    }

    @Test
    public void createPathPlaceRequestWithSpaces() throws Exception {
        final Path path = PathFactory.newPath( "Dummy rule.drl", "default://master@uf-playground/mortgages/src/main/resources/org/mortgages/Dummy%20rule.drl" );
        final PlaceRequest placeRequestOriginal = new PathPlaceRequest( path );

        PlaceRequest placeRequest = placeRequestHistoryMapper.getPlaceRequest( placeRequestOriginal.getFullIdentifier() );
        assertEquals( placeRequestOriginal.getFullIdentifier(), placeRequest.getFullIdentifier() );

        assertTrue( placeRequest.getParameters().isEmpty() );
    }
View Full Code Here

        return request;
    }

    private PlaceRequest getPlace( final Path path ) {
        return new PathPlaceRequest( path );
    }
View Full Code Here

        final Map<String, String> parameters = getParameters( query );

        final PlaceRequest placeRequest;
        if ( parameters.containsKey( "path_uri" ) ) {
            if ( parameters.containsKey( "has_version_support" ) ) {
                placeRequest = new PathPlaceRequest( PathFactory.newPath( parameters.remove( "file_name" ), parameters.remove( "path_uri" ), new HashMap<String, Object>() {{
                    put( PathFactory.VERSION_PROPERTY, Boolean.valueOf( parameters.remove( "has_version_support" ) ) );
                }} ), identifier );
            } else {
                placeRequest = new PathPlaceRequest( PathFactory.newPath( parameters.remove( "file_name" ), parameters.remove( "path_uri" ) ), identifier );
            }
        } else {
            placeRequest = new DefaultPlaceRequest( identifier );
        }
View Full Code Here

    public void launch( final AcceptItem acceptPanel,
                        final PlaceRequest place,
                        final Command callback ) {
        super.launch( place, callback );

        final PathPlaceRequest pathPlace = (PathPlaceRequest) place;

        onStartup( pathPlace.getPath(), place );

        acceptPanel.add( new UIPart( getTitle(), getTitleDecoration(), getWidget() ) );

        onOpen();
    }
View Full Code Here

TOP

Related Classes of org.uberfire.mvp.impl.PathPlaceRequest

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.