use of org.pentaho.mantle.client.dialogs.ImportDialog in project pentaho-platform by pentaho.
the class ImportFileCommand method performOperation.
protected void performOperation(boolean feedback) {
// delete file
importDialog = new ImportDialog(repositoryFile, SolutionBrowserPanel.getInstance().isAdministrator());
importDialog.getForm().addSubmitCompleteHandler(new SubmitCompleteHandler() {
@Override
public void onSubmitComplete(SubmitCompleteEvent sce) {
new RefreshRepositoryCommand().execute(false);
}
});
final IDialogCallback callback = new IDialogCallback() {
public void cancelPressed() {
importDialog.hide();
}
public void okPressed() {
importDialog.getForm().submit();
}
};
importDialog.setCallback(callback);
importDialog.center();
}
Aggregations