bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFo...
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFo...
1,118,922
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFo...
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFo...
1,118,923
protected synchronized Station getToCheck() throws InterruptedException { while (stationsToCheck.isEmpty()) { wait(); } return (Station)stationsToCheck.removeLast(); }
protected synchronized Station getToCheck() throws InterruptedException { while (stationsToCheck.isEmpty()) { wait(); } Station sta = (Station)stationsToCheck.removeLast(); stationsUpNow.put(sta, sta); return sta; }
1,118,924
public void addDataSet(DataSet dataset, AuditInfo[] audit) { if (dataset instanceof XMLDataSet) { config.appendChild(((XMLDataSet)dataset).config); } // end of if (dataset instanceof XMLDataSet) }
public void addDataSet(DataSet dataset, AuditInfo[] audit) { if (dataset instanceof XMLDataSet) { config.appendChild(((XMLDataSet)dataset).config); } // end of if (dataset instanceof XMLDataSet) }
1,118,925
public void addSeismogramRef(URL seisURL, String name, Property[] props, ParameterRef[] parm_ids, AuditInfo[] audit) { Document doc = config.getOwnerDocument(); Element sac = doc.createElement("SacSeismogram"); sac.setAttributeNS(xlinkNS, "type", "simple"); sac.setAttributeNS(xlinkNS, "href", sei...
public void addSeismogramRef(URL seisURL, String name, Property[] props, ParameterRef[] parm_ids, AuditInfo[] audit) { Document doc = config.getOwnerDocument(); Element sac = doc.createElement("SacSeismogram"); sac.setAttributeNS(xlinkNS, "type", "simple"); sac.setAttributeNS(xlinkNS, "href", sei...
1,118,926
public LocalSeismogramImpl getSeismogram(String name) { if (seismogramCache.containsKey(name)) { return (LocalSeismogramImpl)seismogramCache.get(name); } // end of if (seismogramCache.containsKey(name)) NodeList nList = evalNodeList(config, "SacSeismogram[name="+dquote+name+dquote+"]"); if (nList != null ...
public LocalSeismogramImpl getSeismogram(String name) { if (seismogramCache.containsKey(name)) { return (LocalSeismogramImpl)seismogramCache.get(name); } // end of if (seismogramCache.containsKey(name)) NodeList nList = evalNodeList(config, "SacSeismogram[name="+dquote+name+dquote+"]"); if (nList != null ...
1,118,927
public LocalSeismogramImpl getSeismogram(String name) { if (seismogramCache.containsKey(name)) { return (LocalSeismogramImpl)seismogramCache.get(name); } // end of if (seismogramCache.containsKey(name)) NodeList nList = evalNodeList(config, "SacSeismogram[name="+dquote+name+dquote+"]"); if (nList != null ...
public LocalSeismogramImpl getSeismogram(String name) { if (seismogramCache.containsKey(name)) { return (LocalSeismogramImpl)seismogramCache.get(name); } // end of if (seismogramCache.containsKey(name)) NodeList nList = evalNodeList(config, "SacSeismogram[name="+dquote+name+dquote+"]"); if (nList != null ...
1,118,928
public void write(OutputStream out) throws Exception { DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder = dfactory.newDocumentBuilder(); org.w3c.dom.Document outNode = docBuilder.newDocument(); javax.xml.transform.TransformerFactory tfactory = javax.xml.transfo...
public void write(OutputStream out) throws Exception { DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder = dfactory.newDocumentBuilder(); org.w3c.dom.Document outNode = docBuilder.newDocument(); javax.xml.transform.TransformerFactory tfactory = javax.xml.transfo...
1,118,929
public synchronized void set(MicroSecondDate b, TimeInterval t){ displayInterval = t; beginTime = b; Iterator e = seismos.keySet().iterator(); while(e.hasNext()) seismos.put(e.next(), b); updateTimeSyncListeners(); }
public synchronized void set(MicroSecondDate b, TimeInterval t){ displayInterval = t; beginTime = b; Iterator e = seismos.keySet().iterator(); while(e.hasNext()) seismos.put(e.next(), b); updateTimeSyncListeners(); }
1,118,930
public synchronized void setAllBeginTime(MicroSecondDate b){ beginTime = b; Iterator e = seismos.keySet().iterator(); while(e.hasNext()) seismos.put(e.next(), b); updateTimeSyncListeners(); }
public synchronized void setAllBeginTime(MicroSecondDate b){ beginTime = b; Iterator e = seismos.keySet().iterator(); while(e.hasNext()) seismos.put(e.next(), b); updateTimeSyncListeners(); }
1,118,931
public synchronized void setRelativeTime(DataSetSeismogram seis, MicroSecondDate time){ seismos.put(seis, time); updateTimeSyncListeners(); }
public synchronized void setRelativeTime(DataSetSeismogram seis, MicroSecondDate time){ ((MicroSecondTimeRange)seismos.get(seis)).setBeginTime(time); updateTimeSyncListeners(); }
1,118,933
private boolean validateCalendar(HttpServletRequest request, BwActionFormBase form, boolean add) throws Throwable { boolean ok = true; BwCalendar cal = form.getCalendar(); Boolean cc = getBooleanReqPar(request, "calendarCollection"); if (...
private boolean validateCalendar(HttpServletRequest request, BwActionFormBase form, boolean add) throws Throwable { boolean ok = true; BwCalendar cal = form.getCalendar(); Boolean cc = getBooleanReqPar(request, "calendarCollection"); if (...
1,118,934
public void paint(Graphics g){ if(overSizedImage == null){ logger.debug("the image is null and is being created"); this.createImage(); return; } if(overSizedImage.get() == null){ logger.debug("image was garbage collected, and is being recreated"); synchronized(this){ displayInterval = timeConfig.getTi...
public void paint(Graphics g){ if(overSizedImage == null){ logger.debug("the image is null and is being created"); this.createImage(); return; } if(overSizedImage.get() == null){ logger.debug("image was garbage collected, and is being recreated"); synchronized(this){ displayInterval = timeConfig.getTi...
1,118,935
public void addSeismogram(LocalSeismogram newSeismogram){ SeismogramPlotter newPlotter = new SeismogramPlotter(newSeismogram, timeConfig, ampConfig); plotters.put(newPlotter, colors[plotters.size()%colors.length]); timeConfig.addSeismogram(newSeismogram); ampConfig.addSeismogram(newSeismogram); overSizedImage = nu...
public void addSeismogram(LocalSeismogram newSeismogram){ SeismogramPlotter newPlotter = new SeismogramPlotter(newSeismogram, timeConfig, ampConfig); plotters.put(newPlotter, colors[plotters.size()%colors.length]); timeConfig.addSeismogram(newSeismogram); ampConfig.addSeismogram(newSeismogram); redo = true; }
1,118,937
public void removeAllSeismograms(){ Iterator e = plotters.keySet().iterator(); while(e.hasNext()){ LocalSeismogram current = ((SeismogramPlotter)e.next()).getSeismogram(); timeConfig.removeSeismogram(current); ampConfig.removeSeismogram(current); } imageMaker.remove(imagePainter); ...
public void removeAllSeismograms(){ Iterator e = plotters.keySet().iterator(); while(e.hasNext()){ LocalSeismogram current = ((SeismogramPlotter)e.next()).getSeismogram(); timeConfig.removeSeismogram(current); ampConfig.removeSeismogram(current); } this.stopImageCreation(); tim...
1,118,938
protected void resize() { Insets insets = getInsets(); Dimension d = getSize(); int w = (d.width - insets.left - insets.right) * 5, h = d.height - insets.top - insets.bottom; overSize = new Dimension(w, h); timeScaleMap.setTotalPixels(d.width-insets.left-insets.right); ampScaleMap.setTotalPixels(d.hei...
protected void resize() { Insets insets = getInsets(); Dimension d = getSize(); int w = (d.width - insets.left - insets.right) * 5, h = d.height - insets.top - insets.bottom; overSize = new Dimension(w, h); timeScaleMap.setTotalPixels(d.width-insets.left-insets.right); ampScaleMap.setTotalPixels(d.hei...
1,118,939
public void updateAmpRange(){ overSizedImage = null; this.ampScaleMap.setUnitRange(ampConfig.getAmpRange()); repaint(); }
public void updateAmpRange(){ redo = true; this.ampScaleMap.setUnitRange(ampConfig.getAmpRange()); repaint(); }
1,118,940
public float getSampleRate () { double factor = (double) getSampleRateFactor(); double multiplier = (double) getSampleRateMultiplier(); float sampleRate = (float) 10000.0; // default (impossible) value; if ((factor * multiplier) != 0.0) { // in the case of log records sampleRate = (float) (...
public float getSampleRate () { double factor = (double) getSampleRateFactor(); double multiplier = (double) getSampleRateMultiplier(); float sampleRate = (float) 10000.0; // default (impossible) value; if ((factor * multiplier) != 0.0) { // in the case of log records sampleRate = (float) (...
1,118,941
public float getSampleRate () { double factor = (double) getSampleRateFactor(); double multiplier = (double) getSampleRateMultiplier(); float sampleRate = (float) 10000.0; // default (impossible) value; if ((factor * multiplier) != 0.0) { // in the case of log records sampleRate = (float) (...
public float getSampleRate () { double factor = (double) getSampleRateFactor(); double multiplier = (double) getSampleRateMultiplier(); float sampleRate = (float) 10000.0; // default (impossible) value; if ((factor * multiplier) != 0.0) { // in the case of log records sampleRate = (float) (...
1,118,942
protected void write(DataOutput dos) throws IOException { super.write(dos); dos.write(Utility.pad(getStationIdentifier().getBytes("ASCII"), 5, (byte)32)); dos.write(Utility.pad(getLocationIdentifier().getBytes("ASCII"), 2, (byte)32)); ...
protected void write(DataOutput dos) throws IOException { super.write(dos); dos.write(Utility.pad(getStationIdentifier().getBytes("ASCII"), 5, (byte)32)); dos.write(Utility.pad(getLocationIdentifier().getBytes("ASCII"), 2, (byte)32)); ...
1,118,943
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { CalSvcI svc = form.fetchSvci(); String name = getReqPar(request, "name"); if (name == null) { ...
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { CalSvcI svc = form.fetchSvci(); String name = getReqPar(request, "name"); if (name == null) { ...
1,118,944
public int print(Graphics g, PageFormat pageFormat, int pageIndex){ System.out.println("PRIIIIINT"); if (pageIndex > 0) return NO_SUCH_PAGE; pageFormat.setOrientation(PageFormat.LANDSCAPE); Graphics2D g2 = (Graphics2D)g; g2.translate(pageFormat.getImageableX(), pageFormat.getImageableY()); boolean wasBuffered = dis...
public int print(Graphics g, PageFormat pageFormat, int pageIndex){ if (pageIndex > 0) return NO_SUCH_PAGE; pageFormat.setOrientation(PageFormat.LANDSCAPE); Graphics2D g2 = (Graphics2D)g; g2.translate(pageFormat.getImageableX(), pageFormat.getImageableY()); boolean wasBuffered = disableDoubleBuffering(mComponent);...
1,118,945
public int print(Graphics g, PageFormat pageFormat, int pageIndex){ System.out.println("PRIIIIINT"); if (pageIndex > 0) return NO_SUCH_PAGE; pageFormat.setOrientation(PageFormat.LANDSCAPE); Graphics2D g2 = (Graphics2D)g; g2.translate(pageFormat.getImageableX(), pageFormat.getImageableY()); boolean wasBuffered = dis...
public int print(Graphics g, PageFormat pageFormat, int pageIndex){ System.out.println("PRIIIIINT"); if (pageIndex > 0) return NO_SUCH_PAGE; pageFormat.setOrientation(PageFormat.LANDSCAPE); Graphics2D g2 = (Graphics2D)g; g2.translate(pageFormat.getImageableX(), pageFormat.getImageableY()); boolean wasBuffered = dis...
1,118,946
public int print(Graphics g, PageFormat pageFormat, int pageIndex){ System.out.println("PRIIIIINT"); if (pageIndex > 0) return NO_SUCH_PAGE; pageFormat.setOrientation(PageFormat.LANDSCAPE); Graphics2D g2 = (Graphics2D)g; g2.translate(pageFormat.getImageableX(), pageFormat.getImageableY()); boolean wasBuffered = dis...
public int print(Graphics g, PageFormat pageFormat, int pageIndex){ System.out.println("PRIIIIINT"); if (pageIndex > 0) return NO_SUCH_PAGE; pageFormat.setOrientation(PageFormat.LANDSCAPE); Graphics2D g2 = (Graphics2D)g; g2.translate(pageFormat.getImageableX(), pageFormat.getImageableY()); boolean wasBuffered = dis...
1,118,947
public Station[] getStations() { LinkedList out = new LinkedList(); Object[] objArray = stationNames.toArray(); //logger.debug("Object array length: " + objArray.length); //logger.debug("stationNames size: " + stationNames.getSize()); for ( int i=0; i<objArray.length; i++) { ...
public Station[] getStations() { LinkedList out = new LinkedList(); Object[] objArray = stationNames.toArray(); //logger.debug("Object array length: " + objArray.length); //logger.debug("stationNames size: " + stationNames.getSize()); for ( int i=0; i<objArray.length; i++) { ...
1,118,948
public List getList() throws CalFacadeException { if (exc != null) { // Didn't hear me last time? throw new CalFacadeException(exc); } try { List l; if (q != null) { l = q.list(); } else { l = crit.list(); } if (l == null) { return new Vector(); } ...
public List getList() throws CalFacadeException { if (exc != null) { // Didn't hear me last time? throw new CalFacadeException(exc); } try { List l; if (q != null) { l = q.list(); } else { l = crit.list(); } if (l == null) { return new ArrayList(); ...
1,118,949
public BwFreeBusy getFreeBusy(BwCalendar cal, String account, BwDateTime start, BwDateTime end) throws WebdavException { /* Create a url something like: * http://t1.egenconsulting.com:80/servlet/Freetime/John?start-mi...
public BwFreeBusy getFreeBusy(BwCalendar cal, String account, BwDateTime start, BwDateTime end) throws WebdavException { /* Create a url something like: * http://t1.egenconsulting.com:80/servlet/Freetime/John?start-mi...
1,118,950
public CaldavClientIo(String host, int port, int timeOut, boolean secure, boolean debug) throws Throwable { if (httpManager == null) { httpManager = new HttpManager("org.bedework.http.client.caldav.CaldavClient"); } HostConfiguration config = new HostConfiguration(); if (secure...
public CaldavClientIo(String host, int port, int timeOut, boolean debug) throws Throwable { if (httpManager == null) { httpManager = new HttpManager("org.bedework.http.client.caldav.CaldavClient"); } HostConfiguration config = new HostConfiguration(); if (secure) { /* ...
1,118,952
public CaldavClientIo(String host, int port, int timeOut, boolean secure, boolean debug) throws Throwable { if (httpManager == null) { httpManager = new HttpManager("org.bedework.http.client.caldav.CaldavClient"); } HostConfiguration config = new HostConfiguration(); if (secure...
public CaldavClientIo(String host, int port, int timeOut, boolean secure, boolean debug) throws Throwable { if (httpManager == null) { httpManager = new HttpManager("org.bedework.http.client.caldav.CaldavClient"); } HostConfiguration config = new HostConfiguration(); if (secure...
1,118,953
private void makeOnlyUsedRowsVisible(ScoreSheetCaptionData sscd) { int numPlayers = Util.getNumberOfPlayers(sscd); if (numPlayers != usedRows) { if (numPlayers < usedRows) { for (int y=numPlayers+1; y<=usedRows; ++y) { setRowVisible(y, false); } } else { ...
private void makeOnlyUsedRowsVisible(ScoreSheetCaptionData sscd) { int numPlayers = Util.getNumberOfPlayers(sscd); if (numPlayers != usedRows) { if (numPlayers < usedRows) { for (int y=numPlayers+1; y<=usedRows; ++y) { setRowVisible(y, false); } } else { ...
1,118,954
public Collection getAddContentCalendarCollections() { try { return fetchSvci().getAddContentCalendarCollections(); } catch (Throwable t) { err.emit(t); return null; } }
public Collection getAddContentCalendarCollections() { try { TreeMap tm = new TreeMap(listCollator); Iterator it = fetchSvci().getAddContentCalendarCollections().iterator(); while (it.hasNext()) { BwCalendar cal = (BwCalendar)it.next(); tm.put(cal.getName(), cal); } return tm.values(); } catch (Throwabl...
1,118,955
public String validViewPeriod(String val) { int vt = BedeworkDefs.defaultView; val = Util.checkNull(val); if (val != null) { Integer i = (Integer)viewTypeMap.get(viewType); if (i != null) { vt = i.intValue(); } } return BedeworkDefs.viewPeriodNames[vt]; }
public String validViewPeriod(String val) { int vt = BedeworkDefs.defaultView; val = Util.checkNull(val); if (val != null) { Integer i = (Integer)viewTypeMap.get(val); if (i != null) { vt = i.intValue(); } } return BedeworkDefs.viewPeriodNames[vt]; }
1,118,956
private EntityBrowser getBrowser(List queryRepresentations, IWBundle bundle, IWResourceBundle resourceBundle, Form form) { EntityBrowser browser = new EntityBrowser(); browser.setAcceptUserSettingsShowUserSettingsButton(false, false); browser.setUseExternalForm(true); browser.setUseEventSystem(false); // browser ...
private EntityBrowser getBrowser(List queryRepresentations, IWBundle bundle, IWResourceBundle resourceBundle, Form form) { EntityBrowser browser = new EntityBrowser(); browser.setAcceptUserSettingsShowUserSettingsButton(false, false); browser.setUseExternalForm(true); browser.setUseEventSystem(false); // browser ...
1,118,957
private PresentationObject getButtonBar(IWResourceBundle resourceBundle) { Table table = new Table(5,1); // new button for query builder (simple mode) String simpleModeText = resourceBundle.getLocalizedString("ro_create_simple_mode", "New (simple mode)"); Link simpleModeLink = new Link(simpleModeText); simpleMode...
private PresentationObject getButtonBar(IWResourceBundle resourceBundle) { Table table = new Table(5,1); // new button for query builder (simple mode) String simpleModeText = resourceBundle.getLocalizedString("ro_create_simple_mode", "New (simple mode)"); Link simpleModeLink = new Link(simpleModeText); simpleMode...
1,118,958
private String getChangeTargetScript() {//(Class windowClass) { // String windowId = IWMainApplication.getEncryptedClassName(windowClass); // note: the name "newTarget" is not important and arbitrary// StringBuffer buffer = new StringBuffer("findObj('");// buffer.append(Page.IW_FRAME_CLASS_PARAMETER);// buffe...
private String getChangeTargetScript() {//(Class windowClass) { // String windowId = IWMainApplication.getEncryptedClassName(windowClass); // note: the name "newTarget" is not important and arbitrary// StringBuffer buffer = new StringBuffer("findObj('");// buffer.append(Page.IW_FRAME_CLASS_PARAMETER);// buffe...
1,118,959
public void setUp(){ SingleSeismogramWindowDisplay vsd = new SingleSeismogramWindowDisplay(null, null, null); twoSineSeismos[0] = new MemoryDataSetSeismogram(simpleSineWave, "Simple"); twoSineSeismos[1] = new MemoryDataSetSeismogram(customSineWave, "Custom"); twoSineDisplay ...
public void setUp(){ SingleSeismogramWindowDisplay vsd = new SingleSeismogramWindowDisplay(null, null, null); twoSineSeismos[0] = new MemoryDataSetSeismogram(simpleSineWave, "Simple"); twoSineSeismos[1] = new MemoryDataSetSeismogram(customSineWave, "Custom"); twoSineDisplay ...
1,118,961
public SingleSeismogramWindowDisplay(MouseForwarder mouseForwarder, MouseMotionForwarder motionForwarder, VerticalSeismogramDisplay parent){ super(mouseForwarder, motionForwarder, parent); }
public SingleSeismogramWindowDisplay(MouseForwarder mouseForwarder, MouseMotionForwarder motionForwarder, VerticalSeismogramDisplay parent){ super(mouseForwarder, motionForwarder, parent); }
1,118,962
private ModuleObject makeEntityTable(ReportEntity RE){ try{ GenericEntity ent = (GenericEntity)Class.forName(RE.getEntity()).newInstance(); Table T = new Table(); T.add(formatText("Display"),1,1); T.add(formatText("Field"),2,1); T.add(formatText("Relation"),3,1); for (int i = 0;i < ent.getColumnN...
private ModuleObject makeEntityTable(ReportEntity RE){ try{ GenericEntity ent = (GenericEntity)Class.forName(RE.getEntity()).newInstance(); Table T = new Table(); T.add(formatText("Display"),1,1); T.add(formatText("Field"),2,1); T.add(formatText("Relation"),3,1); for (int i = 0;i < ent.getColumnN...
1,118,963
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics2D copy = (Graphics2D)g; if (copy != null) { try { ...
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics2D copy = (Graphics2D)g; if (copy != null) { try { ...
1,118,964
public ATObject meta_eval(ATContext ctx) throws NATException { if (this == EMPTY) return EMPTY; LinkedList result = new LinkedList(); int siz = elements_.length; for (int i = 0; i < elements_.length; i++) { if (elements_[i].isSplice()) { ATObject[] tbl = elements_[i].asSplice().getExpression().meta_eval(ctx...
public ATObject meta_eval(ATContext ctx) throws NATException { if (this == EMPTY) return EMPTY; LinkedList result = new LinkedList(); int siz = elements_.length; for (int i = 0; i < elements_.length; i++) { if (elements_[i].isSplice()) { ATObject[] tbl = elements_[i].asSplice().base_getExpression().meta_eva...
1,118,965
public ATObject meta_quote(ATContext ctx) throws NATException { if (this == EMPTY) return EMPTY; LinkedList result = new LinkedList(); int siz = elements_.length; for (int i = 0; i < elements_.length; i++) { if (elements_[i].isUnquoteSplice()) { ATObject[] tbl = elements_[i].asUnquoteSplice().getExpression(...
public ATObject meta_quote(ATContext ctx) throws NATException { if (this == EMPTY) return EMPTY; LinkedList result = new LinkedList(); int siz = elements_.length; for (int i = 0; i < elements_.length; i++) { if (elements_[i].isUnquoteSplice()) { ATObject[] tbl = elements_[i].asUnquoteSplice().base_getExpres...
1,118,966
public static void write(OutputStream out, Object value) { try { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Document doc = builder.newDocument(); javax.xml.transform.TransformerFactory tfactory = javax.xml.transfor...
public static void write(OutputStream out, Object value) { try { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Document doc = builder.newDocument(); javax.xml.transform.TransformerFactory tfactory = javax.xml.transfor...
1,118,967
private Object[] getSeisAtWithInternal(int position){ Iterator it = iterateList.iterator(); int curPosition = 0; while(it.hasNext()){ Object current = it.next(); int[] curPoints = (int[])points.get(current); if((curPoints[1] - curPoints[0]) + curPosition > posit...
private Object[] getSeisAtWithInternal(int position){ Iterator it = iterateList.iterator(); int curPosition = 0; while(it.hasNext()){ Object current = it.next(); int[] curPoints = (int[])points.get(current); if((curPoints[1] - curPoints[0]) + curPosition > posit...
1,118,968
private void drawTitle(Graphics2D g2d, TitleProvider tp, int i, int j) { if(tp instanceof SelfDrawableTitleProvider) { ((SelfDrawableTitleProvider)tp).draw(i, j, g2d); } else { g2d.drawString(tp.getTitle(), 0, 0); } }
private void drawTitle(Graphics2D g2d, TitleProvider tp, int i, int j) { if(tp instanceof SelfDrawableTitleProvider) { ((SelfDrawableTitleProvider)tp).draw(i, j, g2d); } else { g2d.drawString(tp.getTitle(), i, j); } }
1,118,969
private double getLimitingLabelSize(Graphics2D g2d) { FontMetrics fm = g2d.getFontMetrics(); Rectangle2D stringBounds = fm.getStringBounds(getMaxString(), g2d); if(direction == VERTICAL) return stringBounds.getHeight(); else return string...
private double getLimitingLabelSize(Graphics2D g2d) { FontMetrics fm = g2d.getFontMetrics(); Rectangle2D stringBounds = fm.getStringBounds(getMaxString(), g2d); if(direction == VERTICAL) { return stringBounds.getHeight(); else return stri...
1,118,970
private double getLimitingLabelSize(Graphics2D g2d) { FontMetrics fm = g2d.getFontMetrics(); Rectangle2D stringBounds = fm.getStringBounds(getMaxString(), g2d); if(direction == VERTICAL) return stringBounds.getHeight(); else return string...
private double getLimitingLabelSize(Graphics2D g2d) { FontMetrics fm = g2d.getFontMetrics(); Rectangle2D stringBounds = fm.getStringBounds(getMaxString(), g2d); if(direction == VERTICAL) return stringBounds.getHeight(); else return string...
1,118,971
protected Command getCreateCompleteIncomingExtension4002Command(CreateRelationshipRequest req) { EObject sourceEObject = req.getSource(); EObject targetEObject = req.getTarget(); if (false == sourceEObject instanceof Stereotype || false == targetEObject instanceof ElementImport) { return UnexecutableCommand.INSTA...
protected Command getCreateCompleteIncomingExtension4002Command(CreateRelationshipRequest req) { EObject sourceEObject = req.getSource(); EObject targetEObject = req.getTarget(); if (false == sourceEObject instanceof Stereotype || false == targetEObject instanceof ElementImport) { return UnexecutableCommand.INSTA...
1,118,974
public static boolean canCreateExtension_4002(org.eclipse.uml2.uml.Package container, Stereotype source, ElementImport target) { if (!evaluate(Extension_4002_TargetExpression, target, source, true)) { return false; } return true; }
public static boolean canCreateExtension_4002(Package container, Stereotype source, ElementImport target) { if (!evaluate(Extension_4002_TargetExpression, target, source, true)) { return false; } return true; }
1,118,975
protected String getString(boolean required) throws JspTagException { return String.valueOf(getObject(name, scope, property, required)); }
protected String getString(boolean required) throws JspTagException { Object o = getObject(required); if (o == null) { return null; } return String.valueOf(o); }
1,118,976
public void clearPublicTimezones() throws CalFacadeException { checkOpen(); requireSuper(); /* Delete all public timezones */ sess.namedQuery("deleteAllPublicTzs"); /*int numDeleted =*/ sess.executeUpdate(); }
public void clearPublicTimezones() throws CalFacadeException { checkOpen(); /* Delete all public timezones */ sess.namedQuery("deleteAllPublicTzs"); /*int numDeleted =*/ sess.executeUpdate(); }
1,118,977
public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = deb...
public boolean init(String authenticatedUser, String user, boolean publicAdmin, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = debug; boolean use...
1,118,978
public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = deb...
public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = deb...
1,118,979
public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = deb...
public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = deb...
1,118,980
public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = deb...
public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = deb...
1,118,981
public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = deb...
public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = deb...
1,118,982
public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = deb...
public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = deb...
1,118,983
public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = deb...
public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = deb...
1,118,984
public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = deb...
public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = deb...
1,118,985
public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = deb...
public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = deb...
1,118,986
public void saveTimeZone(String tzid, VTimeZone vtz) throws CalFacadeException { checkOpen(); BwTimeZone tz = new BwTimeZone(); if (currentMode == CalintfUtil.publicAdminMode) { requireSuper(); } if (currentMode == CalintfUtil.guestMode) { throw new CalFacadeAccessException(); } tz.setT...
public void saveTimeZone(String tzid, VTimeZone vtz) throws CalFacadeException { checkOpen(); BwTimeZone tz = new BwTimeZone(); if (currentMode == CalintfUtil.publicAdminMode) { requireSuper(); } if (currentMode == CalintfUtil.guestMode) { throw new CalFacadeAccessException(); } tz.setT...
1,118,987
public void createThreeSelectionDisplay(Selection creator){ if(threeSelectionDisplay == null){ logger.debug("creating 3C selection display"); threeSelectionWindow = new JFrame(); threeSelectionDisplay = new VerticalSeismogramDisplay(mouseForwarder, motionForwarder, this); Iterator e = creator.getSei...
public void createThreeSelectionDisplay(Selection creator){ if(threeSelectionDisplay == null){ logger.debug("creating 3C selection display"); threeSelectionWindow = new JFrame(); threeSelectionDisplay = new VerticalSeismogramDisplay(mouseForwarder, motionForwarder, this); Iterator e = creator.getSei...
1,118,988
public void createThreeSelectionDisplay(Selection creator){ if(threeSelectionDisplay == null){ logger.debug("creating 3C selection display"); threeSelectionWindow = new JFrame(); threeSelectionDisplay = new VerticalSeismogramDisplay(mouseForwarder, motionForwarder, this); Iterator e = creator.getSei...
public void createThreeSelectionDisplay(Selection creator){ if(threeSelectionDisplay == null){ logger.debug("creating 3C selection display"); threeSelectionWindow = new JFrame(); threeSelectionDisplay = new VerticalSeismogramDisplay(mouseForwarder, motionForwarder, this); Iterator e = creator.getSei...
1,118,989
public void createThreeSelectionDisplay(Selection creator){ if(threeSelectionDisplay == null){ logger.debug("creating 3C selection display"); threeSelectionWindow = new JFrame(); threeSelectionDisplay = new VerticalSeismogramDisplay(mouseForwarder, motionForwarder, this); Iterator e = creator.getSei...
public void createThreeSelectionDisplay(Selection creator){ if(threeSelectionDisplay == null){ logger.debug("creating 3C selection display"); threeSelectionWindow = new JFrame(); threeSelectionDisplay = new VerticalSeismogramDisplay(mouseForwarder, motionForwarder, this); Iterator e = creator.getSei...
1,118,990
public void createThreeSelectionDisplay(Selection creator){ if(threeSelectionDisplay == null){ logger.debug("creating 3C selection display"); threeSelectionWindow = new JFrame(); threeSelectionDisplay = new VerticalSeismogramDisplay(mouseForwarder, motionForwarder, this); Iterator e = creator.getSei...
public void createThreeSelectionDisplay(Selection creator){ if(threeSelectionDisplay == null){ logger.debug("creating 3C selection display"); threeSelectionWindow = new JFrame(); threeSelectionDisplay = new VerticalSeismogramDisplay(mouseForwarder, motionForwarder, this); Iterator e = creator.getSei...
1,118,991
public void createThreeSelectionDisplay(Selection creator){ if(threeSelectionDisplay == null){ logger.debug("creating 3C selection display"); threeSelectionWindow = new JFrame(); threeSelectionDisplay = new VerticalSeismogramDisplay(mouseForwarder, motionForwarder, this); Iterator e = creator.getSei...
public void createThreeSelectionDisplay(Selection creator){ if(threeSelectionDisplay == null){ logger.debug("creating 3C selection display"); threeSelectionWindow = new JFrame(); threeSelectionDisplay = new VerticalSeismogramDisplay(mouseForwarder, motionForwarder, this); Iterator e = creator.getSei...
1,118,992
public void createThreeSelectionDisplay(Selection creator){ if(threeSelectionDisplay == null){ logger.debug("creating 3C selection display"); threeSelectionWindow = new JFrame(); threeSelectionDisplay = new VerticalSeismogramDisplay(mouseForwarder, motionForwarder, this); Iterator e = creator.getSei...
public void createThreeSelectionDisplay(Selection creator){ if(threeSelectionDisplay == null){ logger.debug("creating 3C selection display"); threeSelectionWindow = new JFrame(); threeSelectionDisplay = new VerticalSeismogramDisplay(mouseForwarder, motionForwarder, this); Iterator e = creator.getSei...
1,118,993
public BasicSeismogramDisplay[] getComponentGroup(BasicSeismogramDisplay creator){ BasicSeismogramDisplay[] groupDisplays = new BasicSeismogramDisplay[2]; int i = 0; Iterator e = creator.getSeismograms().iterator(); DataSetSeismogram first = ((DataSetSeismogram)creator.getSeismograms().getFirst()); XMLDataSet dataS...
public BasicSeismogramDisplay[] getComponentGroup(BasicSeismogramDisplay creator){ BasicSeismogramDisplay[] groupDisplays = new BasicSeismogramDisplay[2]; int i = 0; Iterator e = creator.getSeismograms().iterator(); DataSetSeismogram first = ((DataSetSeismogram)creator.getSeismograms().getFirst()); XMLDataSet dataS...
1,118,994
public BasicSeismogramDisplay[] getComponentGroup(BasicSeismogramDisplay creator){ BasicSeismogramDisplay[] groupDisplays = new BasicSeismogramDisplay[2]; int i = 0; Iterator e = creator.getSeismograms().iterator(); DataSetSeismogram first = ((DataSetSeismogram)creator.getSeismograms().getFirst()); XMLDataSet dataS...
public BasicSeismogramDisplay[] getComponentGroup(BasicSeismogramDisplay creator){ BasicSeismogramDisplay[] groupDisplays = new BasicSeismogramDisplay[2]; int i = 0; Iterator e = creator.getSeismograms().iterator(); DataSetSeismogram first = ((DataSetSeismogram)creator.getSeismograms().getFirst()); XMLDataSet dataS...
1,118,995
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics copy = g.create(); if (copy != null) { try { ...
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics copy = g.create(); Graphics2D copy2D = (Graphics2D)copy; if (copy...
1,118,996
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics copy = g.create(); if (copy != null) { try { ...
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics copy = g.create(); if (copy != null) { try { ...
1,118,997
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics copy = g.create(); if (copy != null) { try { ...
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics copy = g.create(); if (copy != null) { try { ...
1,118,998
private IcalTrans getTrans() throws WebdavIntfException { try { trans.open(); return trans; } catch (Throwable t) { throw new WebdavIntfException(t); } }
private BwIcalTrans getTrans() throws WebdavIntfException { try { trans.open(); return trans; } catch (Throwable t) { throw new WebdavIntfException(t); } }
1,118,999
public void init(HttpServletRequest req, String envPrefix, String account, boolean debug) throws WebdavIntfException { try { this.envPrefix = envPrefix; this.account = account; this.debug = debug; trans = new IcalTrans(debug); } catch (Th...
public void init(HttpServletRequest req, String envPrefix, String account, boolean debug) throws WebdavIntfException { try { this.envPrefix = envPrefix; this.account = account; this.debug = debug; trans = new IcalTrans(debug); } catch (Th...
1,119,000
public void init(HttpServletRequest req, String envPrefix, String account, boolean debug) throws WebdavIntfException { try { this.envPrefix = envPrefix; this.account = account; this.debug = debug; trans = new IcalTrans(debug); } catch (Th...
public void init(HttpServletRequest req, String envPrefix, String account, boolean debug) throws WebdavIntfException { try { this.envPrefix = envPrefix; this.account = account; this.debug = debug; trans = new BwIcalTrans(envPrefix, debug); ...
1,119,001
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "notFound"; } CalSvcI svci = form.fetchSvci(); BwCalendar ca...
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "notFound"; } CalSvcI svci = form.fetchSvci(); BwCalendar ca...
1,119,002
public IdeaView getSibling(int difference) { MapComponent parent = getParent(); if (!(parent instanceof IdeaView)) { return null; } IdeaView parentView = (IdeaView)parent; int pos = parentView.getSubViews().indexOf(this); int subCount = parentView.getSubViews().s...
public IdeaView getSibling(int difference) { MapComponent parent = getParent(); if (!(parent instanceof IdeaView)) { return null; } IdeaView parentView = (IdeaView)parent; int pos = parentView.getSubViews().indexOf(this); int subCount = parentView.getSubViews().s...
1,119,003
public ExpandingThreadPool(String name, int maxSize){ super(name, maxSize); this.maxSize = maxSize; }
public ExpandingThreadPool(String name, int maxSize){ super(name, 1); this.maxSize = maxSize; }
1,119,005
public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /** Check access */ if (!form.getAuthorisedUser()) { return "noAccess"; } String reqpar = request.getParameter("delete"); if (reqpar != null)...
public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /** Check access */ if (!form.getAuthorisedUser()) { return "noAccess"; } String reqpar = request.getParameter("delete"); if (reqpar != null)...
1,119,006
private static void addClassNodes(Collection<UMLClassMetadata> umlClasses, LazyActionTreeNode pkgNode){ //build class nodes int bcIndex = pkgNode.getAction().indexOf("&treeBreadCrumbs="); String pkgBreadCrumb = pkgNode.getAction().subSequence(bcIndex, pkgNode.getAction().length()-3).toString(); ...
private static void addClassNodes(Collection<UMLClassMetadata> umlClasses, LazyActionTreeNode pkgNode){ //build class nodes int bcIndex = pkgNode.getAction().indexOf("&treeBreadCrumbs="); String pkgBreadCrumb = pkgNode.getAction().subSequence(bcIndex, pkgNode.getAction().length()-3).toString(); ...
1,119,007
private static void addProject(Project project, LazyActionTreeNode pNode){ if (project == null) return; if (project.getClassificationScheme().getLatestVersionIndicator().equalsIgnoreCase("YES")) { Collection<SubProject> subProjects = project.getSubProjectCollection(); Collection<...
private static void addProject(Project project, LazyActionTreeNode pNode){ if (project == null) return; if (project.getClassificationScheme().getLatestVersionIndicator().equalsIgnoreCase("YES")) { Collection<SubProject> subProjects = project.getSubProjectCollection(); Collection<...
1,119,008
public LazyActionTreeNode(String type, String description, String actionURL, String identifier, boolean leaf) { super(type, description, identifier, leaf); _action = actionURL; }
public LazyActionTreeNode(String type, String description, String actionURL, String identifier, boolean leaf) { super(type, description, identifier, leaf); _action = actionURL; }
1,119,009
public void emptyBasket() { if (basket != null && !basket.isEmpty()) { basket.clear(); } basket = null; }
public void emptyBasket() { if (basket != null && !basket.isEmpty()) { basket.clear(); } basket = null; }
1,119,010
private void buildModel() {// ReaderFactory factory = ReaderFactory.getInstance();// try {// IdeaReader reader = factory.read(new File("etc/test.opml"));// ideaMap.setIdea(reader.getIdea());// } catch(ReaderException re) {// re.printStackTrace();// } ...
private void buildModel() {// ReaderFactory factory = ReaderFactory.getInstance();// try {// IdeaReader reader = factory.read(new File("etc/test.opml"));// ideaMap.setIdea(reader.getIdea());// } catch(ReaderException re) {// re.printStackTrace();// } ...
1,119,012
public int insertSubEntry(PreparedStatement stmt, LocalSeismogram localSeismogram, int index,int dbid,byte[] data) throws SQLException { stmt.setInt(index++, dbid); stmt.setBytes(index++, data); stmt.setTimestamp(index++, ((edu.iris.Fissures.seismogramDC.LocalSeismogramImpl)localSeismogram).get...
public int insertSubEntry(PreparedStatement stmt, MicroSecondDate begin, MicroSecondDate end, int index,int dbid,byte[] data) throws SQLException { stmt.setInt(index++, dbid); stmt.setBytes(index++, data); stmt.setTimestamp(index++, ((edu.iris.Fissures.seismogramDC.LocalSeismogramImpl)localSeis...
1,119,014
public int insertSubEntry(PreparedStatement stmt, LocalSeismogram localSeismogram, int index,int dbid,byte[] data) throws SQLException { stmt.setInt(index++, dbid); stmt.setBytes(index++, data); stmt.setTimestamp(index++, ((edu.iris.Fissures.seismogramDC.LocalSeismogramImpl)localSeismogram).get...
public int insertSubEntry(PreparedStatement stmt, LocalSeismogram localSeismogram, int index,int dbid,byte[] data) throws SQLException { stmt.setInt(index++, dbid); stmt.setBytes(index++, data); stmt.setTimestamp(index++, ((edu.iris.Fissures.seismogramDC.LocalSeismogramImpl)localSeismogram).get...
1,119,015
public int put( edu.iris.Fissures.Plottable plottable[], edu.iris.Fissures.IfNetwork.ChannelId channel_id, edu.iris.Fissures.Dimension pixel_size, int year, int jday, String status) throws SQLException, IOException{ int dbid = 0; //first put the e...
public int put( edu.iris.Fissures.Plottable plottable[], edu.iris.Fissures.IfNetwork.ChannelId channel_id, edu.iris.Fissures.Dimension pixel_size, int year, int jday, String status) throws SQLException, IOException{ int dbid = 0; //first put the e...
1,119,016
public TabBar() { setTabPlacement(MainConfiguration.getInt("gui.tabs.placement", TOP)); //$NON-NLS-1$ addMouseListener(new MouseListener() { public void mouseClicked(MouseEvent e) { } public void mouseEntered(MouseEvent e) { } public void mouseExited(MouseEvent e) { } public void mousePressed(MouseEv...
public TabBar() { setTabPlacement(MainConfiguration.getInt("gui.tabs.placement", TOP)); //$NON-NLS-1$ addMouseListener(new MouseListener() { public void mouseClicked(MouseEvent e) { } public void mouseEntered(MouseEvent e) { } public void mouseExited(MouseEvent e) { } public void mousePressed(MouseEv...
1,119,017
public Channel[] retrieve_grouping(org.omg.CORBA_2_3.ORB orb, ChannelId channelId) { Channel[] group; try { FissuresNamingServiceImpl fissuresNamingService = new FissuresNamingServiceImpl(orb); NetworkDC[] networkReferences = fissuresNamingService.getNetworkDCObjects(); // ChannelId chan...
public Channel[] retrieve_grouping(org.omg.CORBA_2_3.ORB orb, ChannelId channelId) { Channel[] group; try { FissuresNamingService fissuresNamingService = new FissuresNamingService(orb); NetworkDC[] networkReferences = fissuresNamingService.getNetworkDCObjects(); // ChannelId channelId = ...
1,119,018
public void testBugfixOverloadedConstructor() throws InterpreterException { // def jTextField := jLobby.javax.swing.JTextField; ATObject jTextField = JavaClass.wrapperFor(JTextField.class); // jTextField.new(80) jTextField.meta_invoke(jTextField, AGSymbol.alloc("new"), new NATTable(new ATObject[] { NATNumber.atVal...
public void testBugfixOverloadedConstructor() throws InterpreterException { // def jTextField := jLobby.javax.swing.JTextField; ATObject jTextField = JavaClass.wrapperFor(JTextField.class); // jTextField.new(80) jTextField.meta_invoke(jTextField, AGSymbol.jAlloc("new"), new NATTable(new ATObject[] { NATNumber.atVa...
1,119,021
public void testCasting() { try { // invokes overloadedmatch2(SymbiosisTest) via explicit casting ATObject method = atTestObject.meta_select(atTestObject, AGSymbol.alloc("overloadedmatch2")); ATObject castedMethod = method.meta_invoke(method, AGSymbol.alloc("cast"), new NATTable(new ATObject[] { atTestClass }))...
public void testCasting() { try { // invokes overloadedmatch2(SymbiosisTest) via explicit casting ATObject method = atTestObject.meta_select(atTestObject, AGSymbol.alloc("overloadedmatch2")); ATObject castedMethod = method.meta_invoke(method, AGSymbol.alloc("cast"), new NATTable(new ATObject[] { atTestClass }))...
1,119,022
public void testCreationViaJavaObject() { try { // def instance := atTestObject.new(55) ATObject instance = atTestObject.meta_newInstance( new NATTable(new ATObject[] { NATNumber.atValue(55) })); assertEquals(55, instance.meta_select(instance, AGSymbol.alloc("xtest")).asNativeNumber().javaValue); asser...
public void testCreationViaJavaObject() { try { // def instance := atTestObject.new(55) ATObject instance = atTestObject.meta_newInstance( new NATTable(new ATObject[] { NATNumber.atValue(55) })); assertEquals(55, instance.meta_select(instance, AGSymbol.jAlloc("xtest")).asNativeNumber().javaValue); asse...
1,119,023
public void testCreationViaJavaObject() { try { // def instance := atTestObject.new(55) ATObject instance = atTestObject.meta_newInstance( new NATTable(new ATObject[] { NATNumber.atValue(55) })); assertEquals(55, instance.meta_select(instance, AGSymbol.alloc("xtest")).asNativeNumber().javaValue); asser...
public void testCreationViaJavaObject() { try { // def instance := atTestObject.new(55) ATObject instance = atTestObject.meta_newInstance( new NATTable(new ATObject[] { NATNumber.atValue(55) })); assertEquals(55, instance.meta_select(instance, AGSymbol.jAlloc("xtest")).asNativeNumber().javaValue); asse...
1,119,024
public void testCustomInstanceCreation() { try { // def atTestClass.init(x) { def o := super.init(x); def o.ytest := y; o } ATClosure init = evalAndReturn("def init(x,y) { def o := super.init(x); def o.ytest := y; o }; init").base_asClosure(); atTestClass.meta_addMethod(init.base_getMethod()); // def insta...
public void testCustomInstanceCreation() { try { // def atTestClass.init(x) { def o := super.init(x); def o.ytest := y; o } ATClosure init = evalAndReturn("def init(x,y) { def o := super.init(x); def o.ytest := y; o }; init").base_asClosure(); atTestClass.meta_addMethod(init.base_getMethod()); // def insta...
1,119,025
public void testFaultyArity() { try { atTestObject.meta_invoke(atTestObject, AGSymbol.alloc("gettertest"), new NATTable(new ATObject[] { NATNil._INSTANCE_ })); fail("Expected an arity mismatch exception"); } catch(XArityMismatch e) { // expected exception: success } catch(InterpreterException e) { fail(e.ge...
public void testFaultyArity() { try { atTestObject.meta_invoke(atTestObject, AGSymbol.jAlloc("gettertest"), new NATTable(new ATObject[] { NATNil._INSTANCE_ })); fail("Expected an arity mismatch exception"); } catch(XArityMismatch e) { // expected exception: success } catch(InterpreterException e) { fail(e.g...
1,119,026
public void testFirstClassFields() { try { // def result := (reflect: atTestObject).grabField("xtest") ATField result = atTestObject.meta_grabField(AGSymbol.alloc("xtest")).base_asField(); assertEquals("xtest", result.base_getName().toString()); assertEquals(TEST_OBJECT_INIT, result.base_getValue().asNativeNu...
public void testFirstClassFields() { try { // def result := (reflect: atTestObject).grabField("xtest") ATField result = atTestObject.meta_grabField(AGSymbol.jAlloc("xtest")).base_asField(); assertEquals("xtest", result.base_getName().toString()); assertEquals(TEST_OBJECT_INIT, result.base_getValue().asNativeN...
1,119,027
public void testFirstClassFields() { try { // def result := (reflect: atTestObject).grabField("xtest") ATField result = atTestObject.meta_grabField(AGSymbol.alloc("xtest")).base_asField(); assertEquals("xtest", result.base_getName().toString()); assertEquals(TEST_OBJECT_INIT, result.base_getValue().asNativeNu...
public void testFirstClassFields() { try { // def result := (reflect: atTestObject).grabField("xtest") ATField result = atTestObject.meta_grabField(AGSymbol.alloc("xtest")).base_asField(); assertEquals("xtest", result.base_getName().toString()); assertEquals(TEST_OBJECT_INIT, result.base_getValue().asNativeNu...
1,119,028
public void testFirstClassMethods() { try { // def result := (reflect: atTestObject).grabMethod("gettertest") ATMethod result = atTestObject.meta_grabMethod(AGSymbol.alloc("gettertest")).base_asMethod(); assertEquals("gettertest", result.base_getName().toString()); // assert (42 == result()) assertEquals(TE...
public void testFirstClassMethods() { try { // def result := (reflect: atTestObject).grabMethod("gettertest") ATMethod result = atTestObject.meta_grabMethod(AGSymbol.jAlloc("gettertest")).base_asMethod(); assertEquals("gettertest", result.base_getName().toString()); // assert (42 == result()) assertEquals(T...
1,119,029
public void testFirstClassMethods() { try { // def result := (reflect: atTestObject).grabMethod("gettertest") ATMethod result = atTestObject.meta_grabMethod(AGSymbol.alloc("gettertest")).base_asMethod(); assertEquals("gettertest", result.base_getName().toString()); // assert (42 == result()) assertEquals(TE...
public void testFirstClassMethods() { try { // def result := (reflect: atTestObject).grabMethod("gettertest") ATMethod result = atTestObject.meta_grabMethod(AGSymbol.alloc("gettertest")).base_asMethod(); assertEquals("gettertest", result.base_getName().toString()); // assert (42 == result()) assertEquals(TE...
1,119,030
public void testIllegalArgs() { try { atTestObject.meta_invoke(atTestObject, AGSymbol.alloc("settertest"), new NATTable(new ATObject[] { NATFraction.atValue(0.1) })); fail("Expected an illegal argument exception"); } catch(XTypeMismatch e) { // Java expects an int, so AT expects a native number, but is given a...
public void testIllegalArgs() { try { atTestObject.meta_invoke(atTestObject, AGSymbol.jAlloc("settertest"), new NATTable(new ATObject[] { NATFraction.atValue(0.1) })); fail("Expected an illegal argument exception"); } catch(XTypeMismatch e) { // Java expects an int, so AT expects a native number, but is given ...
1,119,031
public void testIllegalAssignment() { try { atTestClass.meta_assignField(atTestClass, AGSymbol.alloc("TEST_OBJECT_INIT"), NATNumber.atValue(0)); fail("Expected an illegal assignment exception"); } catch(XUnassignableField e) { // expected exception: success } catch(InterpreterException e) { fail(e.getMessag...
public void testIllegalAssignment() { try { atTestClass.meta_assignField(atTestClass, AGSymbol.jAlloc("TEST_OBJECT_INIT"), NATNumber.atValue(0)); fail("Expected an illegal assignment exception"); } catch(XUnassignableField e) { // expected exception: success } catch(InterpreterException e) { fail(e.getMessa...
1,119,032