Skip to content

Commit

Permalink
Change internal dialog to message dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
SumanthKaliki-Formlabs committed Aug 1, 2021
1 parent 4c144bb commit 9dfcf87
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/edu/iastate/metnet/metaomgraph/MetaOmGraph.java
Original file line number Diff line number Diff line change
Expand Up @@ -4113,6 +4113,8 @@ private static String downloadProjSelectionPanel(File projDirectory, DownloadSam
destPath += File.separator + "MOG_Athaliana_Metabolomics";
if(Utils.downloadFile(projURL, destPath + ".zip")) {
Utils.unZipFile(destPath + ".zip", destPath);
} else {
destPath = "";
}
} else if (project == DownloadSampleProject.MicroArray) {
try {
Expand All @@ -4124,6 +4126,8 @@ private static String downloadProjSelectionPanel(File projDirectory, DownloadSam
destPath += File.separator + "MOG_Athaliana_MicroArray";
if(Utils.downloadFile(projURL, destPath + ".zip")) {
Utils.unZipFile(destPath + ".zip", destPath);
} else {
destPath = "";
}
} else {
try {
Expand All @@ -4135,6 +4139,8 @@ private static String downloadProjSelectionPanel(File projDirectory, DownloadSam
destPath += File.separator + "MOG_HumanCancerRNASeq";
if(Utils.downloadFile(projURL, destPath + ".zip")) {
Utils.unZipFile(destPath + ".zip", destPath);
} else {
destPath = "";
}
}
return destPath;
Expand Down
2 changes: 1 addition & 1 deletion src/edu/iastate/metnet/metaomgraph/utils/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -1659,7 +1659,7 @@ public Object construct() {
} catch (MalformedURLException e) {
return false;
} catch (IOException e) {
JOptionPane.showInternalMessageDialog(null, "Cannot download file, Please check your Internet connection",
JOptionPane.showMessageDialog(null, "Cannot download file, Please check your Internet connection",
"Download error", JOptionPane.ERROR_MESSAGE);
return false;
}
Expand Down

0 comments on commit 9dfcf87

Please sign in to comment.