rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
Object pk = ((KortathjonustanAuthorisationEntriesBMPBean)entity).ejbFindByAuthorizationCode(p0);
Object pk = ((KortathjonustanAuthorisationEntriesBMPBean)entity).ejbFindByAuthorizationCode(p0, stamp);
public KortathjonustanAuthorisationEntries findByAuthorizationCode(java.lang.String p0)throws javax.ejb.FinderException{ com.idega.data.IDOEntity entity = this.idoCheckOutPooledEntity(); Object pk = ((KortathjonustanAuthorisationEntriesBMPBean)entity).ejbFindByAuthorizationCode(p0); this.idoCheckInPooledEntity(entity);...
String modelName,
public SimplePhaseStoN(String phase, TimeInterval shortOffsetBegin, TimeInterval shortOffsetEnd, TimeInterval longOffsetBegin, TimeInterval longOffsetEnd, String modelName, ...
throw new NullPointerException("shortOffsetBegin cannot be null");
throw new NullPointerException("shortOffsetEnd cannot be null");
public SimplePhaseStoN(String phase, TimeInterval shortOffsetBegin, TimeInterval shortOffsetEnd, TimeInterval longOffsetBegin, TimeInterval longOffsetEnd, String modelName, ...
throw new NullPointerException("shortOffsetBegin cannot be null");
throw new NullPointerException("longOffsetBegin cannot be null");
public SimplePhaseStoN(String phase, TimeInterval shortOffsetBegin, TimeInterval shortOffsetEnd, TimeInterval longOffsetBegin, TimeInterval longOffsetEnd, String modelName, ...
throw new NullPointerException("shortOffsetBegin cannot be null");
throw new NullPointerException("longOffsetEnd cannot be null");
public SimplePhaseStoN(String phase, TimeInterval shortOffsetBegin, TimeInterval shortOffsetEnd, TimeInterval longOffsetBegin, TimeInterval longOffsetEnd, String modelName, ...
if ( ! varianceCalculated) { variance = binarySumDevSqr(0, getLength(), mean()) / (getLength()-1);
if ( ! varianceCalculated) { variance = binarySumDevSqr(0, getLength(), mean()) / (getLength()-1); } return variance;
public double var() { if ( ! varianceCalculated) { variance = binarySumDevSqr(0, getLength(), mean()) / (getLength()-1); } return variance; }
return variance; }
public double var() { if ( ! varianceCalculated) { variance = binarySumDevSqr(0, getLength(), mean()) / (getLength()-1); } return variance; }
return NATMirrorFactory._INSTANCE_.createMirror(extension);
return extension;
protected ATObject createChild(ATClosure code, boolean parentPointerType) throws InterpreterException { NATIntercessiveMirror extension = new NATIntercessiveMirror( /* dynamic parent */ this, /* lexical parent */ code.base_getContext().base_getLexicalScope(), /* parent porinter type */ parentPointer...
AGSymbol.alloc("print"),
AGSymbol.jAlloc("print"),
public NATText meta_print() throws InterpreterException { return Reflection.downObject(mirror_.meta_invoke( mirror_, AGSymbol.alloc("print"), NATTable.EMPTY )).asNativeText(); }
int index = networks.indexOf(net); networkList.getSelectionModel().addSelectionInterval(index, index);
public void appendNetwork(NetworkAccess net) { netIdToNetMap.put(NetworkIdUtil.toString(net.get_attributes().get_id()), net); networks.addElement(net); fireNetworkDataChangedEvent(net); }
public AvailableDataStationRenderer(boolean useNames, boolean useCodes, boolean codeIsFirst, DataCenterRouter dc, ChannelChooser channelChooser){ super(useNames, useCodes, codeIsFirst); this.dc = dc; this.channelChooser = channelChooser; startThread();
public AvailableDataStationRenderer(boolean useNames){ super(useNames);
public AvailableDataStationRenderer(boolean useNames, boolean useCodes, boolean codeIsFirst, DataCenterRouter dc, ChannelChooser channelChooser){ super(u...
} else if (name.equals("calendarid")) {
} else if (name.equals("subscriptions")) { } else if (name.equals("calendarid")) {
public void field(String name) throws java.lang.Exception{ BwUser u = (BwUser)top(); if (principalTags(u, name)) { return; } if (name.equals("instanceOwner")) { u.setInstanceOwner(booleanFld()); } else if (name.equals("quota")) { u.setQuota(longFld()); } else if (name.equals("calend...
System.out.println("calculation points for seismogram shape: " + points[0] + ", " + points[1]);
private void getEdgeValues(MicroSecondTimeRange time, Dimension size){ if(seis.getEndTime().before(time.getBeginTime()) || seis.getBeginTime().after(time.getEndTime())) { startPixel = 0; endPixel = 0; return; } int[] points = DisplayUtils.getSeisPoints(seis, time); System.out.println("calculation points...
System.out.println("pixels to be drawn by seismogram shape: " + startPixel + ", " + endPixel);
private void getEdgeValues(MicroSecondTimeRange time, Dimension size){ if(seis.getEndTime().before(time.getBeginTime()) || seis.getBeginTime().after(time.getEndTime())) { startPixel = 0; endPixel = 0; return; } int[] points = DisplayUtils.getSeisPoints(seis, time); System.out.println("calculation points...
return jdbcCatalog.getAllContributors();
return jdbcContributor.getAll();
public String[] known_contributors() { try { return jdbcCatalog.getAllContributors(); } catch(SQLException sqle) { logger.error("sql problem", sqle); throw new org.omg.CORBA.UNKNOWN(sqle.toString()); // send exception back to client } }
Integer[] eventIds;
int[] eventIds;
public EventAccess[] query_events(edu.iris.Fissures.Area the_area, edu.iris.Fissures.Quantity min_depth, edu.iris.Fissures.Quantity max_depth, edu.iris.Fissures.TimeRange time_range, ...
eventIds = jdbcEventAccess.getOnConstraint(min_depth.value,
eventIds = jdbcEventAccess.query(min_depth.value,
public EventAccess[] query_events(edu.iris.Fissures.Area the_area, edu.iris.Fissures.Quantity min_depth, edu.iris.Fissures.Quantity max_depth, edu.iris.Fissures.TimeRange time_range, ...
eventIds[counter].intValue()); org.omg.CORBA.Object obj = poa.create_reference_with_id(eventIds[counter].toString() .getBytes(),
eventIds[counter]); org.omg.CORBA.Object obj = poa.create_reference_with_id((""+eventIds[counter]).getBytes(),
public EventAccess[] query_events(edu.iris.Fissures.Area the_area, edu.iris.Fissures.Quantity min_depth, edu.iris.Fissures.Quantity max_depth, edu.iris.Fissures.TimeRange time_range, ...
} catch(NotFound nfe) { logger.error("Not found", nfe); throw new org.omg.CORBA.UNKNOWN(nfe.toString());
public EventAccess[] query_events(edu.iris.Fissures.Area the_area, edu.iris.Fissures.Quantity min_depth, edu.iris.Fissures.Quantity max_depth, edu.iris.Fissures.TimeRange time_range, ...
break;
repaint(); return;
public void selectRegion(MouseEvent one, MouseEvent two){ Insets insets = this.getInsets(); Dimension dim = getSize(); double x1percent, x2percent; if(one.getX() < two.getX()){ x1percent = (one.getX() - insets.left)/(double)(dim.getWidth() - insets.left - insets.right); x2percent = (two.getX() - insets.left...
if(currentSelection == null){ selections.add(new Selection(selectionBegin, selectionEnd, timeConfig, plotters)); currentSelection = ((Selection)selections.getFirst()); repaint(); return; }
currentSelection = new Selection(selectionBegin, selectionEnd, timeConfig, plotters); selections.add(currentSelection); repaint(); return;
public void selectRegion(MouseEvent one, MouseEvent two){ Insets insets = this.getInsets(); Dimension dim = getSize(); double x1percent, x2percent; if(one.getX() < two.getX()){ x1percent = (one.getX() - insets.left)/(double)(dim.getWidth() - insets.left - insets.right); x2percent = (two.getX() - insets.left...
SeismogramShapeIterator iterator){ iterator.setTotalShift(currentIterator.getTotalShift() + dragAmount); double pointsPerPixel = iterator.getPointsPerPixel(); int[] seisPoints = currentIterator.getSeisPoints(); seisPoints[0] =(int)-(iterator.getTotalShift() * pointsPerPixel) + iterator.getBaseSeisPoint(); seisPoints[1]...
SeismogramShapeIterator iterator){ iterator.setTotalShift(currentIterator.getTotalShift() + dragAmount); double pointsPerPixel = iterator.getPointsPerPixel(); int[] seisPoints = currentIterator.getSeisPoints(); seisPoints[0] =(int)-(iterator.getTotalShift() * pointsPerPixel) + iterator.getBaseSeisPoint(); seisPoints[1]...
private void drag(int dragAmount, int dragFrom, SeismogramShapeIterator iterator){ iterator.setTotalShift(currentIterator.getTotalShift() + dragAmount); double pointsPerPixel = iterator.getPointsPerPixel(); int[] seisPoints = currentIterator.getSeisPoints(); seisPoints[0] =(int)-(iterator.getTotalShift() * p...
public void dragPlot(SeismogramShapeIterator iterator){ iterator.copyBasicInfo(currentIterator); double shiftPercentage = getShiftPercentage(currentIterator.getTime(), iterator.getTime()); double pixels = currentIterator.getSize().width * shiftPercentage + currentIterator.getLeftoverPixels(); pixels *= 1000; pixels =...
private void dragPlot(SeismogramShapeIterator iterator){ iterator.copyBasicInfo(currentIterator); double shiftPercentage = getShiftPercentage(currentIterator.getTime(), iterator.getTime()); double pixels = currentIterator.getSize().width * shiftPercentage + currentIterator.getLeftoverPixels(); pixels *= 1000; pixels ...
public void dragPlot(SeismogramShapeIterator iterator){ iterator.copyBasicInfo(currentIterator); double shiftPercentage = getShiftPercentage(currentIterator.getTime(), iterator.getTime()); double pixels = currentIterator.getSize().width * shiftPercentage + currentIterator.getLeftoverPixels(); //...
int[] displayPixels = new int[2]; int[] seisPoints = iterator.getSeisPoints(); double pointsPerPixel = iterator.getPointsPerPixel(); int displayWidth = iterator.getSize().width; double seisPointRange = seisPoints[1] - seisPoints[0]; if(seisPoints[1] < 0 || seisPoints[0] > dss.getSeismogram().getNumPoints()){ displayPix...
int[] displayPixels = new int[2]; iterator.setDrawnPixels(displayPixels); int[] seisPoints = iterator.getSeisPoints(); double pointsPerPixel = iterator.getPointsPerPixel(); int displayWidth = iterator.getSize().width; double seisPointRange = seisPoints[1] - seisPoints[0]; if(seisPoints[1] < 0 || seisPoints[0] >= dss.ge...
public int[] getPixels(SeismogramShapeIterator iterator){ int[] displayPixels = new int[2]; int[] seisPoints = iterator.getSeisPoints(); double pointsPerPixel = iterator.getPointsPerPixel(); int displayWidth = iterator.getSize().width; double seisPointRange = seisPoints[1] - seisPoints[0]; if(seisPoints[1] < ...
iterator.setSeisPoints(DisplayUtils.getSeisPoints(dss.getSeismogram(), iterator.getTime())); iterator.setBaseSeisPoint(); iterator.setPointsPerPixel(); iterator.setPoints(new int[2][iterator.getSize().width]); plotPixels(iterator); currentIterator = iterator;
iterator.setSeisPoints(DisplayUtils.getSeisPoints(dss.getSeismogram(), iterator.getTime())); iterator.setBaseSeisPoint(); iterator.setPointsPerPixel(); if(iterator.getPointsPerPixel() <= 1){ compressPlot(iterator); }else{ iterator.setPoints(new int[2][iterator.getSize().width]); plotPixels(iterator); } currentIterator ...
public void plot(SeismogramShapeIterator iterator){ // System.out.println("Plotting all points"); iterator.setSeisPoints(DisplayUtils.getSeisPoints(dss.getSeismogram(), iterator.getTime())); iterator.setBaseSeisPoint(); iterator.setPointsPerPixel(); iterator.setPoints(new int[2][iterator.getSize...
UnitRangeImpl amp, Dimension size){ SeismogramShapeIterator newIterator = new SeismogramShapeIterator(time, amp, size); if(lessThanOnePointPerPixel(newIterator)){ }else if(newIterator.isDraggedFrom(currentIterator) && newIterator.hasSimilarAmp(currentIterator)){ dragPlot(newIterator); }else{ plot(newIterator); }
UnitRangeImpl amp, Dimension size){ SeismogramShapeIterator newIterator = new SeismogramShapeIterator(time, amp, size); if(newIterator.isDraggedFrom(currentIterator) && newIterator.hasSimilarAmp(currentIterator)){ dragPlot(newIterator); return; }else{ plot(newIterator); }
public void update(MicroSecondTimeRange time, UnitRangeImpl amp, Dimension size){ SeismogramShapeIterator newIterator = new SeismogramShapeIterator(time, amp, size); if(lessThanOnePointPerPixel(newIterator)){ //compressPlot(newIterator); }else if(newIterator....
return 2; } BwPreferences prefs = getUserPrefs(val.getOwner()); if (val.equals(prefs.getDefaultCalendar())) {
public int deleteCalendar(BwCalendar val) throws CalFacadeException { /** Only allow delete if not in use */ if (getCal().checkCalendarRefs(val)) { return 2; } if (pars.getPublicAdmin()) { /* Remove from preferences */ getUserAuth().removeCalendar(null, val); } /* Attempt to delet...
public BwCalSuiteWrapper getCalSuite(String name) throws CalFacadeException { return dbi.getCalSuite(name);
public BwCalSuiteWrapper getCalSuite() throws CalFacadeException { return currentCalSuite;
public BwCalSuiteWrapper getCalSuite(String name) throws CalFacadeException { return dbi.getCalSuite(name); }
if (pars.isGuest() && (pars.getUser() == null)) { pars.setUser(env.getAppProperty("run.as.user")); }
public void init(CalSvcIPars parsParam) throws CalFacadeException { pars = (CalSvcIPars)parsParam.clone(); debug = pars.getDebug(); //if (userAuth != null) { // userAuth.reinitialise(getUserAuthCallBack()); //} if (userGroups != null) { userGroups.init(getGroupsCallBack()); } if (adminGr...
" def Factory := jlobby.edu.vub.at.objects.mirrors.NATMirrorFactory.INSTANCE; \n" +
" def Factory := object: {" + " def createMirror(o) { reflect: o }" + " }" +
protected void setUp() throws Exception { super.setUp(); evalAndReturn( "def at := object: { \n" + " def mirrors := object: { \n" + " def Factory := jlobby.edu.vub.at.objects.mirrors.NATMirrorFactory.INSTANCE; \n" + " }; \n" + " def unit := object: { \n" + " def XUnitFailed := object: { ...
NATTable.EMPTY, new NATIntrospectiveMirror(NATNil._INSTANCE_),
NATTable.EMPTY, NATIntrospectiveMirror.atValue(NATNil._INSTANCE_),
public void testJavaMirrorBaseRelation() { try { ATObject[] objects = new ATObject[] { NATNil._INSTANCE_, NATBoolean._TRUE_, NATNumber.ZERO, new NATObject(), new NATSuperObject(new NATObject(), Evaluator.getGlobalLexicalScope()), NATTable.EMPTY, new NATIntrospectiveMirror(NATNil._INSTANCE_), new...
mirrors[i] = NATMirrorFactory._INSTANCE_.createMirror(objects[i]);
mirrors[i] = NATIntrospectiveMirror.atValue(objects[i]);
public void testJavaMirrorBaseRelation() { try { ATObject[] objects = new ATObject[] { NATNil._INSTANCE_, NATBoolean._TRUE_, NATNumber.ZERO, new NATObject(), new NATSuperObject(new NATObject(), Evaluator.getGlobalLexicalScope()), NATTable.EMPTY, new NATIntrospectiveMirror(NATNil._INSTANCE_), new...
ATMirror trueMirror = NATMirrorFactory._INSTANCE_.createMirror(NATBoolean._TRUE_);
ATMirror trueMirror = NATIntrospectiveMirror.atValue(NATBoolean._TRUE_);
public void testJavaMirrorInvocation() { try { ATMirror trueMirror = NATMirrorFactory._INSTANCE_.createMirror(NATBoolean._TRUE_); ATMirror responds = (ATMirror)trueMirror.meta_invoke( trueMirror, AGSymbol.jAlloc("respondsTo"), NATTable.atValue(new ATObject[] { AGSymbol.jAlloc("ifTrue:") })); respond...
err.emit("org.bedework.pubevents.error.missingfield", "Category");
err.emit("org.bedework.client.error.missingfield", "Category");
public boolean validateCategory() throws Throwable { boolean ok = true; BwCategory k = getCategory(); k.setWord(Util.checkNull(k.getWord())); k.setDescription(Util.checkNull(k.getDescription())); if (k.getWord() == null) { err.emit("org.bedework.pubevents.error.missingfield", "Catego...
err.emit("org.bedework.pubevents.error.missingfield", "Calendar");
err.emit("org.bedework.client.error.missingfield", "Calendar");
public boolean validateEventCalendar() { boolean ok = true; if (!calendarId.getChanged()) { if (event.getCalendar() == null) { err.emit("org.bedework.pubevents.error.missingfield", "Calendar"); return false; } return ok; } // The user selected one from the list...
err.emit("org.bedework.pubevents.error.missingfield", "Category");
err.emit("org.bedework.client.error.missingfield", "Category");
public boolean validateEventCategory() throws Throwable { int id = keyId.getVal(); if (id <= 0) { if (getEnv().getAppBoolProperty("app.categoryOptional")) { return true; } err.emit("org.bedework.pubevents.error.missingfield", "Category"); return false; } try { ...
err.emit("org.bedework.pubevents.error.missingcategory", id);
err.emit("org.bedework.client.error.missingcategory", id);
public boolean validateEventCategory() throws Throwable { int id = keyId.getVal(); if (id <= 0) { if (getEnv().getAppBoolProperty("app.categoryOptional")) { return true; } err.emit("org.bedework.pubevents.error.missingfield", "Category"); return false; } try { ...
err.emit("org.bedework.pubevents.error.missingfield", "Location");
err.emit("org.bedework.client.error.missingfield", "Location");
public boolean validateEventLocation() throws Throwable { boolean ok = true; if (!locId.getChanged()) { if (getAutoCreateLocations()) { BwLocation l = getLocation(); if (!BwWebUtil.validateLocation(l, err)) { return false; } getCalSvcI().ensureLocationExists(l); ...
err.emit("org.bedework.pubevents.error.missingfield", "Sponsor");
err.emit("org.bedework.client.error.missingfield", "Sponsor");
public boolean validateEventSponsor() throws Throwable { boolean ok = true; if (!spId.getChanged()) { if (getAutoCreateSponsors()) { BwSponsor s = getSponsor(); if (!BwWebUtil.validateSponsor(s, err)) { return false; } getCalSvcI().ensureSponsorExists(s); setSpon...
public IntSelectId(int originalValue, int preferred) { reset(originalValue, preferred);
public IntSelectId(int originalValue) { this.originalValue = originalValue; this.newValue = originalValue;
public IntSelectId(int originalValue, int preferred) { reset(originalValue, preferred); }
appendHeader(doc, seis.getName());
appendHeader(doc, dss.getName());
public void addSeismogram(DataSetSeismogram dss){ HashMap values = new HashMap(); Document doc = getDocument(); try{ appendLine(doc, ""); LocalSeismogramImpl seis = dss.getSeismogram(); appendHeader(doc, seis.getName()); values.put("Number of Points", twoDecimal.format(seis.getNumPoints())); val...
if (totalWidth > DynamicReportDesign.PAGE_WIDTH_WITHOUT_MARGINS_PORTRAIT_A4) { design.setOrientationLandscape(); int landscapeWidth = (totalWidth > DynamicReportDesign.PAGE_WIDTH_WITHOUT_MARGINS_LANDSCAPE_A4) ? totalWidth + DynamicReportDesign.PAGE_LEFT_MARGIN + DynamicReportDesign.PAGE_RIGHT_MARGIN : DynamicReportDe...
public DesignBox getDynamicDesignBox(SQLQuery query, IWResourceBundle resourceBundle, IWContext iwc) throws IOException, JRException { final int columnSpacing = 15; final int columnWidth = 120; final int labelWidth = 95; final int valueWidth = 55; Map parameterMap = new HashMap(); DynamicReportDesig...
seis.setName(seisName); URLDataSetSeismogram urlDSS = new URLDataSetSeismogram(seisURL, SeismogramFileTypes.SAC, dataset); urlDSS.addToCache(seisURL, SeismogramFileTypes.SAC, seis);
System.out.println("seis name="+seisName+" url="+seisURL); MemoryDataSetSeismogram memDSS = new MemoryDataSetSeismogram(seis, dataset, seisName);
void loadSacFile(Element dsElement, File sacFile) throws IOException, FissuresException { if (excludes.contains(sacFile.getName())) { return; } // end of if (excludes.contains(sacFile.getName())) if (paramRefs.containsValue(sacFile.getName())) { return; } // end of ...
dataset.addDataSetSeismogram(urlDSS, seisAudit);
dataset.addDataSetSeismogram(memDSS, seisAudit); System.out.println("Done with "+seisName);
void loadSacFile(Element dsElement, File sacFile) throws IOException, FissuresException { if (excludes.contains(sacFile.getName())) { return; } // end of if (excludes.contains(sacFile.getName())) if (paramRefs.containsValue(sacFile.getName())) { return; } // end of ...
if (dirName != null && f.isDirectory()) { SacDirToDataSet sdir = new SacDirToDataSet(base, f, dsName, excludes, params); sdir.process(); } else { System.err.println("Not a directory: "+args[1]); }
if (dirName != null) { if ( ! f.exists()) { f.mkdirs(); } if ( f.isDirectory()) { SacDirToDataSet sdir = new SacDirToDataSet(base, f, dsName, excludes, params); sdir.process(); } else { System.err.println("Not a directory: "+args[1]); } }
public static void main (String[] args) { if (args.length < 4) { System.err.println("Usage: java edu.sc.seis.fissuresUtil.sac.SacDirToDataSet -base url -dir directoryPath -name datasetname [-exclude file] [-paramRef name file]"); return; } // end of if (args.length != 2) S...
System.out.println("Process "+filename);
void process() throws ParserConfigurationException, MalformedURLException, IOException { dirURL = base; System.out.println(" dirURL is "+dirURL.toString()); System.out.println(" directory name is "+directory.getName()); dirURL = new URL(dirURL.toString()+"/"+directory.getNa...
while(i < seismos.size() && ((String)seismos.get(i)).compareToIgnoreCase(name) < 0){
while(i < names.size() && ((String)names.get(i)).compareToIgnoreCase(name) < 0){
public int sort(DataSetSeismogram seismo, String name){ int i = 0; while(i < seismos.size() && ((String)seismos.get(i)).compareToIgnoreCase(name) < 0){ i++; } seismos.add(i, name); return i; }
seismos.add(i, name);
names.add(i, name);
public int sort(DataSetSeismogram seismo, String name){ int i = 0; while(i < seismos.size() && ((String)seismos.get(i)).compareToIgnoreCase(name) < 0){ i++; } seismos.add(i, name); return i; }
customClosure_.meta_defineField(AGSymbol.alloc("apply"), new NativeClosure(customClosure_) {
customClosure_.meta_defineField(AGSymbol.jAlloc("apply"), new NativeClosure(customClosure_) {
public void setUp() { try { customClosure_ = new NATObject(); customClosure_.meta_defineField(AGSymbol.alloc("apply"), new NativeClosure(customClosure_) { public ATObject base_apply(ATTable args) throws InterpreterException { ATTable apply_args = get(args, 1).base_asTable(); assertEquals(42, getNbr(app...
customClosure_.meta_defineField(AGSymbol.alloc("method"), new NATMethod(AGSymbol.alloc("foo"), NATTable.EMPTY, new AGBegin(NATTable.EMPTY)));
customClosure_.meta_defineField(AGSymbol.jAlloc("method"), new NATMethod(AGSymbol.jAlloc("foo"), NATTable.EMPTY, new AGBegin(NATTable.EMPTY)));
public void setUp() { try { customClosure_ = new NATObject(); customClosure_.meta_defineField(AGSymbol.alloc("apply"), new NativeClosure(customClosure_) { public ATObject base_apply(ATTable args) throws InterpreterException { ATTable apply_args = get(args, 1).base_asTable(); assertEquals(42, getNbr(app...
customContext_.meta_defineField(AGSymbol.alloc("self"), NATNumber.atValue(24)); customClosure_.meta_defineField(AGSymbol.alloc("context"), customContext_);
customContext_.meta_defineField(AGSymbol.jAlloc("self"), NATNumber.atValue(24)); customClosure_.meta_defineField(AGSymbol.jAlloc("context"), customContext_);
public void setUp() { try { customClosure_ = new NATObject(); customClosure_.meta_defineField(AGSymbol.alloc("apply"), new NativeClosure(customClosure_) { public ATObject base_apply(ATTable args) throws InterpreterException { ATTable apply_args = get(args, 1).base_asTable(); assertEquals(42, getNbr(app...
assertTrue(coercedObject.meta_respondsTo(AGSymbol.alloc("apply")).asNativeBoolean().javaValue);
assertTrue(coercedObject.meta_respondsTo(AGSymbol.jAlloc("apply")).asNativeBoolean().javaValue);
public void testCoercedMetalevelInvocation() { try { ATClosure coercedObject = customClosure_.base_asClosure(); assertTrue(coercedObject.meta_respondsTo(AGSymbol.alloc("apply")).asNativeBoolean().javaValue); } catch (InterpreterException e) { fail(e.getMessage()); } }
out.close();
protected void appendToIndexFile(File errorFile, Throwable t) throws IOException { File index = new File(directory, "index.html"); BufferedWriter out = new BufferedWriter(new FileWriter(index, true)); writeln(out, new MicroSecondDate()+" <a href="+'"'+errorFile.getName()+'"'+">"+t.getClass().ge...
initialBit += "<br/>\n" + constructString((Section)it.next());
initialBit += "<hr/><br/>\n" + constructString((Section)it.next());
private String constructString(String initialBit, List sections){ Iterator it = sections.iterator(); while(it.hasNext()){ initialBit += "<br/>\n" + constructString((Section)it.next()); } return initialBit; }
return "<hline/>";
return "<hr/>";
private String makeDivider(int len){ return "<hline/>"; }
str += stackTrace + "<pre>"+makeDivider(stackTrace.length()) + ExceptionReporterUtils.getTrace(e)+"</pre>";
str += stackTrace +makeDivider(stackTrace.length()) + "<pre>"+ ExceptionReporterUtils.getTrace(e)+"</pre>";
public void report(String message, Throwable e, List sections) throws IOException{ File outFile = new File(directory, "Exception_"+lastFileNum+".html"); appendToIndexFile(outFile, e); BufferedWriter bw = new BufferedWriter(new FileWriter(outFile)); String str = getHeader(e, lastFileNum);...
public abstract BwCalSuiteWrapper getCalSuite(String name) throws CalFacadeException;
public abstract BwCalSuiteWrapper getCalSuite() throws CalFacadeException;
public abstract BwCalSuiteWrapper getCalSuite(String name) throws CalFacadeException;
EventInfo ei = form.fetchSvci().getEvent(event.getId());
EventInfo ei = fetchEvent(event, form);
public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { boolean alerts = form.getAlertEvent(); /** Check access and set request parameters */ if (alerts) { if (!form.getUserAuth().isAlertUser()) { ...
if (currentPopup != null){ currentPopup.setVisible(false); currentPopup = null; }
maybeKillCurrentPopup();
public boolean mouseClicked(MouseEvent e){ if (currentPopup != null){ currentPopup.setVisible(false); currentPopup = null; } List stationsUnderMouse = new ArrayList(); synchronized(omgraphics){ Iterator it = omgraphics.iterator(); while(it.hasN...
popup.setInvoker(this);
public boolean mouseClicked(MouseEvent e){ if (currentPopup != null){ currentPopup.setVisible(false); currentPopup = null; } List stationsUnderMouse = new ArrayList(); synchronized(omgraphics){ Iterator it = omgraphics.iterator(); while(it.hasN...
maybeKillCurrentPopup();
public boolean mouseMoved(MouseEvent e){ synchronized(omgraphics){ Iterator it = omgraphics.iterator(); while(it.hasNext()){ OMStation current = (OMStation)it.next(); if(current.contains(e.getX(), e.getY())){ Station station = current.get...
form.initFields();
initFields(form);
public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /** Check access */ if (!form.getAuthorisedUser()) { return "noAccess"; } /** Set the objects to null so we get new ones. */ form.initFie...
public BwUser getUser() throws CalFacadeException { return user;
public BwUser getUser(int id) throws CalFacadeException { checkOpen(); throw new CalFacadeUnimplementedException();
public BwUser getUser() throws CalFacadeException { return user; }
public boolean init(String authenticatedUser,
public boolean init(String url, String authenticatedUser,
public boolean init(String authenticatedUser, String user, boolean publicAdmin, Groups groups, String synchId, boolean debug) throws CalFacadeException { boolean userAdded = super.init(authenticatedUser, user, ...
boolean userAdded = super.init(authenticatedUser, user, publicAdmin,
boolean userAdded = super.init(url, authenticatedUser, user, publicAdmin,
public boolean init(String authenticatedUser, String user, boolean publicAdmin, Groups groups, String synchId, boolean debug) throws CalFacadeException { boolean userAdded = super.init(authenticatedUser, user, ...
private void logon(BwUser val) throws CalFacadeException {
public void logon(BwUser val) throws CalFacadeException {
private void logon(BwUser val) throws CalFacadeException { checkOpen(); throw new CalFacadeUnimplementedException(); }
public void updateUser() throws CalFacadeException { updateUser(getUser());
public void updateUser(BwUser user) throws CalFacadeException { checkOpen(); throw new CalFacadeUnimplementedException();
public void updateUser() throws CalFacadeException { updateUser(getUser()); }
return;
public void generatePropValue(WebdavNsNode node, WebdavProperty pr) throws WebdavIntfException { QName tag = pr.getTag(); String ns = tag.getNamespaceURI(); try { /* Deal with webdav properties */ if (!ns.equals(WebdavTags.namespace)) { // Not ours openP...
} else { try { log("Cannot find creditCardInformation for supplier = "+ supplier.getName()+", looking up authEntry in TPOS..."); TPosAuthorisationEntriesBeanHome authEntHome = (TPosAuthorisationEntriesBeanHome) IDOLookup.getHome(TPosAuthorisationEntriesBean.class); TPosAuthorisationEntriesBean entry = authEntHome.findB...
public CreditCardAuthorizationEntry getAuthorizationEntry(Supplier supplier, String authorizationCode, IWTimestamp stamp) { CreditCardInformation info = getCreditCardInformation(supplier, stamp); if (info != null) { try { if ( CreditCardMerchant.MERCHANT_TYPE_TPOS.equals(info.getType()) ){ TPosAuthorisation...
public TPosAuthorisationEntriesBean findByAuthorisationIdRsp(java.lang.String p0)throws javax.ejb.FinderException;
public TPosAuthorisationEntriesBean findByAuthorisationIdRsp(java.lang.String p0, IWTimestamp stamp)throws javax.ejb.FinderException;
public TPosAuthorisationEntriesBean findByAuthorisationIdRsp(java.lang.String p0)throws javax.ejb.FinderException;
public KortathjonustanAuthorisationEntries findByAuthorizationCode(java.lang.String p0)throws javax.ejb.FinderException;
public KortathjonustanAuthorisationEntries findByAuthorizationCode(java.lang.String p0, IWTimestamp stamp)throws javax.ejb.FinderException;
public KortathjonustanAuthorisationEntries findByAuthorizationCode(java.lang.String p0)throws javax.ejb.FinderException;
return lookupFrame_.meta_invoke(receiver_, selector, arguments);
if(selector == AGSymbol.jAlloc("==")) return super.meta_invoke(this, selector, arguments); return lookupFrame_.meta_invoke(receiver_, selector, arguments);
public ATObject meta_invoke(ATObject receiver, ATSymbol selector, ATTable arguments) throws InterpreterException { return lookupFrame_.meta_invoke(receiver_, selector, arguments); }
semanticHint = UMLVisualIDRegistry.getType(org.eclipse.uml2.diagram.profile.edit.parts.EnumerationLiteralsEditPart.VISUAL_ID);
semanticHint = UMLVisualIDRegistry.getType(EnumerationLiteralsEditPart.VISUAL_ID);
protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) { if (semanticHint == null) { semanticHint = UMLVisualIDRegistry.getType(org.eclipse.uml2.diagram.profile.edit.parts.EnumerationLiteralsEditPart.VISUAL_ID); view.setType(semant...
public ATFraction base_abs();
public ATNumeric base_abs();
public ATFraction base_abs();
public ATFraction base_dec();
public ATNumeric base_dec();
public ATFraction base_dec();
public ATFraction base_inc();
public ATNumeric base_inc();
public ATFraction base_inc();
ideaMap.requestFocusInWindow(); IdeaView current = ideaMap.getSelectedView(); if (current != null) { unEditIdeaView(current); }
unEditCurrent(); } }); this.ideaMap.getTextField().addFocusListener(new FocusListener() { public void focusLost(FocusEvent fe) { unEditCurrent(); } public void focusGained(FocusEvent fe) {
public IdeaMapController(IdeaMap newIdeaMap) { this.ideaMap = newIdeaMap; this.ideaMap.setFocusTraversalKeysEnabled(false); this.ideaMap.setFocusable(true); this.ideaMap.addFocusListener(this); this.ideaMap.addKeyListener(this); this.ideaMap.addMouseListener(this); t...
ideaMap.requestFocusInWindow(); IdeaView current = ideaMap.getSelectedView(); if (current != null) { unEditIdeaView(current); }
unEditCurrent();
public void actionPerformed(ActionEvent e) { ideaMap.requestFocusInWindow(); IdeaView current = ideaMap.getSelectedView(); if (current != null) { unEditIdeaView(current); } }
events = new Events(this, access, this.user, currentMode,
events = new Events(this, access, currentMode,
public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = deb...
calendars = new Calendars(this, access, this.user, currentMode,
calendars = new Calendars(this, access, currentMode,
public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = deb...
categories = new EventProperties(this, access, this.user, currentMode,
categories = new EventProperties(this, access, currentMode,
public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = deb...
locations = new EventProperties(this, access, this.user, currentMode,
locations = new EventProperties(this, access, currentMode,
public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = deb...
sponsors = new EventProperties(this, access, this.user, currentMode,
sponsors = new EventProperties(this, access, currentMode,
public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = deb...
tzinfo = (TimezoneInfo)timezones.get(id);
if (systemHasPrecedence) { tzinfo = (TimezoneInfo)systemTimezones.get(id); } else { tzinfo = (TimezoneInfo)timezones.get(id); } if (tzinfo == null) { if (systemHasPrecedence) { tzinfo = (TimezoneInfo)timezones.get(id); } else { tzinfo = (TimezoneInfo)systemTimezones.get(id); } }
protected TimezoneInfo lookup(String id) throws CalFacadeException { TimezoneInfo tzinfo; tzinfo = (TimezoneInfo)timezones.get(id); return tzinfo; }
impl.getUserAttributes(Collections.singletonMap("dummy", "seed"));
impl.getUserAttributes(Collections.singletonMap("username", "seed"));
public void testNullContext() { LdapPersonAttributeDao impl = new LdapPersonAttributeDao(); impl.setContextSource(this.contextSource); try { impl.getUserAttributes(Collections.singletonMap("dummy", "seed")); fail("IllegalStateException should have been thrown with ...
impl.getUserAttributes(Collections.singletonMap("dummy", "seed"));
impl.getUserAttributes(Collections.singletonMap("username", "seed"));
public void testNullQuery() { LdapPersonAttributeDao impl = new LdapPersonAttributeDao(); try { impl.getUserAttributes(Collections.singletonMap("dummy", "seed")); fail("IllegalStateException should have been thrown with no context configured"); } catch (Ille...
assertEquals(Collections.EMPTY_LIST, impl.getQueryAttributes());
assertNull(impl.getQueryAttributes());
public void testProperties() { LdapPersonAttributeDao impl = new LdapPersonAttributeDao(); assertEquals("", impl.getBaseDN()); impl.setBaseDN("BaseDN"); assertEquals("BaseDN", impl.getBaseDN()); impl.setBaseDN(null); assertEquals("", impl.getBaseDN()); ...
int numRowsInScoreSheet = Main.getMain().getNumberOfPlayers() + 4;
public void setComponentsBounds() { int width = panel.getWidth(); int height = panel.getHeight(); int gameBoardWidth = width / 2 - (borderWidth + borderWidth / 2); int gameBoardHeight = gameBoardWidth * 3 / 4; setComponentBounds(gameBoard, borderWidth, borderWidth, gameBoardWidth, ga...
info.informationResource = attr.getValue(ATTR_MODULE_INFORMATION);
info.infoURL = getInfoURL(jarURL, attr);
private ModuleLoader.ModuleInfoContainer getModuleInfo() throws ModuleLoaderException { try { URL jarURL = new URL("jar", "", url +"!/"); JarURLConnection conn = (JarURLConnection)jarURL.openConnection(); Attributes attr = conn.getMainAttributes(); if (attr == null) { throw new ModuleLoaderException("No M...
height);
height - 5);
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics2D copy = (Graphics2D)g.create(); if (copy != null) { copy.t...
bottom = 20 + getFontHeight(scaleMap.getAxisLabel());
bottom = majorTickLength + 2 * getFontHeight(scaleMap.getAxisLabel()) + 5;
public void setBottomScaleMapper(ScaleMapper scaleMap) { this.bottomScaleMap = scaleMap; if(scaleMap.getAxisLabel() != null && !scaleMap.getAxisLabel().equals("")){ bottom = 20 + getFontHeight(scaleMap.getAxisLabel()); }else{ bottom = 20; } }
String ns = prop.getNamespaceURI(); String nm = prop.getLocalName();
private void processPlist(Collection plist, Element node, boolean remove) throws WebdavException { Element[] props = getChildren(node); for (int i = 0; i < props.length; i++) { Element prop = props[i]; String ns = prop.getNamespaceURI(); String nm = prop.getLocalName();...
plist.add(new Property(ns, nm, value));
plist.add(prop);
private void processPlist(Collection plist, Element node, boolean remove) throws WebdavException { Element[] props = getChildren(node); for (int i = 0; i < props.length; i++) { Element prop = props[i]; String ns = prop.getNamespaceURI(); String nm = prop.getLocalName();...
trace("reqtype: " + nm + " ns: " + ns + " value: " + value);
trace("reqtype: " + prop.getLocalName() + " ns: " + prop.getNamespaceURI() + " value: " + value);
private void processPlist(Collection plist, Element node, boolean remove) throws WebdavException { Element[] props = getChildren(node); for (int i = 0; i < props.length; i++) { Element prop = props[i]; String ns = prop.getNamespaceURI(); String nm = prop.getLocalName();...
this.setLayoutManager(new org.eclipse.gmf.internal.codegen.draw2d.GridLayout());
org.eclipse.gmf.internal.codegen.draw2d.GridLayout layoutThis = new org.eclipse.gmf.internal.codegen.draw2d.GridLayout(); layoutThis.numColumns = 1; layoutThis.makeColumnsEqualWidth = true; layoutThis.horizontalSpacing = 0; layoutThis.verticalSpacing = 0; layoutThis.marginWidth = 0; layoutThis.marginHeight = 0; this.se...
public ClassFigure() { this.setLayoutManager(new org.eclipse.gmf.internal.codegen.draw2d.GridLayout()); this.setFill(false); this.setFillXOR(false); this.setOutline(false); this.setOutlineXOR(false); this.setLineWidth(1); this.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); createContents(); }
String t = seedDate.format(date); int millis =(int) (date.getMicroSeconds() % 1000000) / 100; setStartTime( t + millis);
Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("UTC")); cal.setTime(date);
public void setStartTime(MicroSecondDate date) { String t = seedDate.format(date); int millis =(int) (date.getMicroSeconds() % 1000000) / 100; setStartTime( t + millis); }
Btime btime = new Btime(); btime.tenthMilli = (int)Math.round(((date.getTime()*1000+date.getMicroSeconds()) % 1000000) / 100.0); btime.year = cal.get(cal.YEAR); btime.jday = cal.get(cal.DAY_OF_YEAR); btime.hour = cal.get(cal.HOUR); System.out.println("Hour "+cal.get(cal.HOUR)+" btime="+btime.hour+" date="+date.getFissu...
public void setStartTime(MicroSecondDate date) { String t = seedDate.format(date); int millis =(int) (date.getMicroSeconds() % 1000000) / 100; setStartTime( t + millis); }
ampScaleMap = new AmpScaleMapper(50, 4, (AmpRangeConfig)ampRegistrar);
ampScaleMap = new AmpScaleMapper(50, 4, ampRegistrar);
public void initializeDisplay(DataSetSeismogram seis, String name, VerticalSeismogramDisplay parent){ this.name = name; this.parent = parent; plotPainter = new PlotPainter(); add(plotPainter); ampRegistrar.visibleAmpCalc(timeRegistrar); addSeismogram(seis); setLayout(new OverlayLayout(this)); addComponentListener(n...
nts.add((BwCalendar)((BwCalendar)it.next()).clone());
nts.add((BwCalendar)((BwCalendar)it.next()).shallowClone());
public Object clone() { BwAuthUserPrefs aup = new BwAuthUserPrefs(); aup.setId(getId()); // Don't clone the authuser - sets up a loop aup.setAutoAddCategories(getAutoAddCategories()); TreeSet nts = new TreeSet(); Set ts = getPreferredCategories(); if (ts != null) { Iterator it = ts.iterator(...
while(i < seismos.size() && seismo.isFurtherThan((DataSetSeismogram)seismos.get(i))){
while(i < seismos.size() && seismo.isFurtherThan((DataSetSeismogram)seismos.get(names.get(i)))){
public int sort(DataSetSeismogram seismo, String name){ int i = 0; while(i < seismos.size() && seismo.isFurtherThan((DataSetSeismogram)seismos.get(i))){ i++; } seismos.add(i, seismo); return i; }