Skip to content
Snippets Groups Projects
Commit 74365ef2 authored by tcarver's avatar tcarver
Browse files

change ArtemisMain.readArgsAndOptions() to take the frame as an argument

parent 0a3d6ccb
No related branches found
No related tags found
No related merge requests found
......@@ -285,7 +285,7 @@ public class ArtemisMain extends Splash
/**
* Read the entries named in args and in the diana.ini file.
**/
protected void readArgsAndOptions(final String [] args)
protected void readArgsAndOptions(final String [] args, final JFrame f)
{
if(args.length == 0)
{
......@@ -342,7 +342,7 @@ public class ArtemisMain extends Splash
entry_document.addInputStreamProgressListener(progress_listener);
final uk.ac.sanger.artemis.io.Entry new_embl_entry =
EntryFileDialog.getEntryFromFile(this, entry_document,
EntryFileDialog.getEntryFromFile(f, entry_document,
artemis_entry_information,
false);
......@@ -412,7 +412,7 @@ public class ArtemisMain extends Splash
entry_document.addInputStreamProgressListener(getInputStreamProgressListener());
final uk.ac.sanger.artemis.io.Entry new_embl_entry =
EntryFileDialog.getEntryFromFile(this, entry_document,
EntryFileDialog.getEntryFromFile(f, entry_document,
artemis_entry_information,
false);
......@@ -814,7 +814,7 @@ public class ArtemisMain extends Splash
{
final ArtemisMain main_window = new ArtemisMain(args);
main_window.setVisible(true);
main_window.readArgsAndOptions(args);
main_window.readArgsAndOptions(args, main_window);
}
});
}
......
......@@ -901,7 +901,7 @@ public class ProjectProperty extends JFrame
}
else
main_window = (ArtemisMain) splash;
main_window.readArgsAndOptions(args);
main_window.readArgsAndOptions(args, ProjectProperty.this);
}
finally
{
......
......@@ -350,7 +350,7 @@ abstract public class Splash extends JFrame
protected void loadFile(final String fileName)
{
if(this instanceof ArtemisMain)
((ArtemisMain)this).readArgsAndOptions(new String[]{ fileName });
((ArtemisMain)this).readArgsAndOptions(new String[]{ fileName }, this);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment