Skip to content

Commit

Permalink
Merge pull request #53 from claire-oi/issue_51
Browse files Browse the repository at this point in the history
Loads ETL spec from command line argument
  • Loading branch information
aguynamedryan committed Apr 27, 2015
2 parents 3d651e9 + 13f9ef9 commit e5a2674
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/org/ohdsi/rabbitInAHat/RabbitInAHatMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ public class RabbitInAHatMain implements ResizeListener, ActionListener {
private JSplitPane tableFieldSplitPane;

public static void main(String[] args) {
new RabbitInAHatMain();
new RabbitInAHatMain(args);
}

public RabbitInAHatMain() {
public RabbitInAHatMain(String[] args) {
frame = new JFrame("Rabbit in a Hat");
frame.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
Expand Down Expand Up @@ -114,6 +114,10 @@ public void windowClosing(WindowEvent e) {
frame.pack();
frame.setExtendedState(java.awt.Frame.MAXIMIZED_BOTH);
frame.setVisible(true);

if (args.length > 0) {
doOpenSpecs(args[0]);
}
}

private void loadIcons(JFrame f) {
Expand Down

0 comments on commit e5a2674

Please sign in to comment.