rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
MainFrame.getInstance().dispose(); | if (MainFrame.getInstance() != null) { MainFrame.getInstance().dispose(); } | public static void askToExit() { if (MainConfiguration.PROPS.getBoolean("gui.asktoexit")) { //$NON-NLS-1$ int i = JOptionPane.showConfirmDialog(null, Messages.getString("Util.19"), //$NON-NLS-1$ Messages.getString("Util.20"), JOptionPane.YES_NO_OPTION); //$NON-NLS-2$ if (i != JOptionPane.YES_OPTION) { retu... |
Idea oldSelected = newSelected; | Idea oldSelected = this.selected; | public void setSelected(Idea newSelected) { Idea oldSelected = newSelected; if (this.selected != null) { this.selected.setSelected(false); } this.selected = newSelected; if (this.selected != null) { this.selected.setSelected(true); } firePropert... |
public Idea(String text) { setText(text); | public Idea() { | public Idea(String text) { setText(text); } |
createMinuteSecondFormats(minSecDivs, borderFormats); | protected List createFormats(){ List borderFormats = new ArrayList(); borderFormats.add(new TimeBorderFormat("mm:ss.SSS", new TimeInterval(1, UnitImpl.MILLISECOND))); borderFormats.add(new TimeBorderFormat("mm:ss.SSS", ... | |
private void createHourFormat(double minutesPerDivision, int divPerLabel, List recip){ TimeInterval inter = new TimeInterval(minutesPerDivision, UnitImpl.MINUTE); | private void createHourFormat(double minutesPerDivision, int divPerLabel, List recip, UnitImpl unit){ TimeInterval inter = new TimeInterval(minutesPerDivision, unit); | private void createHourFormat(double minutesPerDivision, int divPerLabel, List recip){ TimeInterval inter = new TimeInterval(minutesPerDivision, UnitImpl.MINUTE); recip.add(new TimeBorderFormat("HH:mm:ss", inter, divPerLabel)); } |
createHourFormat(minDivs[i][0], (int)minDivs[i][1], recip); | createHourFormat(minDivs[i][0], (int)minDivs[i][1], recip, UnitImpl.MINUTE); | private void createMinuteFormats(double[][] minDivs, List recip){ for (int i = 0; i < minDivs.length; i++) { createHourFormat(minDivs[i][0], (int)minDivs[i][1], recip); } } |
public MicroSecondTimeRange(MicroSecondDate beginTime, TimeInterval interval){ this.beginTime = beginTime; this.endTime = beginTime.add(interval); this.interval = interval; } | public MicroSecondTimeRange(RequestFilter rf){ this(new MicroSecondDate(rf.start_time), new MicroSecondDate(rf.end_time)); } | public MicroSecondTimeRange(MicroSecondDate beginTime, TimeInterval interval){ this.beginTime = beginTime; this.endTime = beginTime.add(interval); this.interval = interval; } |
public ATNumber base_inc() { | public ATNumeric base_inc() { | public ATNumber base_inc() { return NATNumber.atValue(javaValue+1); } |
public ATNumber base_abs() { | public ATNumeric base_abs() { | public ATNumber base_abs() { return NATNumber.atValue(Math.abs(javaValue)); } |
public Events(Calintf cal, AccessUtil access, HibSession sess, BwUser user, boolean debug) { this.cal = cal; this.access = access; this.sess = sess; this.user = user; this.debug = debug; | public Events(Calintf cal, AccessUtil access, BwUser user, boolean debug) { super(cal, access, user, debug); | public Events(Calintf cal, AccessUtil access, HibSession sess, BwUser user, boolean debug) { this.cal = cal; this.access = access; this.sess = sess; this.user = user; this.debug = debug; Properties uidprops = new Properties(); uidprops.setProperty("separator", "-"); uuidGen = ne... |
HibSession sess = getSess(); | public void addEvent(BwEvent val, Collection overrides) throws CalFacadeException { RecuridTable recurids = null; if ((overrides != null) && (overrides.size() != 0)) { if (!val.getRecurring()) { throw new CalFacadeException("Master event not recurring"); } recurids = new RecuridTable(overr... | |
sess.saveOrUpdate(override); | getSess().saveOrUpdate(override); | private void addOverride(BwEventProxy proxy, BwRecurrenceInstance inst) throws CalFacadeException { BwEventAnnotation override = proxy.getRef(); override.setOwner(user); sess.saveOrUpdate(override); inst.setOverride(override); } |
HibSession sess = getSess(); | private int deleteAlarms(BwEvent ev) throws CalFacadeException { sess.namedQuery("deleteEventAlarms"); sess.setEntity("ev", ev); return sess.executeUpdate(); } | |
HibSession sess = getSess(); | public DelEventResult deleteEvent(BwEvent val) throws CalFacadeException { DelEventResult der = new DelEventResult(false, 0); der.alarmsDeleted = deleteAlarms(val); StringBuffer sb = new StringBuffer(); /* SEG: delete from recurrences recur where */ sb.append("delete from "); sb.append(BwRecurrenc... | |
HibSession sess = getSess(); | private void doCalendarEntities(boolean setUser, BwCalendar calendar) throws CalFacadeException { if (setUser) { sess.setEntity("user", user); } if (calendar != null) { if (calendar.getCalendarCollection()) { // Single leaf calendar sess.setEntity("calendar", calendar); ... | |
HibSession sess = getSess(); | private void eventQuery(Class cl, String guid, String rid, Integer seqnum, boolean masterOnly) throws CalFacadeException { StringBuffer sb = new StringBuffer(); /* SEG: from Events ev where */ sb.append("from "); sb.append(cl.getName()); sb.append(" ev "); sb.append(" wher... | |
public BwEvent getEvent(int id) throws CalFacadeException { Criteria cr = sess.createCriteria(BwEventObj.class); | public Collection getEvent(String guid, String rid, Integer seqnum, int recurRetrieval) throws CalFacadeException { BwEvent ev = null; BwEvent master = null; TreeSet ts = new TreeSet(); HibSession sess = getSess(); | public BwEvent getEvent(int id) throws CalFacadeException { Criteria cr = sess.createCriteria(BwEventObj.class); cr.add(Expression.eq("id", new Integer(id))); BwEvent ev = (BwEvent)sess.getUnique(); if (!access.accessible(ev, privRead, noAccessReturnsNull)) { return null; } return ev; } |
cr.add(Expression.eq("id", new Integer(id))); | if (rid == null) { eventQuery(BwEventObj.class, guid, rid, seqnum, true); | public BwEvent getEvent(int id) throws CalFacadeException { Criteria cr = sess.createCriteria(BwEventObj.class); cr.add(Expression.eq("id", new Integer(id))); BwEvent ev = (BwEvent)sess.getUnique(); if (!access.accessible(ev, privRead, noAccessReturnsNull)) { return null; } return ev; } |
BwEvent ev = (BwEvent)sess.getUnique(); | public BwEvent getEvent(int id) throws CalFacadeException { Criteria cr = sess.createCriteria(BwEventObj.class); cr.add(Expression.eq("id", new Integer(id))); BwEvent ev = (BwEvent)sess.getUnique(); if (!access.accessible(ev, privRead, noAccessReturnsNull)) { return null; } return ev; } | |
if (!access.accessible(ev, privRead, noAccessReturnsNull)) { return null; | ev = postGetEvent((BwEvent)sess.getUnique(), privRead, noAccessReturnsNull); if (ev == null) { return ts; } master = ev; if (!user.equals(ev.getOwner())) { eventQuery(BwEventAnnotation.class, guid, rid, seqnum, true); BwEventAnnotation ann = (BwEventAnnotation)postGetEvent((BwEvent)sess.getUnique(), privRead, noAcc... | public BwEvent getEvent(int id) throws CalFacadeException { Criteria cr = sess.createCriteria(BwEventObj.class); cr.add(Expression.eq("id", new Integer(id))); BwEvent ev = (BwEvent)sess.getUnique(); if (!access.accessible(ev, privRead, noAccessReturnsNull)) { return null; } return ev; } |
return ev; | eventQuery(BwEventAnnotation.class, guid, rid, seqnum, false); BwEventAnnotation override = (BwEventAnnotation)sess.getUnique(); BwEventProxy proxy; if (override != null) { proxy = makeProxy(null, override, null, CalFacadeDefs.retrieveRecurExpanded); } else { StringBuffer sb = new StringBuffer(); sb.append("from ")... | public BwEvent getEvent(int id) throws CalFacadeException { Criteria cr = sess.createCriteria(BwEventObj.class); cr.add(Expression.eq("id", new Integer(id))); BwEvent ev = (BwEvent)sess.getUnique(); if (!access.accessible(ev, privRead, noAccessReturnsNull)) { return null; } return ev; } |
HibSession sess = getSess(); | public Collection getEvents(BwCalendar calendar, BwFilter filter, BwDateTime startDate, BwDateTime endDate, int recurRetrieval, int currentMode, boolean ignoreCreator) throws CalFacadeException { StringBuffer sb = new S... | |
HibSession sess = getSess(); | public Collection getEventsByName(BwCalendar cal, String val) throws CalFacadeException { sess.namedQuery("eventsByName"); sess.setString("name", val); sess.setEntity("cal", cal); Collection evs = sess.getList(); return postGetEvents(evs, privRead, noAccessReturnsNull); } | |
HibSession sess = getSess(); | private Collection getLimitedRecurrences(BwCalendar calendar, BwFilter filter, BwDateTime startDate, BwDateTime endDate, int currentMode, boolean ignoreCreator, int recurRetrieval) th... | |
if (!access.accessible(ev, desiredAccess, noAccessReturnsNull)) { | if (!access.accessible(ev, desiredAccess, nullForNoAccess)) { | private BwEvent postGetEvent(BwEvent ev, int desiredAccess, boolean nullForNoAccess) throws CalFacadeException { if (ev == null) { return null; } if (!access.accessible(ev, desiredAccess, noAccessReturnsNull)) { return null; } /* XXX-ALARM if (currentMode == u... |
if (access.accessible(ev, desiredAccess, noAccessReturnsNull)) { | if (access.accessible(ev, desiredAccess, nullForNoAccess)) { | private Collection postGetEvents(Collection evs, int desiredAccess, boolean nullForNoAccess) throws CalFacadeException { TreeSet outevs = new TreeSet(); Iterator it = evs.iterator(); while (it.hasNext()) { BwEvent ev = (BwEvent)it.next(); if (access.access... |
sess.setEntity("calendar" + calTerm.i, calendar); | getSess().setEntity("calendar" + calTerm.i, calendar); | private void setCalendarEntities(BwCalendar calendar, CalTerm calTerm) throws CalFacadeException { if (calendar.getCalendarCollection()) { // leaf calendar sess.setEntity("calendar" + calTerm.i, calendar); calTerm.i++; } else { Iterator it = calendar.getChildren().iterator(); w... |
HibSession sess = getSess(); | public void updateEvent(BwEvent val) throws CalFacadeException { if (!(val instanceof BwEventProxy)) { sess.saveOrUpdate(val); if (val.getRecurring()) { /* Check the instances and see if any changes need to be made. */ updateRecurrences(val); } return; } /* Save the ... | |
HibSession sess = getSess(); | private void updateRecurrences(BwEvent val) throws CalFacadeException { VEvent vev = VEventUtil.toIcalEvent(val, null); /* Determine the absolute latest date. */ Date latest = VEventUtil.getLatestRecurrenceDate(vev, debug); if (latest == null) { /* Unlimited recurrences. No more to do here * We... | |
public CalFacadeException(String s) { super(s); | public CalFacadeException() { super(); | public CalFacadeException(String s) { super(s); } |
public TimeZone getTimeZone(final String id) throws CalFacadeException; | public abstract TimeZone getTimeZone(final String id) throws CalFacadeException; | public TimeZone getTimeZone(final String id) throws CalFacadeException; |
public String getUtc(String time, String tzid, TimeZone tz) throws CalFacadeException; | public synchronized String getUtc(String time, String tzid, TimeZone tz) throws CalFacadeException { if (CalFacadeUtil.isISODateTimeUTC(time)) { return time; } if (CalFacadeUtil.isISODate(time)) { time += "T000000"; } else if (!CalFacadeUtil.isISODateTime(time)) { throw new CalFacadeBadDateException(); } try { b... | public String getUtc(String time, String tzid, TimeZone tz) throws CalFacadeException; |
boolean all = (currentMode == guestMode) || ignoreCreator; | boolean all = publicEvents || ignoreCreator; | static boolean appendPublicOrCreatorTerm(StringBuffer sb, String entName, int currentMode, boolean ignoreCreator) throws CalFacadeException { boolean publicEvents = (currentMode == guestMode) || (currentMode == publicAdminMode); bool... |
public MemoryDataSetSeismogram(LocalSeismogramImpl seis) { this(makeSeisArray(seis), null); } | public MemoryDataSetSeismogram(RequestFilter requestFilter, String name) { super(null, name, requestFilter); seisCache = new LocalSeismogramImpl[0]; } | public MemoryDataSetSeismogram(LocalSeismogramImpl seis) { this(makeSeisArray(seis), null); } |
System.out.println(seismo + " amp range: " + min + ", " + max + " Points: " + seisIndex[0] + ", " + seisIndex[1]); | private boolean setAmpRange(DataSetSeismogram seismo){ AmpConfigData data = (AmpConfigData)ampData.get(seismo); LocalSeismogramImpl seis = (LocalSeismogramImpl)seismo.getSeismogram(); int[] seisIndex = DisplayUtils.getSeisPoints(seis, data.getTime()); if(seisIndex[1] < 0 || seisIndex[0] ... | |
public double[] minMaxMean(int beginIndex, int endIndex){ if (beginIndex < 0 ) { throw new IllegalArgumentException("begin Index < 0 "+beginIndex); } if (endIndex > getLength() ) { throw new IllegalArgumentException("end Index > data length "+endIndex); } if(minMaxMeanCalculated){ if(beginIndex == this.beginIndex && e... | public double[] minMaxMean(){ return minMaxMean(0, getLength()); | public double[] minMaxMean(int beginIndex, int endIndex){ if (beginIndex < 0 ) { throw new IllegalArgumentException("begin Index < 0 "+beginIndex); } // end of if (beginIndex < 0 ) if (endIndex > getLength() ) { throw new IllegalArgumentException("end Index > data length "+endIndex); } // ... |
minMaxMean = calculateMinMaxMean(beginIndex, endIndex); return minMaxMean; } | public double[] minMaxMean(int beginIndex, int endIndex){ if (beginIndex < 0 ) { throw new IllegalArgumentException("begin Index < 0 "+beginIndex); } // end of if (beginIndex < 0 ) if (endIndex > getLength() ) { throw new IllegalArgumentException("end Index > data length "+endIndex); } // ... | |
String s = "*** "+ file.toString() + ((playing) ? Messages.getString("MainPanel.PLAYING") : ""); | String s = file.toString(); if (playing) { s = "***"+ s + Messages.getString("MainPanel.PLAYING"); } | public void update(File file, boolean playing) { String s = "*** "+ file.toString() + ((playing) ? Messages.getString("MainPanel.PLAYING") : ""); //$NON-NLS-1$ //$NON-NLS-2$ setText(s); DefaultListModel listModel = playlist.getListModel(); int index = listModel.indexOf(file); ListDataListener[] listeners... |
public void play(int index) { System.out.println("play("+index+")"); if (index > list.size()) { throw new RuntimeException("index = "+ index +" > list.size() = "+ list.size()); | public void play() { if (playingIndex < 0) { playingIndex = 0; | public void play(int index) { System.out.println("play("+index+")"); if (index > list.size()) { throw new RuntimeException("index = "+ index +" > list.size() = "+ list.size()); } playingIndex = index; if (isPlaying()) { player.stop(); } try { final File file = (File)list.get(index); player = new MP3Play... |
playingIndex = index; if (isPlaying()) { player.stop(); } try { final File file = (File)list.get(index); player = new MP3Player(file); player.addListener(passthroughPlayerListener); player.addListener(configPlayerListener); Thread thread = new Thread() { public void run() { try { player.play(); } catch (Exception exc) ... | play(playingIndex); | public void play(int index) { System.out.println("play("+index+")"); if (index > list.size()) { throw new RuntimeException("index = "+ index +" > list.size() = "+ list.size()); } playingIndex = index; if (isPlaying()) { player.stop(); } try { final File file = (File)list.get(index); player = new MP3Play... |
public File getFile(); | public abstract File getFile(); | public File getFile(); |
public void add(File f) { list.addElement(f); | public void add(File[] f) { if (f != null) { for (int i = 0; i < f.length; i++) { add(f[i]); } } | public void add(File f) { list.addElement(f); } |
return new EtoolsProxyCommand(modelCmd); | return new ICommandProxy(modelCmd); | protected Command getMSLWrapper(ICommand cmd) { TransactionalEditingDomain editingDomain = ((IGraphicalEditPart) getHost()) .getEditingDomain(); CompositeTransactionalCommand modelCmd = new CompositeTransactionalCommand( editingDomain, cmd.getLabel()); modelCmd.compose(cmd); return new EtoolsProxyCommand(mod... |
semanticCommand = semanticCommand.chain(new EtoolsProxyCommand( | semanticCommand = semanticCommand.chain(new ICommandProxy( | protected Command getSemanticCommand(IEditCommandRequest request) { IEditCommandRequest completedRequest = completeRequest(request); Command semanticCommand = getSemanticCommandSwitch(completedRequest); if (semanticCommand == null) { return UnexecutableCommand.INSTANCE; } boolean shouldProceed = true; if (comp... |
QueryResult queryResult = sqlBridge.executeQueries(sqlQuery, numberOfRows, executedSQLStatements); | QueryResultSession sessionBean = (QueryResultSession) IBOLookup.getSessionInstance(iwc, QueryResultSession.class); QueryResult queryResult = null; if (iwc.isParameterSet(NUMBER_OF_ROWS_KEY)) { Map identifierValueMap = sqlQuery.getIdentifierValueMap(); queryResult = sessionBean.getQueryResult(identifierValueMap); if ... | private String executeQueries(SQLQuery sqlQuery, int numberOfRows, QueryToSQLBridge sqlBridge, List executedSQLStatements, IWResourceBundle resourceBundle, IWContext iwc) throws RemoteException { QueryResult queryResult = sqlBridge.executeQueries(sqlQuery, numberOfRows, executedSQLStatements); // check if everything... |
sessionBean.deleteQueryResult(); | private String executeQueries(SQLQuery sqlQuery, int numberOfRows, QueryToSQLBridge sqlBridge, List executedSQLStatements, IWResourceBundle resourceBundle, IWContext iwc) throws RemoteException { QueryResult queryResult = sqlBridge.executeQueries(sqlQuery, numberOfRows, executedSQLStatements); // check if everything... | |
Iterator iterator = identifierValueMap.entrySet().iterator(); | Set keySet = identifierValueMap.keySet(); String[] keys = (String[]) keySet.toArray(new String[keySet.size()]); Arrays.sort(keys,new StringNumberComparator()); | private PresentationObject getInputFields(String queryName, String queryDescription, Map identifierValueMap, Map identifierInputDescriptionMap, IWResourceBundle resourceBundle, IWContext iwc) { // create a nice headline for the confused user String currentQuery = StringHandler.concat(resourceBundle.getLocalizedSt... |
while (iterator.hasNext()) { Map.Entry entry = (Map.Entry) iterator.next(); String key = (String) entry.getKey(); | for (int j = 0; j < keys.length; j++) { String key = keys[j]; | private PresentationObject getInputFields(String queryName, String queryDescription, Map identifierValueMap, Map identifierInputDescriptionMap, IWResourceBundle resourceBundle, IWContext iwc) { // create a nice headline for the confused user String currentQuery = StringHandler.concat(resourceBundle.getLocalizedSt... |
List groupIds = new ArrayList(); User user = iwc.getCurrentUser(); UserBusiness userBusiness = getUserBusiness(); GroupBusiness groupBusiness = getGroupBusiness(); Collection topGroupNodes = userBusiness.getUsersTopGroupNodesByViewAndOwnerPermissions(user,iwc); Iterator iterator = topGroupNodes.iterator(); while ( iter... | QueryResultSession sessionBean = (QueryResultSession) IBOLookup.getSessionInstance(iwc, QueryResultSession.class); String userAccess = (String) sessionBean.getValue(DirectSQLStatement.USER_ACCESS_VARIABLE); String userGroupAccess = (String) sessionBean.getValue(DirectSQLStatement.USER_GROUP_ACCESS_VARIABLE); String gr... | private void setAccessCondition(Map identifierValueMap, IWContext iwc) throws RemoteException { List groupIds = new ArrayList(); User user = iwc.getCurrentUser(); UserBusiness userBusiness = getUserBusiness(); GroupBusiness groupBusiness = getGroupBusiness(); Collection topGroupNodes = userBusiness.getUsersTopGro... |
StringBuffer userBuffer = new StringBuffer("(select related_ic_group_id from ic_group_relation where ic_group_id in "); Iterator groupIdsIterator = groupIds.iterator(); StringBuffer buffer = new StringBuffer("( "); String separator = ""; while (groupIdsIterator.hasNext()) { buffer.append(separator); Object groupId = gr... | identifierValueMap.put(DirectSQLStatement.USER_ACCESS_VARIABLE, userAccess); identifierValueMap.put(DirectSQLStatement.USER_GROUP_ACCESS_VARIABLE, userGroupAccess); | private void setAccessCondition(Map identifierValueMap, IWContext iwc) throws RemoteException { List groupIds = new ArrayList(); User user = iwc.getCurrentUser(); UserBusiness userBusiness = getUserBusiness(); GroupBusiness groupBusiness = getGroupBusiness(); Collection topGroupNodes = userBusiness.getUsersTopGro... |
identifierValueMap.put(DirectSQLStatement.GROUP_ACCESS_VARIABLE, buffer.toString()); | identifierValueMap.put(DirectSQLStatement.GROUP_ACCESS_VARIABLE, groupAccess); | private void setAccessCondition(Map identifierValueMap, IWContext iwc) throws RemoteException { List groupIds = new ArrayList(); User user = iwc.getCurrentUser(); UserBusiness userBusiness = getUserBusiness(); GroupBusiness groupBusiness = getGroupBusiness(); Collection topGroupNodes = userBusiness.getUsersTopGro... |
public JasperPrint printSynchronizedReport(com.idega.block.dataquery.data.QueryResult p0,java.util.Map p1,com.idega.block.datareport.data.DesignBox p2) throws java.rmi.RemoteException; | public JasperPrint printSynchronizedReport(com.idega.block.dataquery.data.QueryResult p0,com.idega.block.datareport.data.DesignBox p2) throws java.rmi.RemoteException; | public JasperPrint printSynchronizedReport(com.idega.block.dataquery.data.QueryResult p0,java.util.Map p1,com.idega.block.datareport.data.DesignBox p2) throws java.rmi.RemoteException; |
public void addParameter(Element param); | public void addParameter(String name, Object param); | public void addParameter(Element param); |
int seconds = (int)Math.ceil(traceLength.convertTo(UnitImpl.SECOND) .getValue()); int[] dataBits = new int[SPIKE_SAMPLES_PER_SECOND * seconds]; | double traceSecs = traceLength.convertTo(UnitImpl.SECOND).getValue(); int[] dataBits = new int[(int)(SPIKE_SAMPLES_PER_SECOND * traceSecs)]; | public static LocalSeismogramImpl createRaggedSpike(MicroSecondDate time, TimeInterval traceLength, int samplesPerSpike, int missingSamples, ... |
if(i % samplesPerSpike == 0 && i >= missingSamples) { | if((i + missingSamples) % samplesPerSpike == 0) { | public static LocalSeismogramImpl createRaggedSpike(MicroSecondDate time, TimeInterval traceLength, int samplesPerSpike, int missingSamples, ... |
public static int[][] makePlottable(LocalSeismogramImpl seis, MicroSecondTimeRange tr, int samplesPerDay) | public static Plottable makePlottable(LocalSeismogramImpl seis, MicroSecondTimeRange tr, int samplesPerDay) | public static int[][] makePlottable(LocalSeismogramImpl seis, MicroSecondTimeRange tr, int samplesPerDay) throws CodecException { MicroSecondDate startTime = tr.getBeginTime(); if(seis.getBeginTime().after(startTi... |
MicroSecondDate startTime = tr.getBeginTime(); if(seis.getBeginTime().after(startTime)) { startTime = seis.getBeginTime(); | double pixelPeriod = 1 / (double)samplesPerDay * 2.0d; TimeInterval trInt = (TimeInterval)tr.getInterval() .convertTo(UnitImpl.DAY); double exactNumPixels = trInt.divideBy(pixelPeriod).getValue(); int numPixels = (int)Math.ceil(exactNumPixels); TimeInterval pointPeriod = (TimeInterval)seis.getSampling() .getPeriod() ... | public static int[][] makePlottable(LocalSeismogramImpl seis, MicroSecondTimeRange tr, int samplesPerDay) throws CodecException { MicroSecondDate startTime = tr.getBeginTime(); if(seis.getBeginTime().after(startTi... |
MicroSecondDate stopTime = tr.getEndTime(); if(seis.getEndTime().before(stopTime)) { stopTime = seis.getEndTime(); | if(endPoint > seis.getNumPoints()) { int pointShift = endPoint - seis.getNumPoints(); numPixels -= (int)Math.floor(pointShift / pointsPerPixel); endPoint = seis.getNumPoints(); | public static int[][] makePlottable(LocalSeismogramImpl seis, MicroSecondTimeRange tr, int samplesPerDay) throws CodecException { MicroSecondDate startTime = tr.getBeginTime(); if(seis.getBeginTime().after(startTi... |
int startSample = PlottableChunk.getPixel(startTime, samplesPerDay); startTime = getTime(startTime, startSample, samplesPerDay); int stopSample = PlottableChunk.getPixel(stopTime, samplesPerDay); stopTime = getTime(stopTime, stopSample, samplesPerDay); double lengthInDays = stopTime.difference(startTime) .getValue(Unit... | int[][] pixels = new int[2][numPixels * 2]; int pixelPoint = startPoint < 0 ? 0 : startPoint; for(int i = 0; i < numPixels; i++) { int pos = 2 * i; int nextPos = pos + 1; pixels[0][pos] = startPixel + i; pixels[0][nextPos] = pixels[0][pos]; int nextPixelPoint = startPoint + (int)((pixels[0][pos] + 1) * pointsPerPixel);... | public static int[][] makePlottable(LocalSeismogramImpl seis, MicroSecondTimeRange tr, int samplesPerDay) throws CodecException { MicroSecondDate startTime = tr.getBeginTime(); if(seis.getBeginTime().after(startTi... |
int[][] out = new int[2][numSamples]; TimeInterval startShift = startTime.subtract(tr.getBeginTime()); double daysShifted = startShift.getValue(UnitImpl.DAY); int xOffset = (int)Math.floor(daysShifted * samplesPerDay / 2); TimeInterval plottableSampleLength = (TimeInterval)new TimeInterval(1, UnitImpl.DAY).divideBy(sam... | return new Plottable(pixels[0], pixels[1]); | public static int[][] makePlottable(LocalSeismogramImpl seis, MicroSecondTimeRange tr, int samplesPerDay) throws CodecException { MicroSecondDate startTime = tr.getBeginTime(); if(seis.getBeginTime().after(startTi... |
Property[] props = seis.getProperties(); Property[] newProps = new Property[1+props.length+nList.getLength()]; System.arraycopy(props, 0, newProps, 0, props.length); for (int i=0; i<propList.getLength(); i++) { Element propElement = (Element)propList.item(i); newProps[props.length+i] = new Property(xpath.eval(propEleme... | numDSProps = nList.getLength(); } else { numDSProps = 0; } Property[] props = seis.getProperties(); Property[] newProps = new Property[1+props.length+numDSProps]; System.arraycopy(props, 0, newProps, 0, props.length); for (int i=0; i<propList.getLength(); i++) { Element propElement = (Element)propList.item(i); newPro... | public LocalSeismogramImpl getSeismogram(String name) { if (seismogramCache.containsKey(name)) { return (LocalSeismogramImpl)seismogramCache.get(name); } // end of if (seismogramCache.containsKey(name)) String urlString = "NONE"; NodeList nList = evalNodeList(conf... |
SimpleXLink(DocumentBuilder docBuilder, Element element, URL base) { this.docBuilder = docBuilder; this.element = element; this.base = base; | SimpleXLink(DocumentBuilder docBuilder, Element element) { this(docBuilder, element, null); | SimpleXLink(DocumentBuilder docBuilder, Element element, URL base) { this.docBuilder = docBuilder; this.element = element; this.base = base; } |
public void read(DataInputStream dis) throws IOException { readHeader(dis); readData(dis); | public void read(String filename) throws FileNotFoundException, IOException { File sacFile = new File(filename); read(sacFile); | public void read(DataInputStream dis) throws IOException { readHeader(dis); readData(dis); } |
datasetNames.add(dataset.getName()); | public void addDataSet(DataSet dataset, AuditInfo[] audit) { datasets.put(dataset.getName(), dataset); } | |
dss.setDataSet(this); | public void addDataSetSeismogram(DataSetSeismogram dss, AuditInfo[] audit) { datasetSeismograms.put(dss.getName(), dss); datasetSeismogramNames.add(dss.getName()); } | |
logger.debug("Waiting for saver to finish"); | public static URLDataSetSeismogram localize(DataSetSeismogram dss, File directory) throws MalformedURLException { URLDataSetSeismogram urlDSS; URL fileURL = directory.toURL(); if (dss instanceof URLDataSetSeismogram) { // check for seism... | |
public XMLDataSet(DocumentBuilder docBuilder, URL base, Element config) { this(docBuilder, base); this.config = config; | public XMLDataSet(DocumentBuilder docBuilder, URL datasetURL) { this.base = datasetURL; this.docBuilder = docBuilder; Document doc = docBuilder.newDocument(); config = doc.createElement("dataset"); config.setAttribute("xmlns:xlink", "http: prefixResolver = new org.apache.xml.utils.PrefixResolverDefault(config); | public XMLDataSet(DocumentBuilder docBuilder, URL base, Element config) { this(docBuilder, base); this.config = config; } |
fOut.println('>'); | fOut.print('>'); | public void write(Node node) { // is there anything to do? if (node == null) { return; } short type = node.getNodeType(); switch (type) { case Node.DOCUMENT_NODE: { Document document = (Document)node; if (!fCanonical) { ... |
fOut.print('>'); | fOut.println('>'); | public void write(Node node) { // is there anything to do? if (node == null) { return; } short type = node.getNodeType(); switch (type) { case Node.DOCUMENT_NODE: { Document document = (Document)node; if (!fCanonical) { ... |
Vector v = new Vector(); | ArrayList al = new ArrayList(); | public Collection getDaysEvents(MyCalendarVO date) throws Throwable { Vector v = new Vector(); CalTimezones tzcache = cal.getTimezones();// Dur oneDay = new Dur(1, 0, 0, 0); long millis = System.currentTimeMillis(); //tzcache.setSysTimezones(cal.getTimezones()); BwDateTime startDt = CalFacadeUti... |
v.add(ei); | al.add(ei); | public Collection getDaysEvents(MyCalendarVO date) throws Throwable { Vector v = new Vector(); CalTimezones tzcache = cal.getTimezones();// Dur oneDay = new Dur(1, 0, 0, 0); long millis = System.currentTimeMillis(); //tzcache.setSysTimezones(cal.getTimezones()); BwDateTime startDt = CalFacadeUti... |
return v; | return al; | public Collection getDaysEvents(MyCalendarVO date) throws Throwable { Vector v = new Vector(); CalTimezones tzcache = cal.getTimezones();// Dur oneDay = new Dur(1, 0, 0, 0); long millis = System.currentTimeMillis(); //tzcache.setSysTimezones(cal.getTimezones()); BwDateTime startDt = CalFacadeUti... |
Vector days = new Vector(); | ArrayList days = new ArrayList(); | private TimeViewDailyInfo[] getOneWeekTvdi(GtpiData gtpi) throws Throwable { Vector days = new Vector(); TimeViewDailyInfo tvdi; /** First see if we need to insert leading fillers */ int dayOfWeek = gtpi.currentDay.getDayOfWeek(); int dayNum = getFirstDayOfWeek(); if (debug) { debugMsg("dayOfWe... |
days.addElement(tvdi); | days.add(tvdi); | private TimeViewDailyInfo[] getOneWeekTvdi(GtpiData gtpi) throws Throwable { Vector days = new Vector(); TimeViewDailyInfo tvdi; /** First see if we need to insert leading fillers */ int dayOfWeek = gtpi.currentDay.getDayOfWeek(); int dayNum = getFirstDayOfWeek(); if (debug) { debugMsg("dayOfWe... |
Vector months = new Vector(); Vector weeks = new Vector(); | ArrayList months = new ArrayList(); ArrayList weeks = new ArrayList(); | public TimeViewDailyInfo[] getTimePeriodInfo() { /* In the following code we assume that we never cross year boundaries so that the year is always constant. */ if (tvdis != null) { return tvdis; } try { GtpiData gtpi = new GtpiData(); Vector months = new Vector(); Vector weeks... |
weeks.addElement(weekTvdi); | weeks.add(weekTvdi); | public TimeViewDailyInfo[] getTimePeriodInfo() { /* In the following code we assume that we never cross year boundaries so that the year is always constant. */ if (tvdis != null) { return tvdis; } try { GtpiData gtpi = new GtpiData(); Vector months = new Vector(); Vector weeks... |
months.addElement(monthTvdi); | months.add(monthTvdi); | public TimeViewDailyInfo[] getTimePeriodInfo() { /* In the following code we assume that we never cross year boundaries so that the year is always constant. */ if (tvdis != null) { return tvdis; } try { GtpiData gtpi = new GtpiData(); Vector months = new Vector(); Vector weeks... |
weeks = new Vector(); | weeks = new ArrayList(); | public TimeViewDailyInfo[] getTimePeriodInfo() { /* In the following code we assume that we never cross year boundaries so that the year is always constant. */ if (tvdis != null) { return tvdis; } try { GtpiData gtpi = new GtpiData(); Vector months = new Vector(); Vector weeks... |
public static BwDateTime getDateTime(String val, CalTimezones timezones) throws CalFacadeException { Date dt; boolean UTC = false; boolean dateOnly = false; | public static BwDateTime getDateTime(Date dt, boolean dateOnly, boolean UTC, CalTimezones timezones) throws CalFacadeException { BwDateTime dtm = new BwDateTime(); | public static BwDateTime getDateTime(String val, CalTimezones timezones) throws CalFacadeException { Date dt; boolean UTC = false; boolean dateOnly = false; try { dt = fromISODateTimeUTC(val); UTC = true; } catch (CalFacadeBadDateException bde1) { try { ... |
try { dt = fromISODateTimeUTC(val); UTC = true; } catch (CalFacadeBadDateException bde1) { try { dt = fromISODateTime(val); } catch (CalFacadeBadDateException bde2) { try { dt = fromISODate(val); dateOnly = true; } catch (CalFacadeException ce) { throw ce; } catch (Throwable t) { throw new CalFacadeException(t); } } } ... | String date; if (dateOnly) { date = isoDate(dt); } else if (UTC) { date = isoDateTimeUTC(dt); } else { date = isoDateTime(dt); | public static BwDateTime getDateTime(String val, CalTimezones timezones) throws CalFacadeException { Date dt; boolean UTC = false; boolean dateOnly = false; try { dt = fromISODateTimeUTC(val); UTC = true; } catch (CalFacadeBadDateException bde1) { try { ... |
return getDateTime(dt, dateOnly, UTC, timezones); | dtm.init(dateOnly, date, timezones.getDefaultTimeZoneId(), timezones); return dtm; | public static BwDateTime getDateTime(String val, CalTimezones timezones) throws CalFacadeException { Date dt; boolean UTC = false; boolean dateOnly = false; try { dt = fromISODateTimeUTC(val); UTC = true; } catch (CalFacadeBadDateException bde1) { try { ... |
public abstract Collection getEvents(BwSubscription sub, BwFilter filter, BwDateTime startDate, BwDateTime endDate, int recurRetrieval) throws CalFacadeException; | public abstract Collection getEvents(BwSubscription sub, int recurRetrieval) throws CalFacadeException; | public abstract Collection getEvents(BwSubscription sub, BwFilter filter, BwDateTime startDate, BwDateTime endDate, int recurRetrieval) throws CalFacadeException; |
CalSvcI svci = form.fetchSvci(); String name = getReqPar(request, "subname"); if (name != null) { BwSubscription sub = svci.findSubscription(name); if (sub == null) { form.getErr().emit("org.bedework.client.error.unknownsubscription"); return "notFound"; } Collection c = new Vector(); c.add(sub); svci.setCurrentSubs... | String forward = trySub(request, form); if (forward != null) { return forward; | public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { CalSvcI svci = form.fetchSvci(); String name = getReqPar(request, "subname"); if (name != null) { ... |
String url = getReqPar(request, "calUrl"); if (url != null) { BwCalendar cal = findCalendar(url, form); if (cal == null) { form.getErr().emit("org.bedework.client.error.unknowncalendar"); return "notFound"; } BwSubscription sub = BwSubscription.makeSubscription(cal); Collection c = new Vector(); c.add(sub); svci.set... | forward = tryCal(request, form); if (forward != null) { return forward; | public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { CalSvcI svci = form.fetchSvci(); String name = getReqPar(request, "subname"); if (name != null) { ... |
name = getReqPar(request, "viewName"); if (name == null) { name = svci.getUserPrefs().getPreferredView(); } if (name == null) { form.getErr().emit("org.bedework.client.error.nodefaultview"); return "noViewDef"; } if (!svci.setCurrentView(name)) { form.getErr().emit("org.bedework.client.error.unknownview"); return "n... | return doView(request, form); | public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { CalSvcI svci = form.fetchSvci(); String name = getReqPar(request, "subname"); if (name != null) { ... |
return new NATObject(OBJLexicalRoot._INSTANCE_); | return new NATIsolate(OBJLexicalRoot._INSTANCE_); | private static NATObject createGlobalLexicalScope() { return new NATObject(OBJLexicalRoot._INSTANCE_); } |
int currentMode, boolean ignoreCreator, boolean debug) { super(cal, access, currentMode, ignoreCreator, debug); | int currentMode, boolean debug) { super(cal, access, currentMode, debug); | public Events(Calintf cal, AccessUtil access, int currentMode, boolean ignoreCreator, boolean debug) { super(cal, access, currentMode, ignoreCreator, debug); } |
currentMode, ignoreCreator); | currentMode, cal.getSuperUser()); | public Collection getEvents(BwCalendar calendar, BwFilter filter, BwDateTime startDate, BwDateTime endDate, int recurRetrieval) throws CalFacadeException { HibSession sess = getSess(); StringBuffer sb = new StringBuffer(); if (debug) { t... |
currentMode, ignoreCreator, | currentMode, cal.getSuperUser(), | public Collection getEvents(BwCalendar calendar, BwFilter filter, BwDateTime startDate, BwDateTime endDate, int recurRetrieval) throws CalFacadeException { HibSession sess = getSess(); StringBuffer sb = new StringBuffer(); if (debug) { t... |
mapBean = new MapBean(); | mapBean = getMapBean(); | public OpenMap(EventTableModel etm, ListSelectionModel lsm){ try{ mapHandler = new MapHandler(); mapHandler.add(this); // Create a MapBean mapBean = new MapBean(); //get the projection and set its background color and center point Proj proj = new CADRG(new LatLonPoint(mapBean.DEFAULT_CENTER_LAT, mapBea... |
200000000f, | DEFAULT_SCALE, | public OpenMap(EventTableModel etm, ListSelectionModel lsm){ try{ mapHandler = new MapHandler(); mapHandler.add(this); // Create a MapBean mapBean = new MapBean(); //get the projection and set its background color and center point Proj proj = new CADRG(new LatLonPoint(mapBean.DEFAULT_CENTER_LAT, mapBea... |
shapeLayerProps.put("shapeFile", "edu/sc/seis/fissuresUtil/data/maps/dcwpo-browse.shp"); shapeLayerProps.put("spatialIndex", "edu/sc/seis/fissuresUtil/data/maps/dcwpo-browse.ssx"); | shapeLayerProps.put("shapeFile", "edu/sc/seis/vsnexplorer/data/maps/dcwpo-browse.shp"); shapeLayerProps.put("spatialIndex", "edu/sc/seis/vsnexplorer/data/maps/dcwpo-browse.ssx"); | public OpenMap(EventTableModel etm, ListSelectionModel lsm){ try{ mapHandler = new MapHandler(); mapHandler.add(this); // Create a MapBean mapBean = new MapBean(); //get the projection and set its background color and center point Proj proj = new CADRG(new LatLonPoint(mapBean.DEFAULT_CENTER_LAT, mapBea... |
InformationDelegator infoDel = new InformationDelegator(); infoDel.setShowLights(false); mouseDelegator = new MouseDelegator(); | public OpenMap(EventTableModel etm, ListSelectionModel lsm){ try{ mapHandler = new MapHandler(); mapHandler.add(this); // Create a MapBean mapBean = new MapBean(); //get the projection and set its background color and center point Proj proj = new CADRG(new LatLonPoint(mapBean.DEFAULT_CENTER_LAT, mapBea... | |
mapHandler.add(new MouseDelegator()); mapHandler.add(new SelectMouseMode()); mapHandler.add(new InformationDelegator()); | mapHandler.add(mouseDelegator); mapHandler.add(infoDel); | public OpenMap(EventTableModel etm, ListSelectionModel lsm){ try{ mapHandler = new MapHandler(); mapHandler.add(this); // Create a MapBean mapBean = new MapBean(); //get the projection and set its background color and center point Proj proj = new CADRG(new LatLonPoint(mapBean.DEFAULT_CENTER_LAT, mapBea... |
AGSymbol.alloc("Native anonymous implementation in " + creatorClass_.getName())})); | AGSymbol.jAlloc("Native anonymous implementation in " + creatorClass_.getName())})); | public ATBegin base_getBodyExpression() { return new AGBegin(new NATTable(new ATObject[] { AGSymbol.alloc("Native anonymous implementation in " + creatorClass_.getName())})); } |
int[] getPartialValues(ReadablePartial fieldSource, Object object, Chronology chrono, DateTimeFormatter parser); | int[] getPartialValues(ReadablePartial fieldSource, Object object, Chronology chrono); | int[] getPartialValues(ReadablePartial fieldSource, Object object, Chronology chrono, DateTimeFormatter parser); |
public DateMidnight(int year, int monthOfYear, int dayOfMonth, Chronology chronology) { super(year, monthOfYear, dayOfMonth, 0, 0, 0, 0, chronology); | public DateMidnight() { super(); | public DateMidnight(int year, int monthOfYear, int dayOfMonth, Chronology chronology) { super(year, monthOfYear, dayOfMonth, 0, 0, 0, 0, chronology); } |
debugOut("Error emitted: property=" + pname + | debugOut("Emitted: property=" + pname + | protected void debugMsg(String pname, String ptype, String pval) { debugOut("Error emitted: property=" + pname + " ptype=" + ptype + " val(s)=" + pval); } |
textField.setPreferredSize( new Dimension(300, 25) ); | textField.setPreferredSize( new Dimension(275, 25) ); | FilterPanel( SortedSet tags, DataDictionary dataDictionary ) { setLayout( new FlowLayout() ); enablePanel( false ); checkBox.setPreferredSize( new Dimension(25, 25) ); add( checkBox ); comboBox.setPreferredSize( new Dimension(200, 25) ); add( comboBox ); operatorComboBox.setPreferredSize( new Dime... |
TimeRange fileTimeWindow) | MicroSecondTimeRange fileTimeWindow) | public void testUnknownDasChannelCreation() { DASChannelCreator creator = new DASChannelCreator(NCReaderTest.net, new SamplingFinder() { public int find(String file, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.