View Javadoc

1   package org.lcsim.plugin;
2   
3   import org.freehep.application.studio.Studio;
4   import org.freehep.jas.services.DataSource;
5   import org.freehep.swing.wizard.WizardPage;
6   
7   /**
8    * A data source which allows reading a single file or a set of files.
9    * @author tonyj
10   */
11  
12  class LCSimDataSource implements DataSource
13  {
14     private Studio app;
15     
16     LCSimDataSource(Studio app)
17     {
18        this.app = app;
19     }
20     
21     public WizardPage getWizardPage()
22     {
23        return new LCSimFileSelector(app);
24     }
25     
26     public String getName()
27     {
28        return "LCIO Files (.slcio, .slcio.filelist)";
29     }
30  }