rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
tc.shaleTime(0, 1); | tc.fireTimeEvent(); | public ParticleMotion(final DataSetSeismogram hseis, DataSetSeismogram vseis, TimeConfig tc, Color color, String key, boolean horizPlane) { DataSetSeismogra... |
public void updateAmp(AmpEvent ampEvent){ this.ampEvent = ampEvent; | public void updateAmp(AmpEvent event) { this.ampEvent = event; | public void updateAmp(AmpEvent ampEvent){ this.ampEvent = ampEvent; } |
this.particleMotionDisplay = particleMotionDisplay; addListeners(); | this.pmd = particleMotionDisplay; this.addComponentListener(new ComponentAdapter() { public void componentResized(ComponentEvent e) { resize(); } public void componentShown(ComponentEvent e) { resize(); } }); | public ParticleMotionView(ParticleMotionDisplay particleMotionDisplay) { this.particleMotionDisplay = particleMotionDisplay; addListeners(); } |
public void addAzimuthLine(double degrees) { azimuths.add(new Double(degrees)); | public void addAzimuthLine(double degrees, Color color) { azimuths.put(new Double(degrees), color); | public void addAzimuthLine(double degrees) { azimuths.add(new Double(degrees)); } |
ParticleMotion particleMotion = new ParticleMotion(hseis, vseis, tc, color, key, horizPlane); displays.add(particleMotion); hunitRangeImpl = new UnitRangeImpl(getMinHorizontalAmplitude(), getMaxHorizontalAmplitude(), UnitImpl.COUNT); vunitRangeImpl = new UnitRangeImpl(getMinVerticalAmplitude(), getMaxVerticalAmplitude(... | parMos.add(new ParticleMotion(hseis, vseis, tc, color, key,horizPlane)); updateAmps(); | public synchronized void addParticleMotionDisplay(DataSetSeismogram hseis, DataSetSeismogram vseis, TimeConfig tc, Color color, ... |
graphics2D.setColor(new Color(100, 160, 140)); | graphics2D.setPaint(Color.gray); | 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... |
graphics2D.setStroke(DisplayUtils.TWO_PIXEL_STROKE); graphics2D.setColor(Color.green); Shape azimuth = getAzimuthPath(); graphics2D.draw(azimuth); | drawAzimuths(graphics2D); | 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... |
Graphics2D graphics2D = (Graphics2D) g; if(!recalculateValues) { recalculateValues = false; graphics2D.draw(particleMotion.getShape()); return; } Dimension dimension = super.getSize(); | Graphics2D g2D = (Graphics2D) g; Dimension size = getSize(); | public synchronized void drawParticleMotion(ParticleMotion particleMotion, Graphics g) { Graphics2D graphics2D = (Graphics2D) g; if(!recalculateValues) { recalculateValues = false; graphics2D.draw(particleMotion.getShape()); return; } Dimension dimension ... |
Color color = particleMotion.getColor(); if(color == null) { color = COLORS[RGBCOLOR]; particleMotion.setColor(color); RGBCOLOR++; if(RGBCOLOR == COLORS.length) RGBCOLOR = 0; } graphics2D.setColor(color); | g2D.setColor(particleMotion.getColor()); | public synchronized void drawParticleMotion(ParticleMotion particleMotion, Graphics g) { Graphics2D graphics2D = (Graphics2D) g; if(!recalculateValues) { recalculateValues = false; graphics2D.draw(particleMotion.getShape()); return; } Dimension dimension ... |
MicroSecondTimeRange microSecondTimeRange = null; if(particleMotion.tc == null) { microSecondTimeRange = new MicroSecondTimeRange(new MicroSecondDate(hseis.getBeginTime()), new MicroSecondDate(hseis.getEndTime())); } else { | MicroSecondTimeRange tr = particleMotion.getTimeRange(); AmpEvent ae = particleMotion.getAmpEvent(); | public synchronized void drawParticleMotion(ParticleMotion particleMotion, Graphics g) { Graphics2D graphics2D = (Graphics2D) g; if(!recalculateValues) { recalculateValues = false; graphics2D.draw(particleMotion.getShape()); return; } Dimension dimension ... |
microSecondTimeRange = particleMotion.getTimeRange(); } | public synchronized void drawParticleMotion(ParticleMotion particleMotion, Graphics g) { Graphics2D graphics2D = (Graphics2D) g; if(!recalculateValues) { recalculateValues = false; graphics2D.draw(particleMotion.getShape()); return; } Dimension dimension ... | |
hunitRangeImpl, microSecondTimeRange, dimension); | ae.getAmp(particleMotion.hseis), tr, size); | public synchronized void drawParticleMotion(ParticleMotion particleMotion, Graphics g) { Graphics2D graphics2D = (Graphics2D) g; if(!recalculateValues) { recalculateValues = false; graphics2D.draw(particleMotion.getShape()); return; } Dimension dimension ... |
vunitRangeImpl, microSecondTimeRange, dimension); SimplePlotUtil.flipArray(vPixels[1], dimension.height); Shape shape = getParticleMotionPath(hPixels[1], vPixels[1]); particleMotion.setShape(shape); if(shape == null) logger.debug("The shape is null"); graphics2D.draw(shape); } catch(Exception e) { | ae.getAmp(particleMotion.vseis), tr, size); SimplePlotUtil.flipArray(hPixels[1], size.width); g2D.draw(getParticleMotionPath(hPixels[1], vPixels[1])); } catch(CodecException e) { | public synchronized void drawParticleMotion(ParticleMotion particleMotion, Graphics g) { Graphics2D graphics2D = (Graphics2D) g; if(!recalculateValues) { recalculateValues = false; graphics2D.draw(particleMotion.getShape()); return; } Dimension dimension ... |
particleMotionDisplay.setHorizontalTitle(hseis.getName()); particleMotionDisplay.setVerticalTitle(vseis.getName()); | pmd.setHorizontalTitle(hseis.getName()); pmd.setVerticalTitle(vseis.getName()); | public void drawTitles(LocalSeismogramImpl hseis, LocalSeismogramImpl vseis) { particleMotionDisplay.setHorizontalTitle(hseis.getName()); particleMotionDisplay.setVerticalTitle(vseis.getName()); } |
for(int counter = 0; counter < displays.size(); counter++) { ParticleMotion particleMotion = (ParticleMotion)displays.get(counter); if(displayKeys.contains(particleMotion.key)) { | for(int counter = 0; counter < parMos.size(); counter++) { ParticleMotion particleMotion = (ParticleMotion)parMos.get(counter); if(displayKey.equals(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)) { ... |
if(displayKeys.size() == 0) return; | if(displayKey == null) return; | public synchronized void paintComponent(Graphics g) { if(displayKeys.size() == 0) return; Graphics2D graphics2D = (Graphics2D)g; vunitRangeImpl = new UnitRangeImpl(getMinVerticalAmplitude(), getMaxVerticalAmplitude(), ... |
vunitRangeImpl = new UnitRangeImpl(getMinVerticalAmplitude(), getMaxVerticalAmplitude(), UnitImpl.COUNT); hunitRangeImpl = new UnitRangeImpl(getMinHorizontalAmplitude(), getMaxHorizontalAmplitude(), UnitImpl.COUNT); | public synchronized void paintComponent(Graphics g) { if(displayKeys.size() == 0) return; Graphics2D graphics2D = (Graphics2D)g; vunitRangeImpl = new UnitRangeImpl(getMinVerticalAmplitude(), getMaxVerticalAmplitude(), ... | |
for(int counter = 0; counter < displays.size(); counter++) { ParticleMotion particleMotion = (ParticleMotion)displays.get(counter); if(!displayKeys.contains(particleMotion.key)) continue; | for(int counter = 0; counter < parMos.size(); counter++) { ParticleMotion particleMotion = (ParticleMotion)parMos.get(counter); if(!displayKey.equals(particleMotion.key)) continue; | public synchronized void paintComponent(Graphics g) { if(displayKeys.size() == 0) return; Graphics2D graphics2D = (Graphics2D)g; vunitRangeImpl = new UnitRangeImpl(getMinVerticalAmplitude(), getMaxVerticalAmplitude(), ... |
recalculateValues = true; | public synchronized void resize() { setSize(super.getSize()); recalculateValues = true; repaint(); } | |
this.displayKey = key; | displayKey = key; | public void setDisplayKey(String key) { this.displayKey = key; } |
public synchronized void updateTime() { hunitRangeImpl = new UnitRangeImpl(getMinHorizontalAmplitude(), getMaxHorizontalAmplitude(), UnitImpl.COUNT); vunitRangeImpl = new UnitRangeImpl(getMinVerticalAmplitude(), getMaxVerticalAmplitude(), UnitImpl.COUNT); particleMotionDisplay.updateHorizontalAmpScale(hunitRangeImpl); ... | public synchronized void updateTime(TimeEvent e) { updateAmps(); repaint(); | public synchronized void updateTime() { hunitRangeImpl = new UnitRangeImpl(getMinHorizontalAmplitude(), getMaxHorizontalAmplitude(), UnitImpl.COUNT); vunitRangeImpl = new UnitRangeImpl(getMinVerticalAmplitude(), ... |
dssDataListeners.add(dataListener); | synchronized(dssDataListeners){ dssDataListeners.add(dataListener); } | public void addSeisDataChangeListener(SeisDataChangeListener dataListener) { dssDataListeners.add(dataListener); } |
if (currentPopup != null){ currentPopup.setVisible(false); currentPopup = null; } | maybeKillCurrentPopup(); | 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... |
popup.setInvoker(this); | 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... | |
maybeKillCurrentPopup(); | public boolean mouseMoved(MouseEvent e){ synchronized(circles){ Iterator it = circles.iterator(); while(it.hasNext()){ OMEvent current = (OMEvent)it.next(); try{ if(current.getBigCircle().contains(e.getX(), e.getY())){ EventAccessOperations event = current.getEvent(); fireRequestInfoLine(Ca... | |
String station_code = XMLUtil.evalString(base, "network_code"); | String station_code = XMLUtil.evalString(base, "station_code"); | 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 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(); } | public abstract void fireAmpRangeEvent(AmpSyncEvent event); |
table.put(component, panel); | 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$ ... | |
table.put(component, panel); | 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$ ... | |
System.out.println("Simple brutal removeTabAt owner="+owner); | public void removeTabAt(int index) { if (index < 0 || index >= getTabCount()) { return; } Component c = getComponentAt(index); Object owner = table.remove(c); if (owner != null && owner instanceof IModule) { ModuleFactory.disposeInstance((IModule)owner); // real removing done by listener (disposed()) } ... | |
private String executeQueries(SQLQuery query, int numberOfRows, QueryToSQLBridge bridge, List executedSQLStatements, IWResourceBundle resourceBundle, IWContext iwc) throws RemoteException { QueryResult queryResult = bridge.executeQueries(query, numberOfRows, executedSQLStatements); | private String executeQueries(SQLQuery sqlQuery, int numberOfRows, QueryToSQLBridge sqlBridge, List executedSQLStatements, IWResourceBundle resourceBundle, IWContext iwc) throws RemoteException { QueryResult queryResult = sqlBridge.executeQueries(sqlQuery, numberOfRows, executedSQLStatements); | 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... |
else { resultNumberOfRows = -1; } | resultNumberOfRows = -1; | 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... |
DesignBox designBox = getDesignBox(query, reportBusiness, resourceBundle, iwc); Map designParameters = new HashMap(); designParameters.put(REPORT_HEADLINE_KEY, query.getName()); JasperPrint print = reportBusiness.printSynchronizedReport(queryResult, designParameters, designBox); if (print == null) { return resourceBun... | DesignBox designBox = getDesignBox(sqlQuery, reportBusiness, resourceBundle, iwc); Map designParameters = new HashMap(); designParameters.put(REPORT_HEADLINE_KEY, sqlQuery.getName()); JasperPrint print = reportBusiness.printSynchronizedReport(queryResult, designParameters, designBox); if (print == null) { return resou... | 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 DesignBox getDesignBox(SQLQuery query, JasperReportBusiness reportBusiness, IWResourceBundle resourceBundle, IWContext iwc) { | private DesignBox getDesignBox(SQLQuery sqlQuery, JasperReportBusiness reportBusiness, IWResourceBundle resourceBundle, IWContext iwc) { | 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... |
design = reportBusiness.getDynamicDesignBox(query, resourceBundle, iwc); | design = reportBusiness.getDynamicDesignBox(sqlQuery, resourceBundle, iwc); | 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... |
String[] value = iwc.getParameterValues(key); result.put(key, Arrays.asList(value)); | String[] values = iwc.getParameterValues(key); if (values.length > 1) { result.put(key, Arrays.asList(values)); } else { result.put(key, values[0]); } | 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 void showInputFields(SQLQuery query, Map identifierValueMap, Map identifierInputDescriptionMap, IWResourceBundle resourceBundle, IWContext iwc) { String name = query.getName(); String description = query.getQueryDescription(); | private void showInputFields(SQLQuery sqlQuery, Map identifierValueMap, Map identifierInputDescriptionMap, IWResourceBundle resourceBundle, IWContext iwc) { String name = sqlQuery.getName(); String description = sqlQuery.getQueryDescription(); | 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... |
JTextArea textArea = new JTextArea(); | JTextArea textArea = new JTextArea("LKJDLKJFDJFLKDJFLKDJFKLDJFLKDJFKLDJLKJDFL", 80,40); textArea.setVisible(true); | public ParticleMotionDisplay(DataSetSeismogram hseis, TimeConfigRegistrar timeConfigRegistrar, AmpConfigRegistrar hAmpConfigRegistrar, AmpConfigRegistrar vAmpConfigRegistrar, Color color, boolean advancedOption) { JFrame displayFrame = new JFrame(); JPanel informationPanel = new JPanel(); Stri... |
displayFrame.getContentPane().add(informationPanel); | displayFrame.getContentPane().setLayout(new BorderLayout()); displayFrame.getContentPane().add(jLabel, BorderLayout.CENTER); | public ParticleMotionDisplay(DataSetSeismogram hseis, TimeConfigRegistrar timeConfigRegistrar, AmpConfigRegistrar hAmpConfigRegistrar, AmpConfigRegistrar vAmpConfigRegistrar, Color color, boolean advancedOption) { JFrame displayFrame = new JFrame(); JPanel informationPanel = new JPanel(); Stri... |
displayFrame.show(); try { Thread.sleep(5000); }catch(Exception e) {} | displayFrame.setVisible(true); | public ParticleMotionDisplay(DataSetSeismogram hseis, TimeConfigRegistrar timeConfigRegistrar, AmpConfigRegistrar hAmpConfigRegistrar, AmpConfigRegistrar vAmpConfigRegistrar, Color color, boolean advancedOption) { JFrame displayFrame = new JFrame(); JPanel informationPanel = new JPanel(); Stri... |
if(getSize().width == 0 || getSize().height == 0) return; | public synchronized void resize() { Dimension dim = view.getSize(); logger.debug("view coordinates before width = "+view.getSize().width+" height = "+view.getSize().height); Insets insets = view.getInsets(); int width = particleDisplayPanel.getSize().width; int height = particleDisplayPanel.getSize().height; w... | |
logger.debug("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! IN RESIZE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"); | public synchronized void resize() { Dimension dim = view.getSize(); logger.debug("view coordinates before width = "+view.getSize().width+" height = "+view.getSize().height); Insets insets = view.getInsets(); int width = particleDisplayPanel.getSize().width; int height = particleDisplayPanel.getSize().height; w... | |
addAttribute(getEntryDateColumnName(), "", true, true, java.lang.String.class, 6); | addAttribute(getEntryDateColumnName(), "", true, true, java.lang.String.class, 8); | 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(), ... |
logger.debug("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! IN RESIZE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"); logger.debug("view coordinates before width = "+view.getSize().width+" height = "+view.getSize().height); | public synchronized void resize() { if(getSize().width == 0 || getSize().height == 0) return; Dimension dim = view.getSize(); logger.debug("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! IN RESIZE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"); logger.debug("view... | |
BwWebUtil.deleteEvent(form, svci.getEvent(eventid).getEvent()); | BwEvent event = form.getEditEvent(); BwWebUtil.deleteEvent(form, event); | 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... |
Channel[] channel = chanTable.getAllChannels(); for(int i = 0; i < channel.length; i++) { Location locationFromDatabase = channel[i].my_site.my_location; DistAz da = new DistAz(locationFromDatabase, newChannel.my_site.my_location); QuantityImpl siteDistance = new QuantityImpl(DistAz.degreesToKilometers(da.getDelta()), ... | ChannelId[] channelId; try { channelId = chanTable.getIdsByCode(newChannel.get_id().network_id, newChannel.get_id().station_code, newChannel.get_id().site_code, newChannel.get_code()); } catch(NotFound e) { return null; } ChannelId newChannelId = newChannel.get_id(); for(int i = 0; i < channelId.length; i++) { Channel ... | 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... |
if(newChannelBeginTime.before(channelFromDatabaseBeginTime)){ updateChannelBeginTime.setInt(1, timeTable.put(newChannel.get_id().begin_time)); updateChannelBeginTime.setInt(2, chanTable.getDBId(channelFromDatabase.get_id())); | MicroSecondDate channelFromDatabaseEndTime = new MicroSecondDate(channelFromDatabase.effective_time.end_time); if(newChannelBeginTime.before(channelFromDatabaseBeginTime) && newChannelEndTime.equals(channelFromDatabaseEndTime)) { updateChannelBeginTime.setInt(1, timeTable.put(newChannel.get_id().begin_time)); updateCha... | public void setChannelBeginTimeToEarliest(Channel channelFromDatabase, Channel newChannel) throws SQLException, NotFound{ MicroSecondDate newChannelBeginTime = new MicroSecondDate(newChannel.get_id().begin_time); MicroSecondDate channelFromDataba... |
Environment.set(Environment.BackgroundColor,"36B3DD"); | 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... | |
mapBean.setScale(120000000f); | Proj proj = (Proj)mapBean.getProjection(); proj.setBackgroundColor(WATER); proj.setCenter(20, 180); | 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... |
form.getErr().emit("org.bedework.client.missingfield", "name"); | form.getErr().emit("org.bedework.client.error.missingfield", "name"); | 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... |
form.getErr().emit("org.bedework.client.notfound", name); | form.getErr().emit("org.bedework.client.error.nosuchsubscription", name); | 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... |
parentPage.setToRedirect(uri); | if("true".equals(getBundle(iwc).getProperty(ADD_QUERY_SQL_FOR_DEBUG,"false"))){ addExecutedSQLQueries(executedSQLStatements); add(new Text("ADD_QUERY_SQL_FOR_DEBUG is true, result is shown in pop up window!")); parentPage.setOnLoad(" openwindow('" + uri + "','IdegaWeb Generated Report','0','0','0','0','0','1','1','1','... | 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... |
if("true".equals(getBundle(iwc).getProperty(ADD_QUERY_SQL_FOR_DEBUG,"false"))){ addExecutedSQLQueries(executedSQLStatements); } | private void showInputFieldsOrExecuteQuery(List executedSQLStatements, IWResourceBundle resourceBundle, IWContext iwc) throws RemoteException { Map identifierValueMap = query.getIdentifierValueMap(); boolean calculateAccess = false; boolean containsOnlyAccessVariable = ( (calculateAccess = identifierValueMa... | |
} else if (tag.equals(CaldavTags.calendarData)) { if (!(pr instanceof CalendarData)) { } else { CalendarData caldata = (CalendarData)pr; String content = null; openPropstat(); int status = HttpServletResponse.SC_OK; try { content = caldata.process(node); } catch (WebdavException wde) { status = wde.getStatusCode();;... | public void generatePropValue(WebdavNsNode node, WebdavProperty pr) throws WebdavIntfException { QName tag = pr.getTag(); String ns = tag.getNamespaceURI(); boolean isCalendar = node instanceof CaldavCalNode; CaldavCalNode calNode = null; BwCalendar cal = null; if (isC... | |
boolean publicMode = (account == null); | 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 ... | |
publicMode, | false, | 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 boolean init(String url, | public boolean init(String systemName, String url, | public boolean init(String url, String authenticatedUser, String user, boolean publicAdmin, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.url = url; this... |
this.systemName = systemName; | public boolean init(String url, String authenticatedUser, String user, boolean publicAdmin, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.url = url; this... | |
public void setAmpConfig(AmpConfig ac){ if(ampConfig != null) ampConfig.removeListener(this); | public void setAmpConfig(AmpConfig ac) { if(ampConfig != null) { ampConfig.removeListener(this); } | public void setAmpConfig(AmpConfig ac){ if(ampConfig != null) ampConfig.removeListener(this); ampConfig = ac; ac.addListener(this); } |
return isoDateFormat.parse(val); | synchronized (isoDateFormat) { return isoDateFormat.parse(val); } | public static Date fromISODate(String val) throws CalFacadeException { try { return isoDateFormat.parse(val); } catch (Throwable t) { throw new CalFacadeBadDateException(); } } |
return isoDateTimeFormat.parse(val); | synchronized (isoDateTimeFormat) { return isoDateTimeFormat.parse(val); } | public static Date fromISODateTime(String val) throws CalFacadeException { try { return isoDateTimeFormat.parse(val); } catch (Throwable t) { throw new CalFacadeBadDateException(); } } |
return isoDateFormat.parse(dtval); | return fromISODate(dtval); | 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... |
return isoDateTimeUTCFormat.parse(dtval); | return fromISODateTimeUTC(dtval); | 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... |
return isoDateTimeFormat.parse(dtval); | return fromISODateTime(dtval); | 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... |
isoDateFormat.parse(val); | fromISODate(val); | public static boolean isISODate(String val) throws CalFacadeException { try { isoDateFormat.parse(val); return true; } catch (Throwable t) { return false; } } |
isoDateTimeFormat.parse(val); | fromISODateTime(val); | public static boolean isISODateTime(String val) throws CalFacadeException { try { isoDateTimeFormat.parse(val); return true; } catch (Throwable t) { return false; } } |
isoDateTimeUTCFormat.parse(val); | fromISODateTimeUTC(val); | public static boolean isISODateTimeUTC(String val) throws CalFacadeException { try { isoDateTimeUTCFormat.parse(val); return true; } catch (Throwable t) { return false; } } |
return isoDateFormat.format(val); | synchronized (isoDateFormat) { return isoDateFormat.format(val); } | public static String isoDate(Date val) { return isoDateFormat.format(val); } |
return isoDateTimeFormat.format(val); | synchronized (isoDateTimeFormat) { return isoDateTimeFormat.format(val); } | public static String isoDateTime(Date val) { return isoDateTimeFormat.format(val); } |
return isoDateTimeUTCFormat.format(val); | synchronized (isoDateTimeUTCFormat) { return isoDateTimeUTCFormat.format(val); } | public static String isoDateTimeUTC(Date val) { return isoDateTimeUTCFormat.format(val); } |
String vsdate = viewStart.getDateTime().getDtval().substring(0, 8); if (debug) { action.logIt("vsdate=" + vsdate); } if (!(vsdate.equals(form.getCurTimeView().getFirstDay().getDateDigits()))) { newView = true; newViewTypeI = form.getCurViewPeriod(); Date jdt = CalFacadeUtil.fromISODate(vsdate); dt = new MyCalendarVO(j... | int year = viewStart.getCalYear(); if (checkDateInRange(form, year)) { String vsdate = viewStart.getDateTime().getDtval().substring(0, 8); if (debug) { action.logIt("vsdate=" + vsdate); } if (!(vsdate.equals(form.getCurTimeView().getFirstDay().getDateDigits()))) { newView = true; newViewTypeI = form.getCurViewPeriod(... | 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... |
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_.put(AGSymbol.alloc("b")); assertFalse(map_.put(AGSymbol.alloc("x"))); | assertTrue(map_.put(AGSymbol.jAlloc("x"))); map_.put(AGSymbol.jAlloc("y")); map_.put(AGSymbol.jAlloc("z")); map_.put(AGSymbol.jAlloc("u")); assertTrue(map_.put(AGSymbol.jAlloc("v"))); map_.put(AGSymbol.jAlloc("w")); map_.put(AGSymbol.jAlloc("a")); map_.put(AGSymbol.jAlloc("b")); assertFalse(map_.put(AGSymbol.jAlloc("x"... | 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_... |
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"))); assertEquals(6, map_.get(AGSymbo... | assertEquals(0, map_.get(AGSymbol.jAlloc("x"))); assertEquals(1, map_.get(AGSymbol.jAlloc("y"))); assertEquals(2, map_.get(AGSymbol.jAlloc("z"))); assertEquals(3, map_.get(AGSymbol.jAlloc("u"))); assertEquals(4, map_.get(AGSymbol.jAlloc("v"))); assertEquals(5, map_.get(AGSymbol.jAlloc("w"))); assertEquals(6, map_.get(A... | 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"))); ... |
self.meta_defineField(AGSymbol.alloc("unittest:"), unittest_); | self.meta_defineField(AGSymbol.jAlloc("unittest:"), unittest_); | 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 ... |
self.meta_defineField(AGSymbol.alloc("unit"), OBJUnit._INSTANCE_); | self.meta_defineField(AGSymbol.jAlloc("unit"), OBJUnit._INSTANCE_); | 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 ... |
NATIntrospectiveMirror(ATObject representation) { | private NATIntrospectiveMirror(ATObject representation) { | NATIntrospectiveMirror(ATObject representation) { principal_ = representation; } |
return NATMirrorFactory._INSTANCE_.createMirror( | return atValue( | public ATObject meta_invoke(ATObject receiver, ATSymbol atSelector, ATTable arguments) throws InterpreterException { String jSelector = Reflection.upMetaLevelSelector(atSelector); try { return NATMirrorFactory._INSTANCE_.createMirror( Reflection.downObject( Reflection.upInvocation( principal_, ... |
return NATMirrorFactory._INSTANCE_.base_createMirror(reflectee); | return atValue(reflectee); | public ATObject meta_newInstance(ATTable init) throws XArityMismatch, XTypeMismatch { ATObject[] initargs = init.asNativeTable().elements_; if(initargs.length != 1) { ATObject reflectee = initargs[0]; return NATMirrorFactory._INSTANCE_.base_createMirror(reflectee); } else { throw new XArityMismatch("init", 1,... |
return NATMirrorFactory._INSTANCE_.base_createMirror(principal_); } | if(principal_ instanceof NATMirage) return ((NATMirage)principal_).getMirror(); else return this; } | public ATObject meta_resolve() throws InterpreterException { return NATMirrorFactory._INSTANCE_.base_createMirror(principal_); } |
return NATMirrorFactory._INSTANCE_.createMirror( | return atValue( | public ATObject meta_select(ATObject receiver, ATSymbol atSelector) throws InterpreterException { String jSelector = null; try { jSelector = Reflection.upMetaFieldAccessSelector(atSelector); return NATMirrorFactory._INSTANCE_.createMirror( Reflection.downObject(Reflection.upFieldSelection(principal_, jSele... |
return NATNil._INSTANCE_; | return NATMirror._PROTOTYPE_; | public ATObject meta_clone() throws NATException { return NATNil._INSTANCE_; } |
} catch (Exception e) { | } catch (NATException nate) { throw nate; } catch (InvocationTargetException ite) { if(ite.getCause() instanceof AssertionFailedError) { throw (AssertionFailedError)ite.getCause(); } else { throw new XTypeMismatch( "Could not invoke method with selector " + jSelector.toString() + " on the given object.", ite, (ATOb... | public static Object invokeJavaMethod ( Class jClass, Object jReceiver, String jSelector, Object[] jArguments) throws NATException { try { Method[] applicable = getMethodsForSelector(jClass, jSelector); switch(applicable.length) { case 0: throw new XSelectorNotFound(AGSymbol.alloc(jSelector), (ATO... |
methods.put("MKCALENDAR", new CDMkcolMethod()); | methods.put("MKCALENDAR", new MkcalendarMethod()); | public void addMethods(WebdavNsIntf nsIntf) throws WebdavException{ HashMap methods = nsIntf.getMethods(); super.addMethods(nsIntf); // Replace methods methods.put("MKCALENDAR", new CDMkcolMethod()); methods.put("REPORT", new ReportMethod()); } |
form.getErr().emit("org.bedework.pubevents.error.nosuchcategory", id); | form.getErr().emit("org.bedework.client.error.nosuchcategory", id); | public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /** Check access */ if (!form.getAuthorisedUser()) { return "noAccess"; } CalSvcI svci = form.getCalSvcI(); /** User requested a category fro... |
flipArray(comp[1], size.height); | protected static void scaleYvalues(int[][] comp, LocalSeismogram seismogram, MicroSecondTimeRange tr, UnitRangeImpl ampRange, Dimension size) { LocalSeismogramImpl seis = (LocalSeismogramImpl)seismogram; double yMin = ampRange.getMinValue(); double yMax = ampRange.getMaxValue(); for( int i =0 ; i < co... | |
return getDataCenter(net.get_attributes().get_id()); | return getDataCenter(net.get_attributes().get_code()); | public List getDataCenter(NetworkAccess net) { return getDataCenter(net.get_attributes().get_id()); } |
if (datacenterMap.keySet().size() == 0) { String s = "No datacenters found for request: "; for (int i = 0; i < filters.length; i++) { s+= " "+ChannelIdUtil.toStringNoDates(filters[i].channel_id)+ filters[i].start_time.date_time+ " to "+filters[i].end_time.date_time+", "; } logger.warn(s); } | public RequestFilter[] available_data(RequestFilter[] filters) { HashMap datacenterMap = makeMap(filters); LinkedList out = new LinkedList(); Iterator it = datacenterMap.keySet().iterator(); while ( it.hasNext()) { List dcList = (List)it.next(); Iterator dcIt = dcLi... | |
int id = form.getEventId(); | int id = this.getIntReqPar(request, "eventId", -1); | 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... |
resetEvent(form); | 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... | |
return getParentViewHandler().calculateLocale(arg0); | IWContext iwc = IWContext.getIWContext(arg0); return iwc.getCurrentLocale(); | public Locale calculateLocale(FacesContext arg0) { return getParentViewHandler().calculateLocale(arg0); } |
throw new SmileException("Descriptor Class for '" + viewId + "' must implement net.sourceforge.smile.context.Page !"); | throw new RuntimeException("CbpViewHandler: Descriptor Class for '" + viewId + "' must implement net.sourceforge.smile.context.Page !"); | public UIViewRoot createView(FacesContext ctx, String viewId) { UIViewRoot ret = new UIViewRoot(); ret.setViewId(viewId); // TODO : Hack to allow unit tests to select empty views if(viewId.startsWith("unittesttree.")) { return ret; } try { Class descriptorClazz = getDescriptorClassNameForViewId(viewId);... |
throw new SmileException("Please make sure that the default constructor for descriptor class of <" + viewId + "> is public.",e); | throw new RuntimeException("CbpViewHandler: Please make sure that the default constructor for descriptor class of <" + viewId + "> is public.",e); | public UIViewRoot createView(FacesContext ctx, String viewId) { UIViewRoot ret = new UIViewRoot(); ret.setViewId(viewId); // TODO : Hack to allow unit tests to select empty views if(viewId.startsWith("unittesttree.")) { return ret; } try { Class descriptorClazz = getDescriptorClassNameForViewId(viewId);... |
throw new SmileException("An exception was generated by the default constructor of the descriptor class of <" + viewId + ">.",e); | throw new RuntimeException("CbpViewHandler: An exception was generated by the default constructor of the descriptor class of <" + viewId + ">.",e); | public UIViewRoot createView(FacesContext ctx, String viewId) { UIViewRoot ret = new UIViewRoot(); ret.setViewId(viewId); // TODO : Hack to allow unit tests to select empty views if(viewId.startsWith("unittesttree.")) { return ret; } try { Class descriptorClazz = getDescriptorClassNameForViewId(viewId);... |
throw new SmileException("Descriptor Class for '" + viewId + "' threw an exception during initialize() !",t); | throw new RuntimeException("CbpViewHandler: Descriptor Class for '" + viewId + "' threw an exception during initialize() !",t); | public UIViewRoot createView(FacesContext ctx, String viewId) { UIViewRoot ret = new UIViewRoot(); ret.setViewId(viewId); // TODO : Hack to allow unit tests to select empty views if(viewId.startsWith("unittesttree.")) { return ret; } try { Class descriptorClazz = getDescriptorClassNameForViewId(viewId);... |
throw new SmileRuntimeException("No component tree is available !"); | throw new RuntimeException("CbpViewHandler: No component tree is available !"); | public void renderView(FacesContext ctx, UIViewRoot viewRoot) throws IOException, FacesException { // Apparently not all versions of tomcat have the same // default content-type. // So we'll set it explicitly. HttpServletResponse response = (HttpServletResponse) ctx.getExternalContext().getResponse(); response.se... |
try { | public void renderView(FacesContext ctx, UIViewRoot viewRoot) throws IOException, FacesException { // Apparently not all versions of tomcat have the same // default content-type. // So we'll set it explicitly. HttpServletResponse response = (HttpServletResponse) ctx.getExternalContext().getResponse(); response.se... | |
} catch (RuntimeException e) { throw new SmileRuntimeException(e.getMessage(),e); } | public void renderView(FacesContext ctx, UIViewRoot viewRoot) throws IOException, FacesException { // Apparently not all versions of tomcat have the same // default content-type. // So we'll set it explicitly. HttpServletResponse response = (HttpServletResponse) ctx.getExternalContext().getResponse(); response.se... | |
if (tx == null) { throw new CalFacadeException("Transaction not started"); } | public void beginTransaction() throws CalFacadeException { if (exc != null) { // Didn't hear me last time? throw new CalFacadeException(exc); } try { if (tx != null) { throw new CalFacadeException("Transaction already started"); } tx = sess.beginTransaction(); } catch (Thro... | |
if (tx != null && !tx.wasCommitted() && !tx.wasRolledBack()) { | if (getLogger().isDebugEnabled()) { getLogger().debug("About to comnmit"); } | public void commit() throws CalFacadeException { if (exc != null) { // Didn't hear me last time? throw new CalFacadeException(exc); } try { if (tx != null && !tx.wasCommitted() && !tx.wasRolledBack()) { tx.commit(); } tx = null; } catch (Throwable t) { ... |
} | public void commit() throws CalFacadeException { if (exc != null) { // Didn't hear me last time? throw new CalFacadeException(exc); } try { if (tx != null && !tx.wasCommitted() && !tx.wasRolledBack()) { tx.commit(); } tx = null; } catch (Throwable t) { ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.