sventon subversion web client - http://www.sventon.org
[show recent changes]
 
  Help
HEAD
Rev: 12778 - svn://svn.freehep.org/svn / wired / trunk / wired-glast / src / main / java / hep / wired / glast / HepEventServerRecordSource.java
Unified Diff View - HepEventServerRecordSource.java
Search for Help
/wired/trunk/wired-glast/src/main/java/hep/wired/glast/HepEventServerRecordSource.java @ revision 12777
/wired/trunk/wired-glast/src/main/java/hep/wired/glast/HepEventServerRecordSource.java @ revision 12778
@@ -1,4 +1,4 @@ -// Copyright 2006, FreeHEP. +// Copyright 2006-2007, FreeHEP. package hep.wired.glast; import hep.graphics.heprep.HepRep; @@ -26,6 +26,7 @@ import javax.swing.JOptionPane; import org.freehep.application.Application; +import org.freehep.application.PropertyUtilities; import org.freehep.application.studio.Studio; import org.freehep.record.source.EndOfSourceException; import org.freehep.record.source.InteractiveRecordSource; @@ -40,13 +41,17 @@ /**  * @author Mark Donszelmann - * @version $Id: HepEventServerRecordSource.java 8598 2006-08-14 20:38:02Z duns $ + * @version $Id: HepEventServerRecordSource.java 12778 2007-06-15 18:21:50Z duns $  */ public class HepEventServerRecordSource implements SequentialRecordSource,         InteractiveRecordSource, RandomAccessRecordSource, TaggedRecordSource { -    private static final String defaultRunEventServer = "http://glast-tomcat02.slac.stanford.edu:8080/DC2EventFinder/EventFinderServlet"; +    private static final String defaultRunEventServer = "http://glast-ground.slac.stanford.edu/DC2EventFinder/EventFinderServlet"; +    private static final String defaultRunEventServerKey = Gleam.key + "defaultRunEventServer"; + +    private Properties properties; +     protected String name;     protected HepEventServer server; @@ -70,6 +75,8 @@         this.server = server;         this.eventList = eventList != null ? eventList : new ArrayList(); +        properties = Application.getApplication().getUserProperties(); +         heprep = null;         Studio studio = (Studio) Application.getApplication(); @@ -257,7 +264,7 @@         position = index;         runEvent = (String)eventList.get(position); -        String lookupServer = defaultRunEventServer; +        String lookupServer = PropertyUtilities.getString(properties, defaultRunEventServerKey, defaultRunEventServer);         URL url = null;         try {


feed icon

sventon 2.5.1