Skip to content
Snippets Groups Projects
Commit 3a7d8edf authored by tjc's avatar tjc
Browse files

use -Doffset to goto a base on opening Artemis

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@5860 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 72bc500b
Branches
Tags
No related merge requests found
......@@ -20,7 +20,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/components/ArtemisMain.java,v 1.24 2007-02-22 19:44:20 tjc Exp $
* $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/components/ArtemisMain.java,v 1.25 2007-04-03 12:36:07 tjc Exp $
*/
package uk.ac.sanger.artemis.components;
......@@ -51,7 +51,7 @@ import javax.swing.JFrame;
* The main window for the Artemis sequence editor.
*
* @author Kim Rutherford <kmr@sanger.ac.uk>
* @version $Id: ArtemisMain.java,v 1.24 2007-02-22 19:44:20 tjc Exp $
* @version $Id: ArtemisMain.java,v 1.25 2007-04-03 12:36:07 tjc Exp $
**/
public class ArtemisMain extends Splash
......@@ -404,9 +404,19 @@ public class ArtemisMain extends Splash
}
}
if(System.getProperty("offset") != null)
last_entry_edit.getGotoEventSource().gotoBase(
Integer.parseInt(System.getProperty("offset")));
for(int entry_index=0; entry_index<entry_edit_objects.size();
++entry_index)
++entry_index)
{
entry_edit_objects.elementAt(entry_index).setVisible(true);
if(System.getProperty("offset") != null)
entry_edit_objects.elementAt(entry_index).getGotoEventSource().gotoBase(
Integer.parseInt(System.getProperty("offset")));
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment