Search in sources :

Example 1 with SolutionFileHandler

use of org.pentaho.mantle.client.events.SolutionFileHandler in project pentaho-platform by pentaho.

the class DeleteFolderCommand method performOperation.

protected void performOperation() {
    if (this.getSolutionPath() != null) {
        SolutionBrowserPanel sbp = SolutionBrowserPanel.getInstance();
        sbp.getFile(this.getSolutionPath(), new SolutionFileHandler() {

            @Override
            public void handle(RepositoryFile repositoryFile) {
                DeleteFolderCommand.this.repositoryFile = repositoryFile;
                performOperation(true);
            }
        });
    } else {
        performOperation(true);
    }
}
Also used : SolutionFileHandler(org.pentaho.mantle.client.events.SolutionFileHandler) RepositoryFile(org.pentaho.gwt.widgets.client.filechooser.RepositoryFile) SolutionBrowserPanel(org.pentaho.mantle.client.solutionbrowser.SolutionBrowserPanel)

Example 2 with SolutionFileHandler

use of org.pentaho.mantle.client.events.SolutionFileHandler in project pentaho-platform by pentaho.

the class ShareFileCommand method execute.

public void execute() {
    final SolutionBrowserPanel sbp = SolutionBrowserPanel.getInstance();
    if (this.getSolutionPath() != null) {
        selectedList = new ArrayList<RepositoryFile>();
        sbp.getFile(this.getSolutionPath(), new SolutionFileHandler() {

            @Override
            public void handle(RepositoryFile repositoryFile) {
                selectedList.add(repositoryFile);
                performOperation();
            }
        });
    } else {
        selectedList = sbp.getFilesListPanel().getRepositoryFiles();
        performOperation();
    }
}
Also used : SolutionFileHandler(org.pentaho.mantle.client.events.SolutionFileHandler) RepositoryFile(org.pentaho.gwt.widgets.client.filechooser.RepositoryFile) SolutionBrowserPanel(org.pentaho.mantle.client.solutionbrowser.SolutionBrowserPanel)

Example 3 with SolutionFileHandler

use of org.pentaho.mantle.client.events.SolutionFileHandler in project pentaho-platform by pentaho.

the class ImportFileCommand method performOperation.

protected void performOperation() {
    if (this.getSolutionPath() != null) {
        SolutionBrowserPanel sbp = SolutionBrowserPanel.getInstance();
        sbp.getFile(this.getSolutionPath(), new SolutionFileHandler() {

            @Override
            public void handle(RepositoryFile repositoryFile) {
                ImportFileCommand.this.repositoryFile = repositoryFile;
                performOperation(true);
            }
        });
    } else {
        performOperation(true);
    }
}
Also used : SolutionFileHandler(org.pentaho.mantle.client.events.SolutionFileHandler) RepositoryFile(org.pentaho.gwt.widgets.client.filechooser.RepositoryFile) SolutionBrowserPanel(org.pentaho.mantle.client.solutionbrowser.SolutionBrowserPanel)

Example 4 with SolutionFileHandler

use of org.pentaho.mantle.client.events.SolutionFileHandler in project pentaho-platform by pentaho.

the class NewFolderCommand method performOperation.

protected void performOperation() {
    if (this.getSolutionPath() != null) {
        final SolutionBrowserPanel sbp = SolutionBrowserPanel.getInstance();
        if (callback == null) {
            setCallback(new ICallback<String>() {

                public void onHandle(String path) {
                    sbp.getSolutionTree().select(path);
                }
            });
        }
        sbp.getFile(this.getSolutionPath(), new SolutionFileHandler() {

            @Override
            public void handle(RepositoryFile repositoryFile) {
                NewFolderCommand.this.parentFolder = repositoryFile;
                performOperation(true);
            }
        });
    } else {
        performOperation(true);
    }
}
Also used : SolutionFileHandler(org.pentaho.mantle.client.events.SolutionFileHandler) RepositoryFile(org.pentaho.gwt.widgets.client.filechooser.RepositoryFile) SolutionBrowserPanel(org.pentaho.mantle.client.solutionbrowser.SolutionBrowserPanel)

Aggregations

RepositoryFile (org.pentaho.gwt.widgets.client.filechooser.RepositoryFile)4 SolutionFileHandler (org.pentaho.mantle.client.events.SolutionFileHandler)4 SolutionBrowserPanel (org.pentaho.mantle.client.solutionbrowser.SolutionBrowserPanel)4