bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public static String[] getSeismogramNames(DataSetSeismogram[] dss){ String[] names = new String[dss.length]; for(int i = 0; i < dss.length; i++){ names[i] = "" + dss[i]; } return names; }
public static String[] getSeismogramNames(DataSetSeismogram[] dss){ String[] names = new String[dss.length]; for(int i = 0; i < dss.length; i++){ names[i] = "" + dss[i]; } return names; }
1,117,764
public static String[] getSeismogramNames(DataSetSeismogram[] dss){ String[] names = new String[dss.length]; for(int i = 0; i < dss.length; i++){ names[i] = "" + dss[i]; } return names; }
public static String[] getSeismogramNames(DataSetSeismogram[] dss){ String[] names = new String[dss.length]; for(int i = 0; i < dss.length; i++){ names[i] = "" + dss[i]; } String[] rtnValues = new String[arrayList.size()]; rtnValues = (String[]) arrayList.toArray(rtnValues); r...
1,117,765
public ComponentSortedSeismogramDisplay(MouseForwarder mouseForwarder, MouseMotionForwarder motionForwarder, VerticalSeismogramDisplay parent){ super(mouseForwarder, motionForwarder, parent); }
public ComponentSortedSeismogramDisplay(MouseForwarder mouseForwarder, MouseMotionForwarder motionForwarder, VerticalSeismogramDisplay parent){ super(mouseForwarder, motionForwarder, parent); }
1,117,766
public int print(Graphics g, PageFormat pageFormat, int pageIndex){ System.out.println(pageIndex); if (pageIndex >= displays.length/seisPerPage) return NO_SUCH_PAGE; Graphics2D g2 = (Graphics2D)g; g2.translate(pageFormat.getImageableX(), pageFormat.getImageableY()); Paper page = pageFormat.getPaper(); double height...
public int print(Graphics g, PageFormat pageFormat, int pageIndex){ System.out.println(pageIndex); if (pageIndex >= displays.length/seisPerPage) return NO_SUCH_PAGE; Graphics2D g2 = (Graphics2D)g; g2.translate(pageFormat.getImageableX(), pageFormat.getImageableY()); Paper page = pageFormat.getPaper(); double height...
1,117,767
public int print(Graphics g, PageFormat pageFormat, int pageIndex){ System.out.println(pageIndex); if (pageIndex >= displays.length/seisPerPage) return NO_SUCH_PAGE; Graphics2D g2 = (Graphics2D)g; g2.translate(pageFormat.getImageableX(), pageFormat.getImageableY()); Paper page = pageFormat.getPaper(); double height...
public int print(Graphics g, PageFormat pageFormat, int pageIndex){ System.out.println(pageIndex); if (pageIndex >= displays.length/seisPerPage) return NO_SUCH_PAGE; Graphics2D g2 = (Graphics2D)g; g2.translate(pageFormat.getImageableX(), pageFormat.getImageableY()); Paper page = pageFormat.getPaper(); double height...
1,117,768
public Channel[] create(String unitIdNumber, MicroSecondDate beginTime, String fileLoc, TimeRange fileTimeWindow) { int sampleRate; try { sampleRate = sf.find(fileLoc, fileTimeWindow); } catch(RT130Forma...
public Channel[] create(String unitIdNumber, String fileLoc, TimeRange fileTimeWindow) { int sampleRate; try { sampleRate = sf.find(fileLoc, fileTimeWindow); } catch(RT130FormatException e) { ...
1,117,769
public Channel[] create(String unitIdNumber, MicroSecondDate beginTime, String fileLoc, TimeRange fileTimeWindow) { int sampleRate; try { sampleRate = sf.find(fileLoc, fileTimeWindow); } catch(RT130Forma...
public Channel[] create(String unitIdNumber, MicroSecondDate beginTime, String fileLoc, MicroSecondTimeRange fileTimeWindow) { int sampleRate; try { sampleRate = sf.find(fileLoc, fileTimeWindow); } catch...
1,117,770
public Channel[] create(String unitIdNumber, MicroSecondDate beginTime, String fileLoc, TimeRange fileTimeWindow) { int sampleRate; try { sampleRate = sf.find(fileLoc, fileTimeWindow); } catch(RT130Forma...
public Channel[] create(String unitIdNumber, MicroSecondDate fileTimeWindow.getBeginTime(), String fileLoc, TimeRange fileTimeWindow) { int sampleRate; try { sampleRate = sf.find(fileLoc, fileTimeWindow); ...
1,117,771
public static DataSetSeismogram[] getComponents(DataSetSeismogram seismogram){ List componentSeismograms = new ArrayList(); RequestFilter rf = seismogram.getRequestFilter(); MicroSecondDate startDate = new MicroSecondDate(rf.start_time); MicroSecondDate endDate = new MicroSecondDate(rf.e...
public static DataSetSeismogram[] getComponents(DataSetSeismogram seismogram){ List componentSeismograms = new ArrayList(); RequestFilter rf = seismogram.getRequestFilter(); MicroSecondDate startDate = new MicroSecondDate(rf.start_time); MicroSecondDate endDate = new MicroSecondDate(rf.e...
1,117,773
public synchronized String getUtc(String time, String tzid, TimeZone tz) throws CalFacadeException { /* XXX We probably need the ownerid to determine exactly which timezone */ //if (debug) { // trace("Get utc for " + time + " tzid=" + tzid + " tz =" + tz); //} if (CalFacadeUtil.isISODateTimeUTC(ti...
public synchronized String getUtc(String time, String tzid, TimeZone tz) throws CalFacadeException { /* XXX We probably need the ownerid to determine exactly which timezone */ //if (debug) { // trace("Get utc for " + time + " tzid=" + tzid + " tz =" + tz); //} if (CalFacadeUtil.isISODateTimeUTC(ti...
1,117,774
public void setDefaultTimeZoneId(String id) throws CalFacadeException;
public void setDefaultTimeZoneId(String id) throws CalFacadeException { defaultTimeZone = null; defaultTimeZoneId = id; }
1,117,775
public boolean mouseClicked(MouseEvent e){ if (currentPopup != null){ currentPopup.setVisible(false); currentPopup = null; } synchronized(omgraphics){ Iterator it = omgraphics.iterator(); List stationsUnderMouse = new ArrayList(); while(it....
public boolean mouseClicked(MouseEvent e){ if (currentPopup != null){ currentPopup.setVisible(false); currentPopup = null; } synchronized(omgraphics){ Iterator it = omgraphics.iterator(); List stationsUnderMouse = new ArrayList(); while(it....
1,117,777
public boolean mouseClicked(MouseEvent e){ if (currentPopup != null){ currentPopup.setVisible(false); currentPopup = null; } synchronized(omgraphics){ Iterator it = omgraphics.iterator(); List stationsUnderMouse = new ArrayList(); while(it....
public boolean mouseClicked(MouseEvent e){ if (currentPopup != null){ currentPopup.setVisible(false); currentPopup = null; } synchronized(omgraphics){ Iterator it = omgraphics.iterator(); List stationsUnderMouse = new ArrayList(); while(it....
1,117,778
public void actionPerformed(ActionEvent e) { chooser.toggleStationSelected(current); popup.setVisible(false); }
public void actionPerformed(ActionEvent e) { synchronized(chooser){ chooser.toggleStationSelected(current); } popup.setVisible(false); }
1,117,779
protected Command getCreateCommand(CreateElementRequest req) { if (UMLElementTypes.OutputPin_3002 == req.getElementType()) { CreateObjectAction container = (CreateObjectAction) (req.getContainer() instanceof View ? ((View) req.getContainer()).getElement() : req.getContainer()); if (container.getResult() != null) ...
protected Command getCreateCommand(CreateElementRequest req) { if (UMLElementTypes.OutputPin_3002 == req.getElementType()) { CreateObjectAction container = (CreateObjectAction) (req.getContainer() instanceof View ? ((View) req.getContainer()).getElement() : req.getContainer()); if (container.getResult() != null) ...
1,117,780
protected Command getCreateCommand(CreateElementRequest req) { if (UMLElementTypes.OutputPin_3002 == req.getElementType()) { CreateObjectAction container = (CreateObjectAction) (req.getContainer() instanceof View ? ((View) req.getContainer()).getElement() : req.getContainer()); if (container.getResult() != null) ...
protected Command getCreateCommand(CreateElementRequest req) { if (UMLElementTypes.OutputPin_3002 == req.getElementType()) { CreateObjectAction container = (CreateObjectAction) (req.getContainer() instanceof View ? ((View) req.getContainer()).getElement() : req.getContainer()); if (container.getResult() != null) ...
1,117,781
public static TimeInterval getServerTimeOffset() throws IOException { if ( timeURL == null) { setTimeURL(SEIS_SC_EDU_URL); } // end of if () URL url = timeURL; InputStream is = url.openStream(); InputStreamReader isReader = new InputStreamReader(is); Buff...
public static TimeInterval getServerTimeOffset() throws IOException { if ( timeURL == null) { setTimeURL(SEIS_SC_EDU_URL); } // end of if () URL url = timeURL; InputStream is = url.openStream(); InputStreamReader isReader = new InputStreamReader(is); Buff...
1,117,782
public MP3Player(File f) throws PlayerException { try { file = f; stream = new FileInputStream(file); player = new AdvancedPlayer(stream); } catch (Exception exc) { throw new PlayerException(exc); } }
public MP3Player(File f) throws PlayerException { try { file = f; stream = new FileInputStream(file); player = new AdvancedPlayer(stream) { public void close() { System.out.print("AdvancedPlayer.close()"); super.close(); System.out.println(" done"); } }; } catch (Exception exc) { throw new PlayerException(ex...
1,117,783
public synchronized boolean isCompleted() { return completed; }
public boolean isCompleted() { return completed; }
1,117,784
public synchronized boolean isPlaying() { return player != null; }
public boolean isPlaying() { return player != null; }
1,117,785
public void pause() { System.err.println("Not yet implemented"); }
public synchronized void pause() { System.err.println("Not yet implemented"); }
1,117,786
public boolean isCompleted();
public abstract boolean isCompleted();
1,117,788
public void pause();
public abstract void pause();
1,117,789
public ATObject meta_select(ATObject receiver, ATSymbol selector) throws NATException { String jSelector = null; try { jSelector = Reflection.upBaseFieldAccessSelector(selector); return Reflection.downObject(Reflection.upFieldSelection(this, receiver, jSelector)); } catch ...
public ATObject meta_select(ATObject receiver, ATSymbol selector) throws NATException { String jSelector = null; try { jSelector = Reflection.upBaseFieldAccessSelector(selector); return Reflection.downObject(Reflection.upFieldSelection(this, receiver, jSelector)); } catch ...
1,117,790
public SoundPlay(SeismogramDisplay display, SeismogramContainer container){ this.display = display; this.container = container; isPlaying = false; seisWAV = new FissuresToWAV(container, 1200); seisWAV.addPlayEventListener(this); SeismogramDisplay.getMouseForwarder().addPerm...
public SoundPlay(SeismogramDisplay display, SeismogramContainer container){ this.display = display; this.container = container; seisWAV = new FissuresToWAV(container, 1200); seisWAV.addPlayEventListener(this); SeismogramDisplay.getMouseForwarder().addPermMouseListener(this...
1,117,791
public void draw(Graphics2D canvas, Dimension size, TimeEvent currentTime, AmpEvent currentAmp) { if(visible && !BasicSeismogramDisplay.PRINTING){ double sizeOfDisplay = size.getWidth(); x0 = (int)sizeOfDisplay - 20; x1 = (int)sizeOfDisplay - 15; x2 = (int)sizeOfDi...
public void draw(Graphics2D canvas, Dimension size, TimeEvent currentTime, AmpEvent currentAmp) { if(visible && !BasicSeismogramDisplay.PRINTING){ double sizeOfDisplay = size.getWidth(); x0 = (int)sizeOfDisplay - 20; x1 = (int)sizeOfDisplay - 15; x2 = (int)sizeOfDi...
1,117,792
public void draw(Graphics2D canvas, Dimension size, TimeEvent currentTime, AmpEvent currentAmp) { if(visible && !BasicSeismogramDisplay.PRINTING){ double sizeOfDisplay = size.getWidth(); x0 = (int)sizeOfDisplay - 20; x1 = (int)sizeOfDisplay - 15; x2 = (int)sizeOfDi...
public void draw(Graphics2D canvas, Dimension size, TimeEvent currentTime, AmpEvent currentAmp) { if(visible && !BasicSeismogramDisplay.PRINTING){ double sizeOfDisplay = size.getWidth(); x0 = (int)sizeOfDisplay - 20; x1 = (int)sizeOfDisplay - 15; x2 = (int)sizeOfDi...
1,117,793
public void draw(Graphics2D canvas, Dimension size, TimeEvent currentTime, AmpEvent currentAmp) { if(visible && !BasicSeismogramDisplay.PRINTING){ double sizeOfDisplay = size.getWidth(); x0 = (int)sizeOfDisplay - 20; x1 = (int)sizeOfDisplay - 15; x2 = (int)sizeOfDi...
public void draw(Graphics2D canvas, Dimension size, TimeEvent currentTime, AmpEvent currentAmp) { if(visible && !BasicSeismogramDisplay.PRINTING){ double sizeOfDisplay = size.getWidth(); x0 = (int)sizeOfDisplay - 20; x1 = (int)sizeOfDisplay - 15; x2 = (int)sizeOfDi...
1,117,794
public void eventPlayed(PlayEvent e){ playEvent = e; timeInterval = e.getTimeInterval(); isPlaying = true; display.repaint(); }
public void eventPlayed(PlayEvent e){ playEvent = e; timeInterval = e.getTimeInterval(); display.repaint(); }
1,117,795
public PlottableChunk[] get(MicroSecondTimeRange requestRange, ChannelId id, int pixelsPerDay) throws SQLException, IOException { int chanDbId; try { chanDbId = chanTable.getDBId(id); } catch(NotFound e) { ...
public PlottableChunk[] get(MicroSecondTimeRange requestRange, ChannelId id, int pixelsPerDay) throws SQLException, IOException { int chanDbId; try { chanDbId = chanTable.getDBId(id); } catch(NotFound e) { ...
1,117,796
public ParticleMotion(final DataSetSeismogram hseis, DataSetSeismogram vseis, TimeConfig tc, Color color, String key, boolean horizPlane) { DataSetSeismogra...
public ParticleMotion(final DataSetSeismogram hseis, DataSetSeismogram vseis, TimeConfig tc, Color color, String key, boolean horizPlane) { DataSetSeismogra...
1,117,797
public ParticleMotion(final DataSetSeismogram hseis, DataSetSeismogram vseis, TimeConfig tc, Color color, String key, boolean horizPlane) { DataSetSeismogra...
public ParticleMotion(final DataSetSeismogram hseis, DataSetSeismogram vseis, TimeConfig tc, Color color, String key, boolean horizPlane) { DataSetSeismogra...
1,117,798
public ParticleMotion(final DataSetSeismogram hseis, DataSetSeismogram vseis, TimeConfig tc, Color color, String key, boolean horizPlane) { DataSetSeismogra...
public ParticleMotion(final DataSetSeismogram hseis, DataSetSeismogram vseis, TimeConfig tc, Color color, String key, boolean horizPlane) { DataSetSeismogra...
1,117,799
public ParticleMotion(final DataSetSeismogram hseis, DataSetSeismogram vseis, TimeConfig tc, Color color, String key, boolean horizPlane) { DataSetSeismogra...
public ParticleMotion(final DataSetSeismogram hseis, DataSetSeismogram vseis, TimeConfig tc, Color color, String key, boolean horizPlane) { DataSetSeismogra...
1,117,800
public void updateAmp(AmpEvent ampEvent){ this.ampEvent = ampEvent; }
public void updateAmp(AmpEvent ampEvent){ this.ampEvent = ampEvent; }
1,117,801
public ParticleMotionView(ParticleMotionDisplay particleMotionDisplay) { this.particleMotionDisplay = particleMotionDisplay; addListeners(); }
public ParticleMotionView(ParticleMotionDisplay particleMotionDisplay) { this.particleMotionDisplay = particleMotionDisplay; addListeners(); }
1,117,802
public void addAzimuthLine(double degrees) { azimuths.add(new Double(degrees)); }
public void addAzimuthLine(double degrees) { azimuths.add(new Double(degrees)); }
1,117,803
public synchronized void addParticleMotionDisplay(DataSetSeismogram hseis, DataSetSeismogram vseis, TimeConfig tc, Color color, ...
public synchronized void addParticleMotionDisplay(DataSetSeismogram hseis, DataSetSeismogram vseis, TimeConfig tc, Color color, ...
1,117,804
public synchronized void drawAzimuth(ParticleMotion particleMotion, Graphics2D graphics2D) { if(!particleMotion.isHorizontalPlane()) return; Shape sector = getSectorShape(); graphics2D.setColor(new Color(100, 160, 140)); graphics2D.fill(sector); graphics2D.draw(sector); gra...
public synchronized void drawAzimuth(ParticleMotion particleMotion, Graphics2D graphics2D) { if(!particleMotion.isHorizontalPlane()) return; Shape sector = getSectorShape(); graphics2D.setPaint(Color.gray); graphics2D.fill(sector); graphics2D.draw(sector); graphics2D.setStr...
1,117,805
public synchronized void drawAzimuth(ParticleMotion particleMotion, Graphics2D graphics2D) { if(!particleMotion.isHorizontalPlane()) return; Shape sector = getSectorShape(); graphics2D.setColor(new Color(100, 160, 140)); graphics2D.fill(sector); graphics2D.draw(sector); gra...
public synchronized void drawAzimuth(ParticleMotion particleMotion, Graphics2D graphics2D) { if(!particleMotion.isHorizontalPlane()) return; Shape sector = getSectorShape(); graphics2D.setColor(new Color(100, 160, 140)); graphics2D.fill(sector); graphics2D.draw(sector); gra...
1,117,806
public synchronized void drawParticleMotion(ParticleMotion particleMotion, Graphics g) { Graphics2D graphics2D = (Graphics2D) g; if(!recalculateValues) { recalculateValues = false; graphics2D.draw(particleMotion.getShape()); return; } Dimension dimension ...
public synchronized void drawParticleMotion(ParticleMotion particleMotion, Graphics g) { Graphics2D graphics2D = (Graphics2D) g; if(!recalculateValues) { recalculateValues = false; graphics2D.draw(particleMotion.getShape()); return; } Dimension dimension ...
1,117,807
public synchronized void drawParticleMotion(ParticleMotion particleMotion, Graphics g) { Graphics2D graphics2D = (Graphics2D) g; if(!recalculateValues) { recalculateValues = false; graphics2D.draw(particleMotion.getShape()); return; } Dimension dimension ...
public synchronized void drawParticleMotion(ParticleMotion particleMotion, Graphics g) { Graphics2D graphics2D = (Graphics2D) g; if(!recalculateValues) { recalculateValues = false; graphics2D.draw(particleMotion.getShape()); return; } Dimension dimension ...
1,117,808
public synchronized void drawParticleMotion(ParticleMotion particleMotion, Graphics g) { Graphics2D graphics2D = (Graphics2D) g; if(!recalculateValues) { recalculateValues = false; graphics2D.draw(particleMotion.getShape()); return; } Dimension dimension ...
public synchronized void drawParticleMotion(ParticleMotion particleMotion, Graphics g) { Graphics2D graphics2D = (Graphics2D) g; if(!recalculateValues) { recalculateValues = false; graphics2D.draw(particleMotion.getShape()); return; } Dimension dimension ...
1,117,809
public synchronized void drawParticleMotion(ParticleMotion particleMotion, Graphics g) { Graphics2D graphics2D = (Graphics2D) g; if(!recalculateValues) { recalculateValues = false; graphics2D.draw(particleMotion.getShape()); return; } Dimension dimension ...
public synchronized void drawParticleMotion(ParticleMotion particleMotion, Graphics g) { Graphics2D graphics2D = (Graphics2D) g; if(!recalculateValues) { recalculateValues = false; graphics2D.draw(particleMotion.getShape()); return; } Dimension dimension ...
1,117,810
public synchronized void drawParticleMotion(ParticleMotion particleMotion, Graphics g) { Graphics2D graphics2D = (Graphics2D) g; if(!recalculateValues) { recalculateValues = false; graphics2D.draw(particleMotion.getShape()); return; } Dimension dimension ...
public synchronized void drawParticleMotion(ParticleMotion particleMotion, Graphics g) { Graphics2D graphics2D = (Graphics2D) g; if(!recalculateValues) { recalculateValues = false; graphics2D.draw(particleMotion.getShape()); return; } Dimension dimension ...
1,117,811
public synchronized void drawParticleMotion(ParticleMotion particleMotion, Graphics g) { Graphics2D graphics2D = (Graphics2D) g; if(!recalculateValues) { recalculateValues = false; graphics2D.draw(particleMotion.getShape()); return; } Dimension dimension ...
public synchronized void drawParticleMotion(ParticleMotion particleMotion, Graphics g) { Graphics2D graphics2D = (Graphics2D) g; if(!recalculateValues) { recalculateValues = false; graphics2D.draw(particleMotion.getShape()); return; } Dimension dimension ...
1,117,812
public void drawTitles(LocalSeismogramImpl hseis, LocalSeismogramImpl vseis) { particleMotionDisplay.setHorizontalTitle(hseis.getName()); particleMotionDisplay.setVerticalTitle(vseis.getName()); }
public void drawTitles(LocalSeismogramImpl hseis, LocalSeismogramImpl vseis) { particleMotionDisplay.setHorizontalTitle(hseis.getName()); particleMotionDisplay.setVerticalTitle(vseis.getName()); }
1,117,813
public ParticleMotion[] getSelectedParticleMotion() { ArrayList arrayList = new ArrayList(); for(int counter = 0; counter < displays.size(); counter++) { ParticleMotion particleMotion = (ParticleMotion)displays.get(counter); if(displayKeys.contains(particleMotion.key)) { ...
public ParticleMotion[] getSelectedParticleMotion() { ArrayList arrayList = new ArrayList(); for(int counter = 0; counter < displays.size(); counter++) { ParticleMotion particleMotion = (ParticleMotion)displays.get(counter); if(displayKeys.contains(particleMotion.key)) { ...
1,117,814
public synchronized void paintComponent(Graphics g) { if(displayKeys.size() == 0) return; Graphics2D graphics2D = (Graphics2D)g; vunitRangeImpl = new UnitRangeImpl(getMinVerticalAmplitude(), getMaxVerticalAmplitude(), ...
public synchronized void paintComponent(Graphics g) { if(displayKey == null) return; Graphics2D graphics2D = (Graphics2D)g; vunitRangeImpl = new UnitRangeImpl(getMinVerticalAmplitude(), getMaxVerticalAmplitude(), ...
1,117,815
public synchronized void paintComponent(Graphics g) { if(displayKeys.size() == 0) return; Graphics2D graphics2D = (Graphics2D)g; vunitRangeImpl = new UnitRangeImpl(getMinVerticalAmplitude(), getMaxVerticalAmplitude(), ...
public synchronized void paintComponent(Graphics g) { if(displayKeys.size() == 0) return; Graphics2D graphics2D = (Graphics2D)g; vunitRangeImpl = new UnitRangeImpl(getMinVerticalAmplitude(), getMaxVerticalAmplitude(), ...
1,117,816
public synchronized void paintComponent(Graphics g) { if(displayKeys.size() == 0) return; Graphics2D graphics2D = (Graphics2D)g; vunitRangeImpl = new UnitRangeImpl(getMinVerticalAmplitude(), getMaxVerticalAmplitude(), ...
public synchronized void paintComponent(Graphics g) { if(displayKeys.size() == 0) return; Graphics2D graphics2D = (Graphics2D)g; vunitRangeImpl = new UnitRangeImpl(getMinVerticalAmplitude(), getMaxVerticalAmplitude(), ...
1,117,817
public synchronized void resize() { setSize(super.getSize()); recalculateValues = true; repaint(); }
public synchronized void resize() { setSize(super.getSize()); repaint(); }
1,117,818
public void setDisplayKey(String key) { this.displayKey = key; }
public void setDisplayKey(String key) { displayKey = key; }
1,117,819
public synchronized void updateTime() { hunitRangeImpl = new UnitRangeImpl(getMinHorizontalAmplitude(), getMaxHorizontalAmplitude(), UnitImpl.COUNT); vunitRangeImpl = new UnitRangeImpl(getMinVerticalAmplitude(), ...
public synchronized void updateTime() { hunitRangeImpl = new UnitRangeImpl(getMinHorizontalAmplitude(), getMaxHorizontalAmplitude(), UnitImpl.COUNT); vunitRangeImpl = new UnitRangeImpl(getMinVerticalAmplitude(), ...
1,117,820
public void addSeisDataChangeListener(SeisDataChangeListener dataListener) { dssDataListeners.add(dataListener); }
public void addSeisDataChangeListener(SeisDataChangeListener dataListener) { synchronized(dssDataListeners){ dssDataListeners.add(dataListener); } }
1,117,821
public boolean mouseClicked(MouseEvent e){ if (currentPopup != null){ currentPopup.setVisible(false); currentPopup = null; } synchronized(circles){ Iterator it = circles.iterator(); List eventsUnderMouse = new ArrayList(); while(it.hasNext()){ OMEvent current = (OMEvent)it.next(); if(current.ge...
public boolean mouseClicked(MouseEvent e){ if (currentPopup != null){ currentPopup.setVisible(false); currentPopup = null; } synchronized(circles){ Iterator it = circles.iterator(); List eventsUnderMouse = new ArrayList(); while(it.hasNext()){ OMEvent current = (OMEvent)it.next(); if(current.ge...
1,117,822
public static StationId getStationId(Element base) { //get the network_id NodeList network_id_node = XMLUtil.evalNodeList(base, "network_id"); NetworkId network_id = null; if(network_id_node != null && network_id_node.getLength() != 0) { network_id = XMLNetworkId.getNetworkId((Element)network_id_node.item(0)); ...
public static StationId getStationId(Element base) { //get the network_id NodeList network_id_node = XMLUtil.evalNodeList(base, "network_id"); NetworkId network_id = null; if(network_id_node != null && network_id_node.getLength() != 0) { network_id = XMLNetworkId.getNetworkId((Element)network_id_node.item(0)); ...
1,117,825
public abstract void fireAmpRangeEvent(AmpSyncEvent event);
public void fireAmpRangeEvent(AmpSyncEvent event){ double begin = event.getBegin(); double end = event.getEnd(); if(this.ampRange == null) { this.ampRange = new UnitRangeImpl(begin, end, UnitImpl.COUNT); } else { this.ampRange = new UnitRangeImpl(begin, end, UnitImpl.COUNT); } this.updateAmpSyncListeners(); }
1,117,826
public void addTab(IPanel panel) { int index = getTabCount(); String title = panel.getTitle(); Icon icon = panel.getIcon(); Component component = panel.getPanelInstance(); table.put(component, panel); if (title == null || title.length() == 0) { title = Messages.getString("TabBar.UNTITLED"); //$NON-NLS-1$ ...
public void addTab(IPanel panel) { int index = getTabCount(); String title = panel.getTitle(); Icon icon = panel.getIcon(); Component component = panel.getPanelInstance(); if (title == null || title.length() == 0) { title = Messages.getString("TabBar.UNTITLED"); //$NON-NLS-1$ } super.insertTab(title, ...
1,117,827
private String executeQueries(SQLQuery query, int numberOfRows, QueryToSQLBridge bridge, List executedSQLStatements, IWResourceBundle resourceBundle, IWContext iwc) throws RemoteException { QueryResult queryResult = bridge.executeQueries(query, numberOfRows, executedSQLStatements); // check if everything is fine if...
private String executeQueries(SQLQuery query, int numberOfRows, QueryToSQLBridge bridge, List executedSQLStatements, IWResourceBundle resourceBundle, IWContext iwc) throws RemoteException { QueryResult queryResult = bridge.executeQueries(query, numberOfRows, executedSQLStatements); // check if everything is fine if...
1,117,830
private String executeQueries(SQLQuery query, int numberOfRows, QueryToSQLBridge bridge, List executedSQLStatements, IWResourceBundle resourceBundle, IWContext iwc) throws RemoteException { QueryResult queryResult = bridge.executeQueries(query, numberOfRows, executedSQLStatements); // check if everything is fine if...
private String executeQueries(SQLQuery query, int numberOfRows, QueryToSQLBridge bridge, List executedSQLStatements, IWResourceBundle resourceBundle, IWContext iwc) throws RemoteException { QueryResult queryResult = bridge.executeQueries(query, numberOfRows, executedSQLStatements); // check if everything is fine if...
1,117,831
private String executeQueries(SQLQuery query, int numberOfRows, QueryToSQLBridge bridge, List executedSQLStatements, IWResourceBundle resourceBundle, IWContext iwc) throws RemoteException { QueryResult queryResult = bridge.executeQueries(query, numberOfRows, executedSQLStatements); // check if everything is fine if...
private String executeQueries(SQLQuery query, int numberOfRows, QueryToSQLBridge bridge, List executedSQLStatements, IWResourceBundle resourceBundle, IWContext iwc) throws RemoteException { QueryResult queryResult = bridge.executeQueries(query, numberOfRows, executedSQLStatements); // check if everything is fine if...
1,117,832
private DesignBox getDesignBox(SQLQuery query, JasperReportBusiness reportBusiness, IWResourceBundle resourceBundle, IWContext iwc) { DesignBox design = null; try { if (designId > 0) { design = reportBusiness.getDesignBox(designId); } else { design = reportBusiness.getDynamicDesignBox(que...
private DesignBox getDesignBox(SQLQuery sqlQuery, JasperReportBusiness reportBusiness, IWResourceBundle resourceBundle, IWContext iwc) { DesignBox design = null; try { if (designId > 0) { design = reportBusiness.getDesignBox(designId); } else { design = reportBusiness.getDynamicDesignBox(...
1,117,833
private DesignBox getDesignBox(SQLQuery query, JasperReportBusiness reportBusiness, IWResourceBundle resourceBundle, IWContext iwc) { DesignBox design = null; try { if (designId > 0) { design = reportBusiness.getDesignBox(designId); } else { design = reportBusiness.getDynamicDesignBox(que...
private DesignBox getDesignBox(SQLQuery query, JasperReportBusiness reportBusiness, IWResourceBundle resourceBundle, IWContext iwc) { DesignBox design = null; try { if (designId > 0) { design = reportBusiness.getDesignBox(designId); } else { design = reportBusiness.getDynamicDesignBox(sql...
1,117,834
private Map getModifiedIdentiferValueMapByParsingRequest(Map identifierValueMap, IWContext iwc) { Map result = new HashMap(); Iterator iterator = identifierValueMap.keySet().iterator(); while (iterator.hasNext()) { String key = (String) iterator.next(); if (iwc.isParameterSet(key)) { String[] value = iwc.get...
private Map getModifiedIdentiferValueMapByParsingRequest(Map identifierValueMap, IWContext iwc) { Map result = new HashMap(); Iterator iterator = identifierValueMap.keySet().iterator(); while (iterator.hasNext()) { String key = (String) iterator.next(); if (iwc.isParameterSet(key)) { String[] value = iwc.get...
1,117,835
private void showInputFields(SQLQuery query, Map identifierValueMap, Map identifierInputDescriptionMap, IWResourceBundle resourceBundle, IWContext iwc) { String name = query.getName(); String description = query.getQueryDescription(); PresentationObject presentationObject = getInputFields(name, description, iden...
private void showInputFields(SQLQuery query, Map identifierValueMap, Map identifierInputDescriptionMap, IWResourceBundle resourceBundle, IWContext iwc) { String name = query.getName(); String description = query.getQueryDescription(); PresentationObject presentationObject = getInputFields(name, description, iden...
1,117,836
public ParticleMotionDisplay(DataSetSeismogram hseis, TimeConfigRegistrar timeConfigRegistrar, AmpConfigRegistrar hAmpConfigRegistrar, AmpConfigRegistrar vAmpConfigRegistrar, Color color, boolean advancedOption) { JFrame displayFrame = new JFrame(); JPanel informationPanel = new JPanel(); Stri...
public ParticleMotionDisplay(DataSetSeismogram hseis, TimeConfigRegistrar timeConfigRegistrar, AmpConfigRegistrar hAmpConfigRegistrar, AmpConfigRegistrar vAmpConfigRegistrar, Color color, boolean advancedOption) { JFrame displayFrame = new JFrame(); JPanel informationPanel = new JPanel(); Stri...
1,117,837
public ParticleMotionDisplay(DataSetSeismogram hseis, TimeConfigRegistrar timeConfigRegistrar, AmpConfigRegistrar hAmpConfigRegistrar, AmpConfigRegistrar vAmpConfigRegistrar, Color color, boolean advancedOption) { JFrame displayFrame = new JFrame(); JPanel informationPanel = new JPanel(); Stri...
public ParticleMotionDisplay(DataSetSeismogram hseis, TimeConfigRegistrar timeConfigRegistrar, AmpConfigRegistrar hAmpConfigRegistrar, AmpConfigRegistrar vAmpConfigRegistrar, Color color, boolean advancedOption) { JFrame displayFrame = new JFrame(); JPanel informationPanel = new JPanel(); Stri...
1,117,838
public ParticleMotionDisplay(DataSetSeismogram hseis, TimeConfigRegistrar timeConfigRegistrar, AmpConfigRegistrar hAmpConfigRegistrar, AmpConfigRegistrar vAmpConfigRegistrar, Color color, boolean advancedOption) { JFrame displayFrame = new JFrame(); JPanel informationPanel = new JPanel(); Stri...
public ParticleMotionDisplay(DataSetSeismogram hseis, TimeConfigRegistrar timeConfigRegistrar, AmpConfigRegistrar hAmpConfigRegistrar, AmpConfigRegistrar vAmpConfigRegistrar, Color color, boolean advancedOption) { JFrame displayFrame = new JFrame(); JPanel informationPanel = new JPanel(); Stri...
1,117,839
public void initializeAttributes() { addAttribute(getIDColumnName()); addAttribute(getAuthorisationAmountColumnName(), "", true, true, java.lang.String.class, 20); addAttribute(getAuthorisationCurrencyColumnName(), "", true, true, java.lang.String.class, 6); addAttribute(getAuthorisationCodeColumnName(), ...
public void initializeAttributes() { addAttribute(getIDColumnName()); addAttribute(getAuthorisationAmountColumnName(), "", true, true, java.lang.String.class, 20); addAttribute(getAuthorisationCurrencyColumnName(), "", true, true, java.lang.String.class, 6); addAttribute(getAuthorisationCodeColumnName(), ...
1,117,842
public synchronized void resize() { if(getSize().width == 0 || getSize().height == 0) return; Dimension dim = view.getSize(); logger.debug("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! IN RESIZE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"); logger.debug("view...
public synchronized void resize() { if(getSize().width == 0 || getSize().height == 0) return; Dimension dim = view.getSize(); logger.debug("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! IN RESIZE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"); logger.debug("view...
1,117,843
public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { CalSvcI svci = form.fetchSvci(); boolean alerts = form.getAlertEvent(); /** Check access and set request parameters */ if (alerts) { if (!form.g...
public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { CalSvcI svci = form.fetchSvci(); boolean alerts = form.getAlertEvent(); /** Check access and set request parameters */ if (alerts) { if (!form.g...
1,117,844
public Channel findCloseChannel(Channel newChannel, QuantityImpl distance) throws SQLException, NotFound { Channel[] channel = chanTable.getAllChannels(); for(int i = 0; i < channel.length; i++) { Location locationFromDatabase = channel[i].my_site.my_location; DistAz d...
public Channel findCloseChannel(Channel newChannel, QuantityImpl distance) throws SQLException, NotFound { Channel[] channel = chanTable.getAllChannels(); for(int i = 0; i < channel.length; i++) { Location locationFromDatabase = channel[i].my_site.my_location; DistAz d...
1,117,845
public void setChannelBeginTimeToEarliest(Channel channelFromDatabase, Channel newChannel) throws SQLException, NotFound{ MicroSecondDate newChannelBeginTime = new MicroSecondDate(newChannel.get_id().begin_time); MicroSecondDate channelFromDataba...
public void setChannelBeginTimeToEarliest(Channel channelFromDatabase, Channel newChannel) throws SQLException, NotFound{ MicroSecondDate newChannelBeginTime = new MicroSecondDate(newChannel.get_id().begin_time); MicroSecondDate channelFromDataba...
1,117,846
public OpenMap(ChannelChooser chooser, EventTableModel etm, ListSelectionModel lsm){ try{ Environment.set(Environment.BackgroundColor,"36B3DD"); MapHandler mapHandler = new MapHandler(); mapHandler.add(this); // Create a MapBean MapBean mapBean = new Map...
public OpenMap(ChannelChooser chooser, EventTableModel etm, ListSelectionModel lsm){ try{ MapHandler mapHandler = new MapHandler(); mapHandler.add(this); // Create a MapBean MapBean mapBean = new MapBean(); // Set the map's scale 1:120 millio...
1,117,847
public OpenMap(ChannelChooser chooser, EventTableModel etm, ListSelectionModel lsm){ try{ Environment.set(Environment.BackgroundColor,"36B3DD"); MapHandler mapHandler = new MapHandler(); mapHandler.add(this); // Create a MapBean MapBean mapBean = new Map...
public OpenMap(ChannelChooser chooser, EventTableModel etm, ListSelectionModel lsm){ try{ Environment.set(Environment.BackgroundColor,"36B3DD"); MapHandler mapHandler = new MapHandler(); mapHandler.add(this); // Create a MapBean MapBean mapBean = new Map...
1,117,848
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } CalSvcI svc = form.getCa...
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } CalSvcI svc = form.getCa...
1,117,849
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } CalSvcI svc = form.getCa...
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } CalSvcI svc = form.getCa...
1,117,850
private String executeQueries(SQLQuery query, QueryToSQLBridge bridge, List executedSQLStatements, IWResourceBundle resourceBundle, IWContext iwc) throws RemoteException { QueryResult queryResult = bridge.executeQueries(query, executedSQLStatements); // check if everything is fine if (queryResult == null || queryRe...
private String executeQueries(SQLQuery query, QueryToSQLBridge bridge, List executedSQLStatements, IWResourceBundle resourceBundle, IWContext iwc) throws RemoteException { QueryResult queryResult = bridge.executeQueries(query, executedSQLStatements); // check if everything is fine if (queryResult == null || queryRe...
1,117,851
public CalSvcI getSvci() throws WebdavIntfException { boolean publicMode = (account == null); if (svci != null) { if (!svci.isOpen()) { try { svci.open(); svci.beginTransaction(); } catch (Throwable t) { throw new WebdavIntfException(t); } } return ...
public CalSvcI getSvci() throws WebdavIntfException { if (svci != null) { if (!svci.isOpen()) { try { svci.open(); svci.beginTransaction(); } catch (Throwable t) { throw new WebdavIntfException(t); } } return svci; } try { svci = new Cal...
1,117,854
public CalSvcI getSvci() throws WebdavIntfException { boolean publicMode = (account == null); if (svci != null) { if (!svci.isOpen()) { try { svci.open(); svci.beginTransaction(); } catch (Throwable t) { throw new WebdavIntfException(t); } } return ...
public CalSvcI getSvci() throws WebdavIntfException { boolean publicMode = (account == null); if (svci != null) { if (!svci.isOpen()) { try { svci.open(); svci.beginTransaction(); } catch (Throwable t) { throw new WebdavIntfException(t); } } return ...
1,117,855
public boolean init(String url, String authenticatedUser, String user, boolean publicAdmin, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.url = url; this...
public boolean init(String systemName, String url, String authenticatedUser, String user, boolean publicAdmin, Groups groups, String synchId, boolean debug) throws CalFacadeException { this...
1,117,856
public void setAmpConfig(AmpConfig ac){ if(ampConfig != null) ampConfig.removeListener(this); ampConfig = ac; ac.addListener(this); }
public void setAmpConfig(AmpConfig ac){ if(ampConfig != null) ampConfig.removeListener(this); ampConfig = ac; ac.addListener(this); }
1,117,858
public static Date fromISODate(String val) throws CalFacadeException { try { return isoDateFormat.parse(val); } catch (Throwable t) { throw new CalFacadeBadDateException(); } }
public static Date fromISODate(String val) throws CalFacadeException { try { synchronized (isoDateFormat) { return isoDateFormat.parse(val); } } catch (Throwable t) { throw new CalFacadeBadDateException(); } }
1,117,859
public static Date fromISODateTime(String val) throws CalFacadeException { try { return isoDateTimeFormat.parse(val); } catch (Throwable t) { throw new CalFacadeBadDateException(); } }
public static Date fromISODateTime(String val) throws CalFacadeException { try { synchronized (isoDateTimeFormat) { return isoDateTimeFormat.parse(val); } } catch (Throwable t) { throw new CalFacadeBadDateException(); } }
1,117,860
public static Date getDate(BwDateTime val) throws CalFacadeException { String dtval = val.getDtval(); try { if (val.getDateType()) { return isoDateFormat.parse(dtval); } if (dtval.endsWith("Z")) { return isoDateTimeUTCFormat.parse(dtval); } return isoDateTimeFormat.parse(d...
public static Date getDate(BwDateTime val) throws CalFacadeException { String dtval = val.getDtval(); try { if (val.getDateType()) { return fromISODate(dtval); } if (dtval.endsWith("Z")) { return isoDateTimeUTCFormat.parse(dtval); } return isoDateTimeFormat.parse(dtval); ...
1,117,861
public static Date getDate(BwDateTime val) throws CalFacadeException { String dtval = val.getDtval(); try { if (val.getDateType()) { return isoDateFormat.parse(dtval); } if (dtval.endsWith("Z")) { return isoDateTimeUTCFormat.parse(dtval); } return isoDateTimeFormat.parse(d...
public static Date getDate(BwDateTime val) throws CalFacadeException { String dtval = val.getDtval(); try { if (val.getDateType()) { return isoDateFormat.parse(dtval); } if (dtval.endsWith("Z")) { return fromISODateTimeUTC(dtval); } return isoDateTimeFormat.parse(dtval); ...
1,117,862
public static Date getDate(BwDateTime val) throws CalFacadeException { String dtval = val.getDtval(); try { if (val.getDateType()) { return isoDateFormat.parse(dtval); } if (dtval.endsWith("Z")) { return isoDateTimeUTCFormat.parse(dtval); } return isoDateTimeFormat.parse(d...
public static Date getDate(BwDateTime val) throws CalFacadeException { String dtval = val.getDtval(); try { if (val.getDateType()) { return isoDateFormat.parse(dtval); } if (dtval.endsWith("Z")) { return isoDateTimeUTCFormat.parse(dtval); } return fromISODateTime(dtval); ...
1,117,863
public static boolean isISODate(String val) throws CalFacadeException { try { isoDateFormat.parse(val); return true; } catch (Throwable t) { return false; } }
public static boolean isISODate(String val) throws CalFacadeException { try { fromISODate(val); return true; } catch (Throwable t) { return false; } }
1,117,864
public static boolean isISODateTime(String val) throws CalFacadeException { try { isoDateTimeFormat.parse(val); return true; } catch (Throwable t) { return false; } }
public static boolean isISODateTime(String val) throws CalFacadeException { try { fromISODateTime(val); return true; } catch (Throwable t) { return false; } }
1,117,865
public static boolean isISODateTimeUTC(String val) throws CalFacadeException { try { isoDateTimeUTCFormat.parse(val); return true; } catch (Throwable t) { return false; } }
public static boolean isISODateTimeUTC(String val) throws CalFacadeException { try { fromISODateTimeUTC(val); return true; } catch (Throwable t) { return false; } }
1,117,866
public static String isoDate(Date val) { return isoDateFormat.format(val); }
public static String isoDate(Date val) { synchronized (isoDateFormat) { return isoDateFormat.format(val); } }
1,117,867
public static String isoDateTime(Date val) { return isoDateTimeFormat.format(val); }
public static String isoDateTime(Date val) { synchronized (isoDateTimeFormat) { return isoDateTimeFormat.format(val); } }
1,117,868
public static String isoDateTimeUTC(Date val) { return isoDateTimeUTCFormat.format(val); }
public static String isoDateTimeUTC(Date val) { synchronized (isoDateTimeUTCFormat) { return isoDateTimeUTCFormat.format(val); } }
1,117,869
public static void gotoDateView(BwCalAbstractAction action, BwActionForm form, String date, int newViewTypeI, boolean debug) throws Throwable { /* We get a new view if either the date...
public static void gotoDateView(BwCalAbstractAction action, BwActionForm form, String date, int newViewTypeI, boolean debug) throws Throwable { /* We get a new view if either the date...
1,117,870
protected void setUp() throws Exception { map_ = new FieldMap(); assertTrue(map_.put(AGSymbol.alloc("x"))); map_.put(AGSymbol.alloc("y")); map_.put(AGSymbol.alloc("z")); map_.put(AGSymbol.alloc("u")); assertTrue(map_.put(AGSymbol.alloc("v"))); map_.put(AGSymbol.alloc("w")); map_.put(AGSymbol.alloc("a")); map_...
protected void setUp() throws Exception { map_ = new FieldMap(); assertTrue(map_.put(AGSymbol.alloc("x"))); map_.put(AGSymbol.alloc("y")); map_.put(AGSymbol.alloc("z")); map_.put(AGSymbol.alloc("u")); assertTrue(map_.put(AGSymbol.alloc("v"))); map_.put(AGSymbol.alloc("w")); map_.put(AGSymbol.alloc("a")); map_...
1,117,871
public void testMap() { assertEquals(0, map_.get(AGSymbol.alloc("x"))); assertEquals(1, map_.get(AGSymbol.alloc("y"))); assertEquals(2, map_.get(AGSymbol.alloc("z"))); assertEquals(3, map_.get(AGSymbol.alloc("u"))); assertEquals(4, map_.get(AGSymbol.alloc("v"))); assertEquals(5, map_.get(AGSymbol.alloc("w"))); ...
public void testMap() { assertEquals(0, map_.get(AGSymbol.alloc("x"))); assertEquals(1, map_.get(AGSymbol.alloc("y"))); assertEquals(2, map_.get(AGSymbol.alloc("z"))); assertEquals(3, map_.get(AGSymbol.alloc("u"))); assertEquals(4, map_.get(AGSymbol.alloc("v"))); assertEquals(5, map_.get(AGSymbol.alloc("w"))); ...
1,117,872
protected void setUp() throws Exception { ATObject root = new NATObject(NATNil._INSTANCE_); // object with no dyn or lex parent ATObject supr = new NATObject(root); // supr has root as lex parent ATObject self = new NATObject(supr, root, NATObject._SHARES_A_); // self has root as lex parent and supr as dyn parent ...
protected void setUp() throws Exception { ATObject root = new NATObject(NATNil._INSTANCE_); // object with no dyn or lex parent ATObject supr = new NATObject(root); // supr has root as lex parent ATObject self = new NATObject(supr, root, NATObject._SHARES_A_); // self has root as lex parent and supr as dyn parent ...
1,117,873
protected void setUp() throws Exception { ATObject root = new NATObject(NATNil._INSTANCE_); // object with no dyn or lex parent ATObject supr = new NATObject(root); // supr has root as lex parent ATObject self = new NATObject(supr, root, NATObject._SHARES_A_); // self has root as lex parent and supr as dyn parent ...
protected void setUp() throws Exception { ATObject root = new NATObject(NATNil._INSTANCE_); // object with no dyn or lex parent ATObject supr = new NATObject(root); // supr has root as lex parent ATObject self = new NATObject(supr, root, NATObject._SHARES_A_); // self has root as lex parent and supr as dyn parent ...
1,117,874
NATIntrospectiveMirror(ATObject representation) { principal_ = representation; }
private NATIntrospectiveMirror(ATObject representation) { principal_ = representation; }
1,117,875