@Override public void execute(ProjectNode node) { Downloader.getInstance() .download( ServerLayout.DOWNLOAD_SERVLET_BASE + ServerLayout.DOWNLOAD_PROJECT_OUTPUT + "/" + node.getProjectId() + "/" + ServerLayout.BUILD_TARGET_WEB); }
@Override public void execute() { Tracking.trackEvent( Tracking.PROJECT_EVENT, Tracking.PROJECT_ACTION_DOWNLOAD_ALL_PROJECTS_SOURCE_YA); // Is there a way to disable the Download All button until this completes? Window.alert(MESSAGES.downloadAllAlert()); Downloader.getInstance() .download(ServerLayout.DOWNLOAD_SERVLET_BASE + ServerLayout.DOWNLOAD_ALL_PROJECTS_SOURCE); }
private void exportProject(Project project) { Tracking.trackEvent( Tracking.PROJECT_EVENT, Tracking.PROJECT_ACTION_DOWNLOAD_PROJECT_SOURCE_YA, project.getProjectName()); Downloader.getInstance() .download( ServerLayout.DOWNLOAD_SERVLET_BASE + ServerLayout.DOWNLOAD_PROJECT_SOURCE + "/" + project.getProjectId()); }
@Override public void execute(ProjectNode node) { Downloader.getInstance() .download(StorageUtil.getFilePath(node.getProjectId(), node.getFileId())); }