Package org.pentaho.mantle.client.commands

Examples of org.pentaho.mantle.client.commands.ShareFileCommand


    } else if ( mode == COMMAND.BACKGROUND ) {
      new RunInBackgroundCommand( selectedItem ).execute( true );
    } else if ( mode == COMMAND.SCHEDULE_NEW ) {
      ScheduleHelper.createSchedule( selectedItem.getRepositoryFile() );
    } else if ( mode == COMMAND.SHARE ) {
      new ShareFileCommand().execute();
    } else if ( mode == COMMAND.IMPORT ) {
      new ImportFileCommand( fileSummary == null ? fileSummaryProvider.getRepositoryFiles().get( 0 ) : fileSummary )
          .execute();
    } else if ( mode == COMMAND.EXPORT ) {
      new ExportFileCommand( fileSummary == null ? fileSummaryProvider.getRepositoryFiles().get( 0 ) : fileSummary )
View Full Code Here


      editFile( repositoryFile );
    } else if ( mode == FileCommand.COMMAND.SCHEDULE_NEW ) {
      ScheduleHelper.createSchedule( repositoryFile );
      return;
    } else if ( mode == FileCommand.COMMAND.SHARE ) {
      ShareFileCommand sfc = new ShareFileCommand();
      sfc.setSolutionPath( fileNameWithPath );
      sfc.execute();
    } else {
      String url = null;
      String extension = ""; //$NON-NLS-1$
      if ( fileNameWithPath.lastIndexOf( FILE_EXTENSION_DELIMETER ) > 0 ) { //$NON-NLS-1$
        extension = fileNameWithPath.substring( fileNameWithPath.lastIndexOf( FILE_EXTENSION_DELIMETER ) + 1 ); //$NON-NLS-1$
View Full Code Here

TOP

Related Classes of org.pentaho.mantle.client.commands.ShareFileCommand

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.