rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
if(endTime >= overEndTime || beginTime <= overBeginTime){ logger.debug("the image has been dragged past its edge and is being recreated"); this.createImage(); return; }
public void paint(Graphics g){ if(overSizedImage == null || overSizedImage.get() == null){ logger.debug("the image is null and is being recreated"); this.createImage(); return; } long endTime = timeConfig.getTimeRange().getEndTime().getMicroSecondTime(); long beginTime = timeConfig.getTimeRange().ge...
if (ev.getCalendar() == null) { ev.setCalendar(svci.getPreferredCalendar()); }
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { // Just ignore this return "doNothing"; } BwEvent ev = form.getNewEvent(); if (ev == null) { return "doNothing"; } CalSvcI svci = form.fetchSvci(); ...
if (isMac()) { try { Class.forName("dg.hipster.controller.MacAppListener"); } catch(ClassNotFoundException cnfe) { cnfe.printStackTrace(); } }
public Main() { if (isMac()) { try { Class.forName("dg.hipster.controller.MacAppListener"); } catch(ClassNotFoundException cnfe) { cnfe.printStackTrace(); } } }
if (isMac()) { try { Class.forName("dg.hipster.controller.MacAppListener"); } catch(ClassNotFoundException cnfe) { cnfe.printStackTrace(); } }
private void initControllers() { if (frame != null) { frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { handleQuit(); System.exit(0); } }); } }
+ staticType_.getSimpleName() + " into a " + type.getSimpleName()));
+ staticType_.getName() + " into a " + type.getName()));
public void castTo(Class type) throws XJavaException { if (type.isInstance(wrappedObject_)) { staticType_ = type; } else { throw new XJavaException(new ClassCastException("Failed to cast a Java object of type " + staticType_.getSimpleName() + " into a " + type.getSimpleName())); } }
public static Method[] getMethods(Class fromClass, String selector, boolean isStatic) throws XSelectorNotFound {
public static Method[] getMethods(Class fromClass, String selector, boolean isStatic) {
public static Method[] getMethods(Class fromClass, String selector, boolean isStatic) throws XSelectorNotFound { Method[] methods = fromClass.getMethods(); Method m; Vector properMethods = new Vector(methods.length); for (int i = 0; i < methods.length; i++) { m = methods[i]; if ((Modifier.isStatic(m.getModifie...
}
public void selectEvent(EventAccessOperations evo){ int rowToSelect = tableModel.getRowForEvent(evo); if (rowToSelect != -1){ selectionModel.setSelectionInterval(rowToSelect, rowToSelect); } }
System.out.println("Attempting to match on " + names[i]);
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...
System.out.println("ID: " + ChannelIdUtil.toString(currentRF.channel_id) + "\nSITE CODE: " + currentRF.channel_id.site_code + " NETWORK ID: " + currentRF.channel_id.network_id + " CHANNEL CODE: " + currentRF.channel_id.channel_code + " STATION CODE: " + currentRF.channel_id.station_code);
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...
System.out.println("the channel ids are equal");
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...
System.out.println("Found matching component");
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...
MicroSecondTimeRange calcIntv; if(this.timeConfig == null) calcIntv = new MicroSecondTimeRange(((LocalSeismogramImpl)aSeis).getBeginTime(), ((LocalSeismogramImpl)aSeis).getEndTime()); else calcIntv = timeConfig.getTimeRange(aSeis);
public void removeSeismogram(LocalSeismogram aSeis){ if(seismos.contains(aSeis)){ MicroSecondTimeRange calcIntv; if(this.timeConfig == null) calcIntv = new MicroSecondTimeRange(((LocalSeismogramImpl)aSeis).getBeginTime(), ((LocalSeismogramImpl)aSeis).getEndTime()); else calcIntv = timeConfig.getTimeR...
Iterator e = seismos.iterator(); while(e.hasNext()) this.getAmpRange(((LocalSeismogram)e.next()), calcIntv);
public void removeSeismogram(LocalSeismogram aSeis){ if(seismos.contains(aSeis)){ MicroSecondTimeRange calcIntv; if(this.timeConfig == null) calcIntv = new MicroSecondTimeRange(((LocalSeismogramImpl)aSeis).getBeginTime(), ((LocalSeismogramImpl)aSeis).getEndTime()); else calcIntv = timeConfig.getTimeR...
notify("ADDED_LINK", this, other);
public void addLink(Idea other) { if (!this.equals(other)) { links.add(other); } }
err.emit("org.bedework.pubevents.error.missingfield", "Name");
err.emit("org.bedework.validation.error.missingfield", "Name");
public boolean validateGroup(BwGroup updgrp, MessageEmit err) throws Throwable { boolean ok = true; if (updgrp == null) { // bogus call. return false; } updgrp.setAccount(Util.checkNull(updgrp.getAccount())); if (updgrp.getAccount() == null) { err.emit("org.bedework.pubevents.error.missi...
setFlagTime(new MicroSecondDate().add(RTTimeRangeConfig.serverTimeOffset));
setFlagTime(ClockUtil.now());
public void draw(Graphics2D canvas, Dimension size, TimeEvent timeEvent, AmpEvent ampEvent){ setFlagTime(new MicroSecondDate().add(RTTimeRangeConfig.serverTimeOffset)); super.draw(canvas, size, timeEvent, ampEvent); }
public boolean remove(){ if(internalTimeConfig.getTimeRange().getInterval().getValue()/externalTimeConfig.getTimeRange().getInterval().getValue() < .01) return true; return false; }
public void remove(){ display.remove(); }
public boolean remove(){ if(internalTimeConfig.getTimeRange().getInterval().getValue()/externalTimeConfig.getTimeRange().getInterval().getValue() < .01) return true; return false; }
public Channel[] getSelectedChannels(){
public Channel[] getSelectedChannels(MicroSecondDate when){
public Channel[] getSelectedChannels(){ Channel[] inChannels = getChannels(); return getSelectedChannels(inChannels, new MicroSecondDate()); }
return getSelectedChannels(inChannels, new MicroSecondDate());
logger.debug("before prune channels, length="+inChannels.length); inChannels = BestChannelUtil.pruneChannels(inChannels, when); logger.debug("after prune channels, length="+inChannels.length); return getSelectedChannels(inChannels, when);
public Channel[] getSelectedChannels(){ Channel[] inChannels = getChannels(); return getSelectedChannels(inChannels, new MicroSecondDate()); }
super.getProperties(props);
props = super.getProperties(props);
public Properties getProperties(Properties props){ super.getProperties(props); props.put("overviewLineWidth", "" + overviewLineWidth); props.put("lineWidthThreshold", "" + lineWidthThreshold); return props; }
System.out.println("The seismogram is no null"); } else { System.out.println("The seismogram is not null");
RequestFilter rf = new RequestFilter(seis.getChannelID(), seis.getBeginTime().getFissuresTime(), seis.getEndTime().getFissuresTime()); return new DataSetSeismogram(rf, null);
public DataSetSeismogram getDataSetSeismogram(String name) { LocalSeismogramImpl seis = getSeismogram(name); if(seis != null) { System.out.println("The seismogram is no null"); } else { System.out.println("The seismogram is not null"); } RequestFilter rf = new RequestFilter(seis.getChannelID(), se...
RequestFilter rf = new RequestFilter(seis.getChannelID(), seis.getBeginTime().getFissuresTime(), seis.getEndTime().getFissuresTime()); return new DataSetSeismogram(rf, null);
return null;
public DataSetSeismogram getDataSetSeismogram(String name) { LocalSeismogramImpl seis = getSeismogram(name); if(seis != null) { System.out.println("The seismogram is no null"); } else { System.out.println("The seismogram is not null"); } RequestFilter rf = new RequestFilter(seis.getChannelID(), se...
for (Iterator values = ((org.eclipse.uml2.uml.Package) modelObject).getPackagedElements().iterator(); values.hasNext();) {
for (Iterator values = ((Package) modelObject).getPackagedElements().iterator(); values.hasNext();) {
protected List getSemanticChildrenList() { List result = new LinkedList(); EObject modelObject = ((View) getHost().getModel()).getElement(); View viewObject = (View) getHost().getModel(); EObject nextValue; int nodeVID; for (Iterator values = ((org.eclipse.uml2.uml.Package) modelObject).getPackagedElements().ite...
remove(display.getSeismograms());
public boolean removeDisplay(BasicSeismogramDisplay display){ if(basicDisplays.contains(display)){ if(basicDisplays.size() == 1){ this.removeAll(); return true; } super.remove(display); basicDisplays.remove(display); remove(...
sb.append(getLogPrefix());
sb.append(getLogPrefix(request));
public LogEntry getLogEntry(HttpServletRequest request, String logname) { StringBuffer sb = new StringBuffer(logname); sb.append(":"); sb.append(getSessionId(request)); sb.append(":"); sb.append(getLogPrefix()); return new LogEntryImpl(sb, this); }
private String getLogPrefix() {
protected String getLogPrefix(HttpServletRequest request) {
private String getLogPrefix() { try { if (logPrefix == null) { logPrefix = JspUtil.getProperty(getMessages(), "edu.rpi.sss.util.action.logprefix", "unknown"); } return logPrefix; } catch (Throwable t) { erro...
return AGSymbol.alloc(javaToAmbientTalkSelector(jSelector));
return AGSymbol.jAlloc(javaToAmbientTalkSelector(jSelector));
public static final ATSymbol downSelector(String jSelector) { return AGSymbol.alloc(javaToAmbientTalkSelector(jSelector)); }
System.out.println("Checking "+ChannelIdUtil.toStringNoDates(allSeis.getRequestFilter().channel_id));
public static DataSetSeismogram[] retrieveSeismogramGrouping(DataSet dataset, DataSetSeismogram dss) { ChannelId channelId = dss.getRequestFilter().channel_id; ChannelId[] channelGroup = DataSetChannelGrouper.retrieveGrouping(d...
public ChannelId[] retrieve_grouping( ChannelId[] channelIds, ChannelId channelId) {
public Channel[] retrieve_grouping( Channel[] channels, Channel channel) { ChannelId channelId = channel.get_id();
public ChannelId[] retrieve_grouping( ChannelId[] channelIds, ChannelId channelId) { String givenChannelStr = channelId.channel_code; String givenPrefixStr = givenChannelStr.substring(0, givenChannelStr.length() - 1); char givenOrientation = givenChannelStr.charAt(givenChannelStr.length() - 1); String searchStrin...
ChannelId[] rtnchannels = new ChannelId[3]; logger.debug("The given prefixxStr is "+givenPrefixStr); for(int j = 0; j < channelIds.length; j++) { logger.debug("THe channel Str is "+ ChannelIdUtil.toString(channelIds[j]));
Channel[] rtnchannels = new Channel[3]; for(int j = 0; j < channels.length; j++) { System.out.println("THe channel Str is "+ ChannelIdUtil.toString(channels[j].get_id()));
public ChannelId[] retrieve_grouping( ChannelId[] channelIds, ChannelId channelId) { String givenChannelStr = channelId.channel_code; String givenPrefixStr = givenChannelStr.substring(0, givenChannelStr.length() - 1); char givenOrientation = givenChannelStr.charAt(givenChannelStr.length() - 1); String searchStrin...
logger.debug("The given Channel is "+givenChannelStr+" given Orientation is "+givenOrientation);
public ChannelId[] retrieve_grouping( ChannelId[] channelIds, ChannelId channelId) { String givenChannelStr = channelId.channel_code; String givenPrefixStr = givenChannelStr.substring(0, givenChannelStr.length() - 1); char givenOrientation = givenChannelStr.charAt(givenChannelStr.length() - 1); String searchStrin...
logger.debug("The search String is "+searchString);
public ChannelId[] retrieve_grouping( ChannelId[] channelIds, ChannelId channelId) { String givenChannelStr = channelId.channel_code; String givenPrefixStr = givenChannelStr.substring(0, givenChannelStr.length() - 1); char givenOrientation = givenChannelStr.charAt(givenChannelStr.length() - 1); String searchStrin...
logger.debug("The search string after is "+searchString);
public ChannelId[] retrieve_grouping( ChannelId[] channelIds, ChannelId channelId) { String givenChannelStr = channelId.channel_code; String givenPrefixStr = givenChannelStr.substring(0, givenChannelStr.length() - 1); char givenOrientation = givenChannelStr.charAt(givenChannelStr.length() - 1); String searchStrin...
return new ChannelId[0];
return new Channel[0];
public ChannelId[] retrieve_grouping( ChannelId[] channelIds, ChannelId channelId) { String givenChannelStr = channelId.channel_code; String givenPrefixStr = givenChannelStr.substring(0, givenChannelStr.length() - 1); char givenOrientation = givenChannelStr.charAt(givenChannelStr.length() - 1); String searchStrin...
rtnchannels = new ChannelId[3]; rtnchannels[count] = channelId;
rtnchannels = new Channel[3]; rtnchannels[count] = channel;
public ChannelId[] retrieve_grouping( ChannelId[] channelIds, ChannelId channelId) { String givenChannelStr = channelId.channel_code; String givenPrefixStr = givenChannelStr.substring(0, givenChannelStr.length() - 1); char givenOrientation = givenChannelStr.charAt(givenChannelStr.length() - 1); String searchStrin...
logger.debug("The length of the channels is "+channelIds.length); for(int counter = 0; counter < channelIds.length; counter++) { String channelStr = channelIds[counter].channel_code;
for(int counter = 0; counter < channels.length; counter++) { String channelStr = channels[counter].get_id().channel_code;
public ChannelId[] retrieve_grouping( ChannelId[] channelIds, ChannelId channelId) { String givenChannelStr = channelId.channel_code; String givenPrefixStr = givenChannelStr.substring(0, givenChannelStr.length() - 1); char givenOrientation = givenChannelStr.charAt(givenChannelStr.length() - 1); String searchStrin...
logger.debug("The channelstr is "+channelStr); logger.debug("The prefixStr is "+prefixStr); logger.debug("orientation is "+orientation);
public ChannelId[] retrieve_grouping( ChannelId[] channelIds, ChannelId channelId) { String givenChannelStr = channelId.channel_code; String givenPrefixStr = givenChannelStr.substring(0, givenChannelStr.length() - 1); char givenOrientation = givenChannelStr.charAt(givenChannelStr.length() - 1); String searchStrin...
rtnchannels[count] = channelIds[counter];
rtnchannels[count] = channels[counter];
public ChannelId[] retrieve_grouping( ChannelId[] channelIds, ChannelId channelId) { String givenChannelStr = channelId.channel_code; String givenPrefixStr = givenChannelStr.substring(0, givenChannelStr.length() - 1); char givenOrientation = givenChannelStr.charAt(givenChannelStr.length() - 1); String searchStrin...
logger.debug("ORIENTATION "+orientation+"The matched channelStr is "+channelStr);
public ChannelId[] retrieve_grouping( ChannelId[] channelIds, ChannelId channelId) { String givenChannelStr = channelId.channel_code; String givenPrefixStr = givenChannelStr.substring(0, givenChannelStr.length() - 1); char givenOrientation = givenChannelStr.charAt(givenChannelStr.length() - 1); String searchStrin...
byte[] seqBytes = new byte[6]; in.readFully(seqBytes); String seqNumString = new String(seqBytes); int sequenceNum =0; try { sequenceNum = Integer.valueOf(seqNumString).intValue(); } catch (NumberFormatException e) { System.err.println("seq num unreadable, setting to 0 "+e.toString()); }
byte[] seqBytes = new byte[6]; in.readFully(seqBytes);
public static ControlHeader read(DataInput in) throws IOException, SeedFormatException { byte[] seqBytes = new byte[6]; in.readFully(seqBytes); String seqNumString = new String(seqBytes); int sequenceNum =0; try { sequenceNum = Integer.valueOf(seqNumString).intValue(); } catch (NumberFormatException e) { ...
finally { release(); }
public int doEndTag() throws JspException { try { JspWriter out = pageContext.getOut(); SelectTag select = (SelectTag) findAncestorWithClass(this, SelectTag.class); if (select == null) throw new JspException("option tag must be nested inside a select tag"); Collection<String> values = select.getCurrentVal...
omgraphics.add(new OMStation(stations[i]));
synchronized(omgraphics){ omgraphics.add(new OMStation(stations[i])); }
public void stationDataChanged(StationDataEvent s) { Station[] stations = s.getStations(); for (int i = 0; i < stations.length; i++){ if (!stationMap.containsKey(stations[i].name)){ stationNames.add(stations[i].name); omgraphics.add(new OMStation(stations[i]));...
Evaluator.defineParamsForArgs(name_.getText().asNativeText().javaValue, scope, parameters_, arguments);
Evaluator.defineParamsForArgs(name_.base_getText().asNativeText().javaValue, scope, parameters_, arguments);
public ATObject base_apply(ATTable arguments, ATContext ctx) throws NATException { NATCallframe scope = new NATCallframe(ctx.base_getLexicalScope()); Evaluator.defineParamsForArgs(name_.getText().asNativeText().javaValue, scope, parameters_, arguments); return body_.meta_eval(ctx.base_withLexicalEnvironment(scope))...
return new BwRecurrence((Collection)((TreeSet)getRrules()).clone(), (Collection)((TreeSet)getExrules()).clone(), (Collection)((TreeSet)getRdates()).clone(), (Collection)((TreeSet)getExdates()).clone(),
return new BwRecurrence(clone(getRrules()), clone(getExrules()), clone(getRdates()), clone(getExdates()),
public Object clone() { return new BwRecurrence((Collection)((TreeSet)getRrules()).clone(), (Collection)((TreeSet)getExrules()).clone(), (Collection)((TreeSet)getRdates()).clone(), (Collection)((TreeSet)getExdates()).clone(), ...
getEvent().getDtend(),
dt,
public DateTimeFormatter getEnd() { try { if (end == null) { end = new DateTimeFormatter(getCalInfo(), getEvent().getDtend(), ctz); } } catch (Throwable t) { error(t); } return end; }
hrefs = new Vector();
hrefs = new ArrayList();
private int processDoc(Document doc) throws WebdavException { try { WebdavNsIntf intf = getNsIntf(); Element root = doc.getDocumentElement(); /* Get hold of the PROPFIND method instance - we need it to process possible prop requests. */ PropFindMethod pm = (PropFindMethod)intf.fin...
nodes = new Vector();
nodes = new ArrayList();
public void processResp(HttpServletRequest req, HttpServletResponse resp, int depth) throws WebdavException { resp.setStatus(WebdavStatusCode.SC_MULTI_STATUS); resp.setContentType("text/xml; charset=UTF-8"); String resourceUri = getResourceUri(req); Caldav...
encryptedClassName = "6975";
Class defaultClass = Class.forName("com.idega.workspace.WorkspaceLoginPage"); encryptedClassName = IWMainApplication.getEncryptedClassName(defaultClass);
private Class getDescriptorClassNameForViewId(String viewId) throws ClassNotFoundException{ String encryptedClassName = null; //if(viewId.startsWith("/window")){ // encryptedClassName = viewId.substring(11,viewId.length()); //} //else{ String[] urlArray= StringHandler.breakDownURL(viewId); if(urlArray.length<...
else{
else if(urlArray.length==1){
private Class getDescriptorClassNameForViewId(String viewId) throws ClassNotFoundException{ String encryptedClassName = null; //if(viewId.startsWith("/window")){ // encryptedClassName = viewId.substring(11,viewId.length()); //} //else{ String[] urlArray= StringHandler.breakDownURL(viewId); if(urlArray.length<...
} else if(urlArray.length==2){ encryptedClassName = urlArray[1];
private Class getDescriptorClassNameForViewId(String viewId) throws ClassNotFoundException{ String encryptedClassName = null; //if(viewId.startsWith("/window")){ // encryptedClassName = viewId.substring(11,viewId.length()); //} //else{ String[] urlArray= StringHandler.breakDownURL(viewId); if(urlArray.length<...
child.getChildren().add(child);
this.child.getChildren().add(child);
public PageWrapper(UIComponent child){ if(child instanceof com.idega.presentation.Page){ this.child=child; } else{ this.child = new com.idega.presentation.Page(); child.getChildren().add(child); } }
Graphics2D copy = (Graphics2D)g;
Graphics2D copy = (Graphics2D)g.create();
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics2D copy = (Graphics2D)g; if (copy != null) { try { ...
return this.meta_defineField(field.getName(), field.getValue());
return this.meta_defineField(field.getName(), field.getFieldValue());
public ATNil meta_addField(ATField field) throws NATException { return this.meta_defineField(field.getName(), field.getValue()); }
System.out.println("mouseClicked");
public boolean mouseClicked(MouseEvent e){ System.out.println("mouseClicked"); synchronized(circles){ Iterator it = circles.iterator(); while(it.hasNext()){ OMEvent current = (OMEvent)it.next(); if(current.getBigCircle().contains(e.getX(), e.getY())){ System.out.println("Selection of event " + curre...
System.out.println("Selection of event " + current.getEvent());
public boolean mouseClicked(MouseEvent e){ System.out.println("mouseClicked"); synchronized(circles){ Iterator it = circles.iterator(); while(it.hasNext()){ OMEvent current = (OMEvent)it.next(); if(current.getBigCircle().contains(e.getX(), e.getY())){ System.out.println("Selection of event " + curre...
if (module.getInformationResource() != null) {
if (module.getInfoURL() != null) {
private void addModule(final ModuleContainer module) { if (!module.isPanel() && !module.isConfigurable()) { return; } String name = module.getName(); if (name == null || name.length() == 0) { name = "Untitled"; } JMenu m = new JMenu(name); m.setMnemonic(name.charAt(0)); if (module.isPanel()) { JMenuI...
URL url = module.getInformationResource();
URL url = module.getInfoURL();
private void addModule(final ModuleContainer module) { if (!module.isPanel() && !module.isConfigurable()) { return; } String name = module.getName(); if (name == null || name.length() == 0) { name = "Untitled"; } JMenu m = new JMenu(name); m.setMnemonic(name.charAt(0)); if (module.isPanel()) { JMenuI...
private static final long serialVersionUID = 2883659303596869565L;
private void addModule(final ModuleContainer module) { if (!module.isPanel() && !module.isConfigurable()) { return; } String name = module.getName(); if (name == null || name.length() == 0) { name = "Untitled"; } JMenu m = new JMenu(name); m.setMnemonic(name.charAt(0)); if (module.isPanel()) { JMenuI...
URL url = module.getInformationResource();
URL url = module.getInfoURL();
public void actionPerformed(ActionEvent arg0) { try { URL url = module.getInformationResource(); HTMLBrowser browser = new HTMLBrowser(url) { public String getTitle() { return module.getName() +" Info"; } }; addTab(browser); } catch (Exception exc) { ExceptionDial...
private static final long serialVersionUID = 2883659303596869565L;
public void actionPerformed(ActionEvent arg0) { try { URL url = module.getInformationResource(); HTMLBrowser browser = new HTMLBrowser(url) { public String getTitle() { return module.getName() +" Info"; } }; addTab(browser); } catch (Exception exc) { ExceptionDial...
splitPane.add(new JScrollPane(license));
splitPane.add(license);
private LicensePanel() { super(new GridLayout(1, 1)); final JLabel label = new JLabel(Messages.getString("LicensePanel.LOADING")); //$NON-NLS-1$ add(label); new Thread() { public void run() { JTextComponent copyright = createCopyrightPanel(); HTMLBrowser license = new HTMLBrowser(LICENSE_HTML); remove(l...
return new BwCalendar((BwUser)getOwner().clone(),
BwCalendar cal = new BwCalendar((BwUser)getOwner().clone(),
public Object clone() { return new BwCalendar((BwUser)getOwner().clone(), getPublick(), (BwUser)getCreator().clone(), getAccess(), getName(), getPath(), getSummary()...
cal.setId(getId()); cal.setSeq(getSeq()); return cal;
public Object clone() { return new BwCalendar((BwUser)getOwner().clone(), getPublick(), (BwUser)getCreator().clone(), getAccess(), getName(), getPath(), getSummary()...
return new BwCalendar((BwUser)getOwner().clone(),
BwCalendar cal = new BwCalendar((BwUser)getOwner().clone(),
public BwCalendar shallowClone() { return new BwCalendar((BwUser)getOwner().clone(), getPublick(), (BwUser)getCreator().clone(), getAccess(), getName(), getPath(), g...
cal.setId(getId()); cal.setSeq(getSeq()); return cal;
public BwCalendar shallowClone() { return new BwCalendar((BwUser)getOwner().clone(), getPublick(), (BwUser)getCreator().clone(), getAccess(), getName(), getPath(), g...
index = insertOnlyStation(sta, stmt, index, locTable, time);
index = insertOnlyStation(sta, stmt, index, netTable, locTable, time);
public static int insertAll(Station sta, PreparedStatement stmt, int index, JDBCNetwork netTable, JDBCLocation locTable, JDBCTime time) throws SQLException { index = insertId(sta.get_id(), stmt, index, netTable, time); index = insertOnlyStation(sta, stmt, index, locTable, time); ...
int index, JDBCLocation locTable, JDBCTime time)
int index, JDBCNetwork netTable, JDBCLocation locTable, JDBCTime time)
public static int insertOnlyStation(Station sta, PreparedStatement stmt, int index, JDBCLocation locTable, JDBCTime time) throws SQLException { stmt.setInt(index++, time.put(sta.effective_time.end_time)); stmt.setString(index++, sta.name); stmt.setString(index++, sta.opera...
int notUsed = netTable.put(sta.my_network);
public static int insertOnlyStation(Station sta, PreparedStatement stmt, int index, JDBCLocation locTable, JDBCTime time) throws SQLException { stmt.setInt(index++, time.put(sta.effective_time.end_time)); stmt.setString(index++, sta.name); stmt.setString(index++, sta.opera...
int index = insertOnlyStation(sta, updateSta, 1, locTable, time);
int index = insertOnlyStation(sta, updateSta, 1, netTable, locTable, time);
public int put(Station sta) throws SQLException { int dbid; try { dbid = getDBId(sta.get_id()); // No NotFound exception, so already added the id // now check if the attrs are added getIfNameExists.setInt(1, dbid); ResultSet rs = getIfNameExists.e...
active.remove(this);
public void run() { while (noQuit) { try { Runnable r = getFromQueue(); r.run(); } catch (Exception e) { GlobalExceptionHandler.handle(e); } } }
protected synchronized Runnable getFromQueue() throws InterruptedException {
private synchronized Runnable getFromQueue() throws InterruptedException {
protected synchronized Runnable getFromQueue() throws InterruptedException { while (queue.isEmpty()) { wait(); } return (Runnable)queue.removeLast(); }
o.setId(CalFacadeDefs.unsavedItemKey);
public void restoreUserPrefs(BwPreferences o) throws Throwable { if (!globals.onlyUsersMap.check(o)) { return; } openHibSess(); /* Unset the subscription id - hibernate cascades cause an error * We'll just have to go with a new id */ Iterator it = o.iterateSubscriptions(); while (it.has...
private CalEnv getEnv(HttpServletRequest request,
private CalEnvI getEnv(HttpServletRequest request,
private CalEnv getEnv(HttpServletRequest request, BwActionFormBase frm) throws Throwable { CalEnv env = frm.getEnv(); if (env != null) { return env; } HttpSession session = request.getSession(); ServletContext sc = session.getServletContext(); String appName = sc.getInitP...
CalEnv env = frm.getEnv();
CalEnvI env = frm.getEnv();
private CalEnv getEnv(HttpServletRequest request, BwActionFormBase frm) throws Throwable { CalEnv env = frm.getEnv(); if (env != null) { return env; } HttpSession session = request.getSession(); ServletContext sc = session.getServletContext(); String appName = sc.getInitP...
env = new CalEnv(envPrefix, debug);
env = CalEnvFactory.getEnv(envPrefix, debug);
private CalEnv getEnv(HttpServletRequest request, BwActionFormBase frm) throws Throwable { CalEnv env = frm.getEnv(); if (env != null) { return env; } HttpSession session = request.getSession(); ServletContext sc = session.getServletContext(); String appName = sc.getInitP...
CalEnv env = getEnv(request, form);
CalEnvI env = getEnv(request, form);
public String performAction(HttpServletRequest request, HttpServletResponse response, UtilActionForm frm, MessageResources messages) throws Throwable { String forward = "success"; BwActionFormBase form = (BwActionFormBase)frm...
for(int i = 0; i < seismos.length; i++){ ampData.put(seismos[i], new AmpConfigData(seismos[i], new UnitRangeImpl(-1, 1, edu.iris.Fissures.model.UnitImpl.COUNT), null, shift, scale)); seismos[i].addSeisDataChangeListener(this); seismos[i].retrieveData(this); }
for(int i = 0; i < seismos.length; i++){ if(!ampData.containsKey(seismos[i])){ ampData.put(seismos[i], new AmpConfigData(seismos[i], DisplayUtils.ONE_RANGE, DisplayUtils.ONE_TIME, shift, scale)); } seismos[i].addSeisDataChangeListener(this); seismos[i].retrieveData(this); }
public void add(DataSetSeismogram[] seismos){ for(int i = 0; i < seismos.length; i++){ ampData.put(seismos[i], new AmpConfigData(seismos[i], new UnitRangeImpl(-1, 1, edu.iris.Fissures.model.UnitImpl.COUNT), null, shift, scale)); seismos[i].addSeisDataChangeListener(this); seismos[i].retrieve...
if ( data.getSeismograms().length == 0) { return data.setCleanRange(DisplayUtils.ZERO_RANGE); } LocalSeismogramImpl seismogram = (LocalSeismogramImpl)data.getSeismograms()[0]; int[] seisIndex = DisplayUtils.getSeisPoints(seismogram, data.getTime()); if(seisIndex[1] < 0 || seisIndex[0] >= seismogram.getNumPoints()) { ...
if ( data.getSeismograms().length == 0) { return data.setCleanRange(DisplayUtils.ZERO_RANGE); } LocalSeismogramImpl seismogram = data.getSeismograms()[0]; int[] seisIndex = DisplayUtils.getSeisPoints(seismogram, data.getTime()); if(seisIndex[1] < 0 || seisIndex[0] >= seismogram.getNumPoints()) { data.setCalcIndex(sei...
private boolean setAmpRange(DataSetSeismogram seismo){ AmpConfigData data = (AmpConfigData)ampData.get(seismo); if ( data.getSeismograms().length == 0) { return data.setCleanRange(DisplayUtils.ZERO_RANGE); } // end of if () LocalSeismogramImpl seismogram = (LocalSeismogramImpl)data.getSeismograms()[0]; int[] s...
return null;
return result;
public Set entrySet() { Set result = new HashSet(); Set keys = internal_.keySet(); for (Iterator iter = keys.iterator(); iter.hasNext();) { Object key = iter.next(); Set values = (Set)get(key); for (Iterator iterator = values.iterator(); iterator.hasNext();) { Object value = iterator.next(); result.add(...
public Chronology getChronology(Object object, Chronology chrono) { if (chrono == null) { return ISOChronology.getInstance(); } return chrono;
public Chronology getChronology(Object object) { return ISOChronology.getInstance();
public Chronology getChronology(Object object, Chronology chrono) { if (chrono == null) { return ISOChronology.getInstance(); } return chrono; }
if(basicDisplays.size() > 0) this.addDisplay((LocalSeismogramImpl)seis,((SeismogramDisplay)basicDisplays.getFirst()).getTimeConfig(), ((SeismogramDisplay)basicDisplays.getFirst()).getAmpConfig()); else this.addDisplay((LocalSeismogramImpl)seis, new BoundedTimeConfig(), new RMeanAmpConfig());
this.addDisplay((LocalSeismogramImpl)seis);
public void addDisplay(LocalSeismogram seis){ if(basicDisplays.size() > 0) this.addDisplay((LocalSeismogramImpl)seis,((SeismogramDisplay)basicDisplays.getFirst()).getTimeConfig(), ((SeismogramDisplay)basicDisplays.getFirst()).getAmpConfig()); else this.addDisplay((LocalSeismogramImpl)seis, new B...
repaint();
public void removeAll(){ seismograms.removeAll(); remove(seismograms); basicDisplays = new LinkedList(); }
if(basicDisplays.size() == 1){ this.removeAll(); return; }
public void removeSeismogram(MouseEvent me){ if(basicDisplays.size() == 1){ this.removeAll(); return; } BasicSeismogramDisplay clicked = ((BasicSeismogramDisplay)me.getComponent()); seismograms.remove(clicked); basicDisplays.remove(clicked); ((SeismogramDisplay)basicDisplays.getFirst()).addTopTimeBorder(); ...
clicked.removeAllSeismograms();
public void removeSeismogram(MouseEvent me){ if(basicDisplays.size() == 1){ this.removeAll(); return; } BasicSeismogramDisplay clicked = ((BasicSeismogramDisplay)me.getComponent()); seismograms.remove(clicked); basicDisplays.remove(clicked); ((SeismogramDisplay)basicDisplays.getFirst()).addTopTimeBorder(); ...
form.getMsg().emit("org.bedework.client.message.calendar.referenced");
form.getErr().emit("org.bedework.client.error.calendar.referenced");
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } BwCalendar cal = form.ge...
int pixels = size.width;
int pixels = seisEndIndex - seisStartIndex + 1;
protected static int[][] scaleXvalues(LocalSeismogram seismogram, MicroSecondTimeRange timeRange, UnitRangeImpl ampRange, Dimension size) throws UnsupportedDataEncoding { LocalSeismogramImpl seis = (LocalSeismogramImpl)seismogram; int[][] out = new int[2][]; int seisIndex = 0; int pixelIn...
for(int i = 0; i < values.length; i++) { values[i] *= freqValues.length; }
public LocalSeismogramImpl apply(LocalSeismogramImpl seis, SacPoleZero poleZero, float lowCut, float lowPass, float highPass, float high...
if (false && freq < 0.01) { System.out.println("zero "+i+" freq "+freq+" "+zeroOut+" pz "+pz.getZeros()[i]);}
public static Cmplx evalPoleZeroInverse(SacPoleZero pz, double freq) { Cmplx s = new Cmplx(0, 2 * Math.PI * freq); Cmplx zeroOut = new Cmplx(1, 0); Cmplx poleOut = new Cmplx(1, 0); for(int i = 0; i < pz.getPoles().length; i++) { poleOut = Cmplx.mul(poleOut, Cmplx.sub(s, pz.get...
if (dayTimeDuration.equals(val)) { setWeeks(0); }
public void setType(String val) { type = val; }
return this.meta_defineField(field.base_getName(), field.base_getFieldValue());
return this.meta_defineField(field.base_getName(), field.base_getValue());
public ATNil meta_addField(ATField field) throws NATException { return this.meta_defineField(field.base_getName(), field.base_getFieldValue()); }
method.base_getName().getText().asNativeText().javaValue +
method.base_getName().base_getText().asNativeText().javaValue +
public ATNil meta_addMethod(ATMethod method) throws NATException { throw new XIllegalOperation("Cannot add method "+ method.base_getName().getText().asNativeText().javaValue + " to a call frame. Add it as a closure field instead."); }
throw new XDuplicateSlot("field ", name.getText().asNativeText().javaValue);
throw new XDuplicateSlot("field ", name.base_getText().asNativeText().javaValue);
public ATNil meta_defineField(ATSymbol name, ATObject value) throws NATException { boolean fieldAdded = variableMap_.put(name); if (!fieldAdded) { // field already exists... throw new XDuplicateSlot("field ", name.getText().asNativeText().javaValue); } else { // field now defined, add its value to the state v...
try { ATObject method = atTestObject.meta_select(atTestObject, AGSymbol.alloc("overloadedmatch2")); ATObject castedMethod = method.meta_invoke(method, AGSymbol.alloc("cast"), new NATTable(new ATObject[] { atTestClass })); castedMethod.base_asMethod().base_apply(new NATTable(new ATObject[] { atTestObject }), null); } c...
public void testCasting() { }
try { ATField result = atTestObject.meta_grabField(AGSymbol.alloc("xtest")).base_asField(); assertEquals("xtest", result.base_getName().toString()); assertEquals(TEST_OBJECT_INIT, result.base_getValue().asNativeNumber().javaValue); result = atTestClass.meta_grabField(AGSymbol.alloc("ytest")).base_asField(); assertEq...
public void testFirstClassFields() { }
try { ATMethod result = atTestObject.meta_grabMethod(AGSymbol.alloc("gettertest")).base_asMethod(); assertEquals("gettertest", result.base_getName().toString()); assertEquals(TEST_OBJECT_INIT, result.base_apply(NATTable.EMPTY, null).asNativeNumber().javaValue); result = atTestClass.meta_grabMethod(AGSymbol.alloc("p...
public void testFirstClassMethods() { }
System.out.println("0 link = " + link);
private void addLinks() { for (int i = 0; i < links.size(); i++) { IdeaLink link = links.get(i); System.out.println("0 link = " + link); int linkIndex = linkTos.get(i); Idea linkTo = ideaIndex.get(linkIndex); System.out.println("linkTo = " + linkTo); ...
System.out.println("linkTo = " + linkTo);
private void addLinks() { for (int i = 0; i < links.size(); i++) { IdeaLink link = links.get(i); System.out.println("0 link = " + link); int linkIndex = linkTos.get(i); Idea linkTo = ideaIndex.get(linkIndex); System.out.println("linkTo = " + linkTo); ...
System.out.println("1 link = " + link);
private void addLinks() { for (int i = 0; i < links.size(); i++) { IdeaLink link = links.get(i); System.out.println("0 link = " + link); int linkIndex = linkTos.get(i); Idea linkTo = ideaIndex.get(linkIndex); System.out.println("linkTo = " + linkTo); ...
System.out.println("2 link = " + link);
private void addLinks() { for (int i = 0; i < links.size(); i++) { IdeaLink link = links.get(i); System.out.println("0 link = " + link); int linkIndex = linkTos.get(i); Idea linkTo = ideaIndex.get(linkIndex); System.out.println("linkTo = " + linkTo); ...
System.out.println("linking from " + current); System.out.println("current class = " + current.getClass());
public void startElement(String namespaceURI, String sName, // simple name (localName) String qName, // qualified name Attributes attrs) throws SAXException { if ("outline".equals(qName)) { if (attrs != null) { String type = attrs.getValue...