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);
}
}
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();
}
}
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);
}
}
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);
}
}
Aggregations