Package org.pentaho.mantle.client.solutionbrowser.fileproperties

Examples of org.pentaho.mantle.client.solutionbrowser.fileproperties.FilePropertiesDialog


      try {
        builder.setHeader( "If-Modified-Since", "01 Jan 1970 00:00:00 GMT" );
        builder.sendRequest( null, new RequestCallback() {

          public void onError( Request request, Throwable exception ) {
            FilePropertiesDialog dialog =
                new FilePropertiesDialog( item, new PentahoTabPanel(), null, getActiveTab(), false );
            dialog.showTab( getActiveTab() );
            dialog.center();

            event.setMessage( exception.getMessage() );
            EventBusUtil.EVENT_BUS.fireEvent( event );
          }

          public void onResponseReceived( Request request, Response response ) {
            FilePropertiesDialog dialog =
                new FilePropertiesDialog( item, new PentahoTabPanel(), null, getActiveTab(), Boolean
                    .parseBoolean( response.getText() ) );
            dialog.showTab( getActiveTab() );
            dialog.center();

            event.setMessage( "Success" );
            EventBusUtil.EVENT_BUS.fireEvent( event );
          }
        } );
      } catch ( RequestException e ) {
        FilePropertiesDialog dialog =
            new FilePropertiesDialog( item, new PentahoTabPanel(), null, getActiveTab(), false );
        dialog.showTab( getActiveTab() );
        dialog.center();

        event.setMessage( e.getMessage() );
        EventBusUtil.EVENT_BUS.fireEvent( event );
      }
    }
View Full Code Here


      try {
        builder.setHeader( "If-Modified-Since", "01 Jan 1970 00:00:00 GMT" );
        builder.sendRequest( null, new RequestCallback() {

          public void onError( Request request, Throwable exception ) {
            FilePropertiesDialog dialog =
                new FilePropertiesDialog( item, new PentahoTabPanel(), null, defaultTab, false );
            dialog.showTab( defaultTab );
            dialog.center();

            event.setMessage( exception.getMessage() );
            EventBusUtil.EVENT_BUS.fireEvent( event );
          }

          public void onResponseReceived( Request request, Response response ) {
            FilePropertiesDialog dialog =
                new FilePropertiesDialog( item, new PentahoTabPanel(), null, defaultTab, Boolean.parseBoolean( response
                    .getText() ) );
            dialog.showTab( FilePropertiesDialog.Tabs.PERMISSION );
            dialog.center();

            event.setMessage( "Success" );
            EventBusUtil.EVENT_BUS.fireEvent( event );
          }
        } );
      } catch ( RequestException e ) {
        FilePropertiesDialog dialog = new FilePropertiesDialog( item, new PentahoTabPanel(), null, defaultTab, false );
        dialog.showTab( FilePropertiesDialog.Tabs.PERMISSION );
        dialog.center();

        event.setMessage( e.getMessage() );
        EventBusUtil.EVENT_BUS.fireEvent( event );
      }
View Full Code Here

TOP

Related Classes of org.pentaho.mantle.client.solutionbrowser.fileproperties.FilePropertiesDialog

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.