protected HasBusyIndicatorDefaultErrorCallback getCopyErrorCallback(final CopyPopUpPresenter.View copyPopupView) { return new HasBusyIndicatorDefaultErrorCallback(baseView) { @Override public boolean error(final Message message, final Throwable throwable) { copyPopupView.hide(); return super.error(message, throwable); } }; }
@Override public void getSanitizedGroupId(String proposedGroupId, RemoteCallback<String> callback) { organizationalUnitService.call(callback, new HasBusyIndicatorDefaultErrorCallback(view)).getSanitizedDefaultGroupId(proposedGroupId); }
@Override public void getSanitizedGroupId(String proposedGroupId, RemoteCallback<String> callback) { organizationalUnitService.call(callback, new HasBusyIndicatorDefaultErrorCallback(view)).getSanitizedDefaultGroupId(proposedGroupId); }
@Override public void checkValidGroupId(final String proposedGroupId, RemoteCallback<Boolean> callback) { organizationalUnitService.call(callback, new HasBusyIndicatorDefaultErrorCallback(view)).isValidGroupId(proposedGroupId); }
@Override protected void save(String commitMessage) { service.call(getSaveSuccessCallback(model.hashCode()), new HasBusyIndicatorDefaultErrorCallback(view)).save(versionRecordManager.getCurrentPath(), model, metadata, commitMessage); }
@Override protected void save(String commitMessage) { solverService.call(getSaveSuccessCallback(model.hashCode()), new HasBusyIndicatorDefaultErrorCallback(view)).save(versionRecordManager.getCurrentPath(), model, metadata, commitMessage); }
@Override public void getAvailableDocumentPaths(final Callback<List<Path>> callback) { view.showLoading(); graphService.call(new RemoteCallback<List<Path>>() { @Override public void callback(final List<Path> paths) { view.hideBusyIndicator(); callback.callback(paths); } }, new HasBusyIndicatorDefaultErrorCallback(view)).listDecisionTablesInPackage(editorPath); }
@Override protected void save(String commitMessage) { service.call(getSaveSuccessCallback(scenario.hashCode()), new HasBusyIndicatorDefaultErrorCallback(view)).save(versionRecordManager.getCurrentPath(), scenario, metadata, commitMessage); }
@Override protected void loadContent() { editorService.call(getLoadContentSuccessCallback(), new HasBusyIndicatorDefaultErrorCallback(view)).loadContent( versionRecordManager.getCurrentPath()); }
@Override protected void loadContent() { importsService.call(getModelSuccessCallback(), new HasBusyIndicatorDefaultErrorCallback(view)).loadContent(versionRecordManager.getCurrentPath()); }
@Override protected void save(String commitMessage) { dslTextEditorService.call(getSaveSuccessCallback(view.getContent().hashCode()), new HasBusyIndicatorDefaultErrorCallback(view)).save(versionRecordManager.getCurrentPath(), view.getContent(), metadata, commitMessage); }
@Override protected void save(String commitMessage) { workItemsService.call(getSaveSuccessCallback(view.getContent().hashCode()), new HasBusyIndicatorDefaultErrorCallback(view)).save(versionRecordManager.getCurrentPath(), view.getContent(), metadata, commitMessage); }
public void deleteProject(final WorkspaceProject project, final HasBusyIndicator view) { repositoryService.call(v -> view.hideBusyIndicator(), new HasBusyIndicatorDefaultErrorCallback(view)).removeRepository(project.getSpace(), project.getRepository().getAlias()); }
private void showDeletePopup(final Path path) { deletePopUpPresenter.show(assetUpdateValidator, comment -> { view.showBusyIndicator(CommonConstants.INSTANCE.Deleting()); globalsEditorService.call(getDeleteSuccessCallback(), new HasBusyIndicatorDefaultErrorCallback(view)).delete(path, "delete"); }); }
@Override public void execute(final String commitMessage) { baseView.showSaving(); globalsEditorService.call(getSaveSuccessCallback(model.hashCode()), new HasBusyIndicatorDefaultErrorCallback(view)).save(versionRecordManager.getCurrentPath(), model, metadata, commitMessage); concurrentUpdateSessionInfo = null; } });
@Override public void create( final Package pkg, final String baseFileName, final NewResourcePresenter presenter ) { busyIndicatorView.showBusyIndicator( CommonConstants.INSTANCE.Saving() ); workItemsEditorService.call( getSuccessCallback( presenter ), new HasBusyIndicatorDefaultErrorCallback( busyIndicatorView ) ).create( pkg.getPackageMainResourcesPath(), buildFileName( baseFileName, resourceType ), "", "" ); }
@Override public void create( final Package pkg, final String baseFileName, final NewResourcePresenter presenter ) { busyIndicatorView.showBusyIndicator( CommonConstants.INSTANCE.Saving() ); dslTextService.call( getSuccessCallback( presenter ), new HasBusyIndicatorDefaultErrorCallback( busyIndicatorView ) ).create( pkg.getPackageMainResourcesPath(), buildFileName( baseFileName, resourceType ), "", "" ); }
@Override protected void save(String commitMessage) { getService().call(getSaveSuccessCallback(model.hashCode()), new HasBusyIndicatorDefaultErrorCallback(view)).save(versionRecordManager.getCurrentPath(), view.getContent(), metadata, commitMessage); }
@Override public void create( final Package pkg, final String baseFileName, final NewResourcePresenter presenter ) { busyIndicatorView.showBusyIndicator( CommonConstants.INSTANCE.Saving() ); graphService.call( getSuccessCallback( presenter ), new HasBusyIndicatorDefaultErrorCallback( busyIndicatorView ) ).create( pkg.getPackageMainResourcesPath(), buildFileName( baseFileName, resourceType ), new GuidedDecisionTableEditorGraphModel(), "" ); }
@Override public void create(final Package pkg, final String baseFileName, final NewResourcePresenter presenter) { busyIndicatorView.showBusyIndicator(CommonConstants.INSTANCE.Saving()); solverService.call(getSuccessCallback(presenter), new HasBusyIndicatorDefaultErrorCallback(busyIndicatorView)).create(pkg.getPackageMainResourcesPath(), buildFileName(baseFileName, resourceType), new SolverConfigModel(), ""); }