bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public Collection getProperties(String ns) throws WebdavIntfException { init(true); Vector v = new Vector(); getVevent(); // init comp if (comp == null) { throw new WebdavIntfException("getProperties, comp == null"); } addProp(v, ICalTags.summary, name); addProp(v, ICalTags.dtstart, comp.get...
public Collection getProperties(String ns) throws WebdavIntfException { init(true); Vector v = new Vector(); getVevent(); // init comp if (comp == null) { throw new WebdavIntfException("getProperties, comp == null"); } addProp(v, ICalTags.summary, name); addProp(v, ICalTags.dtstart, comp.get...
1,120,612
public Collection getProperties(String ns) throws WebdavIntfException { init(true); Vector v = new Vector(); getVevent(); // init comp if (comp == null) { throw new WebdavIntfException("getProperties, comp == null"); } addProp(v, ICalTags.summary, name); addProp(v, ICalTags.dtstart, comp.get...
public Collection getProperties(String ns) throws WebdavIntfException { init(true); Vector v = new Vector(); getVevent(); // init comp if (comp == null) { throw new WebdavIntfException("getProperties, comp == null"); } addProp(v, ICalTags.summary, name); addProp(v, ICalTags.dtstart, comp.get...
1,120,613
public Collection getProperties(String ns) throws WebdavIntfException { init(true); Vector v = new Vector(); getVevent(); // init comp if (comp == null) { throw new WebdavIntfException("getProperties, comp == null"); } addProp(v, ICalTags.summary, name); addProp(v, ICalTags.dtstart, comp.get...
public Collection getProperties(String ns) throws WebdavIntfException { init(true); Vector v = new Vector(); getVevent(); // init comp if (comp == null) { throw new WebdavIntfException("getProperties, comp == null"); } addProp(v, ICalTags.summary, name); addProp(v, ICalTags.dtstart, comp.get...
1,120,614
public NATText meta_print() throws XTypeMismatch { return NATText.atValue("<native closure:"+base_getMethod().base_getName().getText().asNativeText().javaValue+">"); }
public NATText meta_print() throws XTypeMismatch { return NATText.atValue("<native closure:"+base_getMethod().base_getName().base_getText().asNativeText().javaValue+">"); }
1,120,615
public void dumpSection(Iterator it) throws Throwable { if (annotations) { tagStart(sectionEventAnnotations); } else { tagStart(sectionEvents); } long ct = 0; while (it.hasNext()) { dumpEvent((BwEvent)it.next()); ct++; if ((ct % 100) == 0) { info(" ... " + ct); ...
public void dumpSection(Iterator it) throws Throwable { if (annotations) { tagStart(sectionEventAnnotations); } else { tagStart(sectionEvents); } while (it.hasNext()) { dumpEvent((BwEvent)it.next()); ct++; if ((ct % 100) == 0) { info(" ... " + ct); } } ...
1,120,616
public void dumpSection(Iterator it) throws Throwable { if (annotations) { tagStart(sectionEventAnnotations); } else { tagStart(sectionEvents); } long ct = 0; while (it.hasNext()) { dumpEvent((BwEvent)it.next()); ct++; if ((ct % 100) == 0) { info(" ... " + ct); ...
public void dumpSection(Iterator it) throws Throwable { if (annotations) { tagStart(sectionEventAnnotations); } else { tagStart(sectionEvents); } long ct = 0; while (it.hasNext()) { dumpEvent((BwEvent)it.next()); if ((ct % 100) == 0) { info(" ... " + ct); } ...
1,120,617
public void dumpSection(Iterator it) throws Throwable { if (annotations) { tagStart(sectionEventAnnotations); } else { tagStart(sectionEvents); } long ct = 0; while (it.hasNext()) { dumpEvent((BwEvent)it.next()); ct++; if ((ct % 100) == 0) { info(" ... " + ct); ...
public void dumpSection(Iterator it) throws Throwable { if (annotations) { tagStart(sectionEventAnnotations); } else { tagStart(sectionEvents); } long ct = 0; while (it.hasNext()) { dumpEvent((BwEvent)it.next()); ct++; if ((ct % 100) == 0) { info(" ... " + ct); ...
1,120,618
private void appendIdea(Document document, Element element, Idea idea) throws IOException { Element ideaElement = document.createElement("outline"); ideaElement.setAttribute("text", idea.getText()); ideaElement.setAttribute("angle", "" + idea.getAngle()); String notes = idea.getNotes(); ...
private void appendIdea(Document document, Element element, Idea idea) throws IOException { Element ideaElement = document.createElement("outline"); ideaElement.setAttribute("text", idea.getText()); ideaElement.setAttribute("angle", "" + idea.getAngle()); String notes = idea.getNotes(); ...
1,120,619
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } int calId = getIntReqPar...
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } int calId = getIntReqPar...
1,120,620
public boolean validate(MessageEmit err) { goodValue = true; if (!getShow()) { return true; } try { setIntVal(Integer.parseInt(getValue())); } catch (Throwable t) { err.emit("org.bedework.config.badvalue", getName(), getValue()); goodValue = false; } return goodValue; }
public boolean validate(MessageEmit err) { goodValue = true; if (!getShow()) { return true; } try { setIntVal(Integer.parseInt(getValue())); } catch (Throwable t) { err.emit("org.bedework.config.error.badvalue", getName(), getValue()); goodValue = false; } return goodValue; }
1,120,621
public CalTimezones getTzcache() throws Throwable { if (tzcache != null) { return tzcache; } if (syspars.getTzid() == null) { throw new Exception("syspars.tzid not initialised"); } tzcache = new TimezonesImpl(debug, getPublicUser(), rintf); tzcache.setDefaultTimeZoneId(syspars.getTzid()); ...
public CalTimezones getTzcache() throws Throwable { if (tzcache != null) { return tzcache; } if (syspars.getTzid() == null) { throw new Exception("syspars.tzid not initialised"); } tzcache = new TimezonesImpl(debug, getPublicUser(), rintf); tzcache.setDefaultTimeZoneId(syspars.getTzid()); ...
1,120,622
private String executeQueries(SQLQuery sqlQuery, int numberOfRows, QueryToSQLBridge sqlBridge, List executedSQLStatements, IWResourceBundle resourceBundle, IWContext iwc) throws RemoteException { QueryResultSession sessionBean = (QueryResultSession) IBOLookup.getSessionInstance(iwc, QueryResultSession.class); Query...
private String executeQueries(SQLQuery sqlQuery, int numberOfRows, QueryToSQLBridge sqlBridge, List executedSQLStatements, IWResourceBundle resourceBundle, IWContext iwc) throws RemoteException { QueryResultSession sessionBean = (QueryResultSession) IBOLookup.getSessionInstance(iwc, QueryResultSession.class); Query...
1,120,624
private String executeQueries(SQLQuery sqlQuery, int numberOfRows, QueryToSQLBridge sqlBridge, List executedSQLStatements, IWResourceBundle resourceBundle, IWContext iwc) throws RemoteException { QueryResultSession sessionBean = (QueryResultSession) IBOLookup.getSessionInstance(iwc, QueryResultSession.class); Query...
private String executeQueries(SQLQuery sqlQuery, int numberOfRows, QueryToSQLBridge sqlBridge, List executedSQLStatements, IWResourceBundle resourceBundle, IWContext iwc) throws RemoteException { QueryResultSession sessionBean = (QueryResultSession) IBOLookup.getSessionInstance(iwc, QueryResultSession.class); Query...
1,120,625
private String executeQueries(SQLQuery sqlQuery, int numberOfRows, QueryToSQLBridge sqlBridge, List executedSQLStatements, IWResourceBundle resourceBundle, IWContext iwc) throws RemoteException { QueryResultSession sessionBean = (QueryResultSession) IBOLookup.getSessionInstance(iwc, QueryResultSession.class); Query...
private String executeQueries(SQLQuery sqlQuery, int numberOfRows, QueryToSQLBridge sqlBridge, List executedSQLStatements, IWResourceBundle resourceBundle, IWContext iwc) throws RemoteException { QueryResultSession sessionBean = (QueryResultSession) IBOLookup.getSessionInstance(iwc, QueryResultSession.class); Query...
1,120,626
private DesignBox getDesignBox(SQLQuery sqlQuery, JasperReportBusiness reportBusiness, IWResourceBundle resourceBundle, IWContext iwc) { DesignBox design = null; try { if (designId > 0) { design = reportBusiness.getDesignBox(designId); } else { design = reportBusiness.getDynamicDesignBox(...
private DesignBox getDesignBox(SQLQuery sqlQuery, JasperReportBusiness reportBusiness, IWResourceBundle resourceBundle, IWContext iwc) { DesignBox design = null; try { if (designId > 0) { design = reportBusiness.getDesignBox(designId); } else { design = reportBusiness.getDynamicDesignBox(...
1,120,627
public GroupBusiness getGroupBusiness() { try { return (GroupBusiness) IBOLookup.getServiceInstance(getIWApplicationContext(), GroupBusiness.class); } catch (RemoteException ex) { System.err.println("[ReportOverview]: Can't retrieve GroupBusiness. Message is: " + ex.getMessage()); throw new RuntimeExcep...
public GroupBusiness getGroupBusiness() { try { return (GroupBusiness) IBOLookup.getServiceInstance(getIWApplicationContext(), GroupBusiness.class); } catch (RemoteException ex) { System.err.println("[ReportOverview]: Can't retrieve GroupBusiness. Message is: " + ex.getMessage()); throw new RuntimeExcep...
1,120,629
private InputHandler getInputHandler(String className) { if (className == null) { return null; } InputHandler inputHandler = null; try { inputHandler = (InputHandler) RefactorClassRegistry.forName(className).newInstance(); } catch (ClassNotFoundException ex) { log(ex); logError("[ReportOverview] Cou...
private InputHandler getInputHandler(String className) { if (className == null) { return null; } InputHandler inputHandler = null; try { inputHandler = (InputHandler) RefactorClassRegistry.forName(className).newInstance(); } catch (ClassNotFoundException ex) { log(ex); logError("[QueryResultViewer] ...
1,120,630
private InputHandler getInputHandler(String className) { if (className == null) { return null; } InputHandler inputHandler = null; try { inputHandler = (InputHandler) RefactorClassRegistry.forName(className).newInstance(); } catch (ClassNotFoundException ex) { log(ex); logError("[ReportOverview] Cou...
private InputHandler getInputHandler(String className) { if (className == null) { return null; } InputHandler inputHandler = null; try { inputHandler = (InputHandler) RefactorClassRegistry.forName(className).newInstance(); } catch (ClassNotFoundException ex) { log(ex); logError("[ReportOverview] Cou...
1,120,631
public QueryService getQueryService() { try { return (QueryService) IBOLookup.getServiceInstance( getIWApplicationContext() ,QueryService.class); } catch (RemoteException ex) { System.err.println("[ReportOverview]: Can't retrieve QueryService. Message is: " + ex.getMessage()); throw new Runti...
public QueryService getQueryService() { try { return (QueryService) IBOLookup.getServiceInstance( getIWApplicationContext() ,QueryService.class); } catch (RemoteException ex) { System.err.println("[ReportOverview]: Can't retrieve QueryService. Message is: " + ex.getMessage()); throw new Runti...
1,120,632
public QueryToSQLBridge getQueryToSQLBridge() { try { return (QueryToSQLBridge) IBOLookup.getServiceInstance( getIWApplicationContext() ,QueryToSQLBridge.class); } catch (RemoteException ex) { System.err.println("[ReportOverview]: Can't retrieve QueryToSqlBridge. Message is: " + ex.getMessage()); ...
public QueryToSQLBridge getQueryToSQLBridge() { try { return (QueryToSQLBridge) IBOLookup.getServiceInstance( getIWApplicationContext() ,QueryToSQLBridge.class); } catch (RemoteException ex) { System.err.println("[ReportOverview]: Can't retrieve QueryToSqlBridge. Message is: " + ex.getMessage()); ...
1,120,633
public JasperReportBusiness getReportBusiness() { try { return (JasperReportBusiness) IBOLookup.getServiceInstance( getIWApplicationContext(), JasperReportBusiness.class); } catch (RemoteException ex) { System.err.println("[ReportOverview]: Can't retrieve JasperReportBusiness. Message is: " + ex.ge...
public JasperReportBusiness getReportBusiness() { try { return (JasperReportBusiness) IBOLookup.getServiceInstance( getIWApplicationContext(), JasperReportBusiness.class); } catch (RemoteException ex) { System.err.println("[ReportOverview]: Can't retrieve JasperReportBusiness. Message is: " + ex.ge...
1,120,634
public UserBusiness getUserBusiness() { try { return (UserBusiness) IBOLookup.getServiceInstance(getIWApplicationContext(), UserBusiness.class); } catch (RemoteException ex) { System.err.println("[ReportOverview]: Can't retrieve UserBusiness. Message is: " + ex.getMessage()); throw new RuntimeException(...
public UserBusiness getUserBusiness() { try { return (UserBusiness) IBOLookup.getServiceInstance(getIWApplicationContext(), UserBusiness.class); } catch (RemoteException ex) { System.err.println("[ReportOverview]: Can't retrieve UserBusiness. Message is: " + ex.getMessage()); throw new RuntimeException(...
1,120,635
private String initializeByParsing(IWContext iwc, IWResourceBundle resourceBundle) throws NumberFormatException, RemoteException, FinderException, IOException { // request from self if (iwc.isParameterSet(QUERY_ID_KEY)) { queryId = Integer.parseInt(iwc.getParameter(QUERY_ID_KEY)); designId = Integer.parseInt(iwc...
private String initializeByParsing(IWContext iwc, IWResourceBundle resourceBundle) throws NumberFormatException, RemoteException, FinderException, IOException { // request from self if (iwc.isParameterSet(QUERY_ID_KEY)) { queryId = Integer.parseInt(iwc.getParameter(QUERY_ID_KEY)); designId = Integer.parseInt(iwc...
1,120,636
public void sample(int generation, Population population) { int[] sample = getSample(generation, population); List<Taxon> taxa = new ArrayList<Taxon>(); for (int i = 0; i < sample.length; i++) { taxa.add(Taxon.getTaxon(substituteVariables(label, generation, i + 1))); } if (sample != null) { RootedTree tree = ...
public void sample(int generation, Population population) { int[] sample = getSample(generation, population); List<Taxon> taxa = new ArrayList<Taxon>(); for (int i = 0; i < sample.length; i++) { taxa.add(Taxon.getTaxon(substituteVariables(label, generation, i + 1))); } if (sample != null) { RootedTree tree = ...
1,120,638
private DropdownMenu getDataEntityDrop(String name, String selected) { List L = ReportFinder.listOfDataClasses(); DropdownMenu drp = new DropdownMenu(name); drp.addMenuElementFirst("-", "-1"); java.util.Iterator I = L.iterator(); while (I.hasNext()) { ICObject obj = (ICObject) I.next(); drp.addMenuElement(obj...
private DropdownMenu getDataEntityDrop(String name, String selected) { Collection L = ReportFinder.listOfDataClasses(); DropdownMenu drp = new DropdownMenu(name); drp.addMenuElementFirst("-", "-1"); java.util.Iterator I = L.iterator(); while (I.hasNext()) { ICObject obj = (ICObject) I.next(); drp.addMenuEleme...
1,120,639
public NATText meta_print() throws XTypeMismatch { return NATText.atValue("<native method:"+base_getName().getText().asNativeText().javaValue+">"); }
public NATText meta_print() throws XTypeMismatch { return NATText.atValue("<native method:"+base_getName().base_getText().asNativeText().javaValue+">"); }
1,120,640
public String getTitle() { return "AudioPlayer"; }
public String getTitle() { return "Audio"; }
1,120,642
public String getXmlAccess() { try { if (xmlAccess == null) { Acl acl = svci.getAcl(getEvent()); xmlAccess = AccessUtil.getXmlString(acl); } } catch (Throwable t) { error(t); } return xmlAccess; }
public String getXmlAccess() { try { if (xmlAccess == null) { Acl acl = svci.getAcl(getEvent()); xmlAccess = AccessAppUtil.getXmlAclString(acl); } } catch (Throwable t) { error(t); } return xmlAccess; }
1,120,643
public void field(String name) throws java.lang.Exception{ BwPreferences p = (BwPreferences)top(); if (ownedEntityTags(p, name)) { return; } if (name.equals("email")) { p.setEmail(stringFld()); } else if (name.equals("defaultCalendar")) { p.setDefaultCalendar(calendarFld()); } else if...
public void field(String name) throws java.lang.Exception{ BwPreferences p = (BwPreferences)top(); if (ownedEntityTags(p, name)) { return; } if (name.equals("email")) { p.setEmail(stringFld()); } else if (name.equals("defaultCalendar")) { p.setDefaultCalendar(calendarFld()); } else if...
1,120,644
public void field(String name) throws java.lang.Exception{ BwPreferences p = (BwPreferences)top(); if (ownedEntityTags(p, name)) { return; } if (name.equals("email")) { p.setEmail(stringFld()); } else if (name.equals("defaultCalendar")) { p.setDefaultCalendar(calendarFld()); } else if...
public void field(String name) throws java.lang.Exception{ BwPreferences p = (BwPreferences)top(); if (ownedEntityTags(p, name)) { return; } if (name.equals("email")) { p.setEmail(stringFld()); } else if (name.equals("defaultCalendar")) { p.setDefaultCalendar(calendarFld()); } else if...
1,120,645
public void init(WebdavServlet servlet, HttpServletRequest req, Properties props, boolean debug) throws WebdavIntfException { super.init(servlet, req, props, debug); namespacePrefix = WebdavUtils.getUrlPrefix(req); namespace = namespacePrefix + "/schema";...
public void init(WebdavServlet servlet, HttpServletRequest req, Properties props, boolean debug) throws WebdavIntfException { super.init(servlet, req, props, debug); namespacePrefix = WebdavUtils.getUrlPrefix(req); namespace = namespacePrefix + "/schema";...
1,120,646
public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /** Check access */ if (!form.getAuthorisedUser()) { return "noAccess"; } FormFile upFile = form.getUploadFile(); if (upFile == null) { ...
public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /** Check access */ if (!form.getAuthorisedUser()) { return "noAccess"; } FormFile upFile = form.getUploadFile(); if (upFile == null) { ...
1,120,647
private CompFilter parseCompFilter(Node nd) throws WebdavException { String name = getOnlyAttrVal(nd, "name"); if (name == null) { throw new WebdavBadRequest(); } CompFilter cf = new CompFilter(name); Element[] children = getChildren(nd); try { for (int i = 0; i < children.length; i++) { ...
private CompFilter parseCompFilter(Node nd) throws WebdavException { String name = getOnlyAttrVal(nd, "name"); if (name == null) { throw new WebdavBadRequest(); } CompFilter cf = new CompFilter(name); Element[] children = getChildren(nd); try { for (int i = 0; i < children.length; i++) { ...
1,120,649
public void testDelegatedMethodInvocation() { try { NATObject parent = new NATObject(lexicalRoot_); NATObject child = new NATObject(parent, lexicalRoot_, NATObject._IS_A_); ATSymbol lateBoundSelf = AGSymbol.alloc(NATText.atValue("lateBoundSelf")); ATMethod lateBoundSelfTestMethod = new NATMethod( la...
public void testDelegatedMethodInvocation() { try { NATObject parent = new NATObject(lexicalRoot_); NATObject child = new NATObject(parent, lexicalRoot_, NATObject._IS_A_); ATSymbol lateBoundSelf = AGSymbol.alloc(NATText.atValue("lateBoundSelf")); ATMethod lateBoundSelfTestMethod = new NATMethod( la...
1,120,650
public void testDelegatedMethodInvocation() { try { NATObject parent = new NATObject(lexicalRoot_); NATObject child = new NATObject(parent, lexicalRoot_, NATObject._IS_A_); ATSymbol lateBoundSelf = AGSymbol.alloc(NATText.atValue("lateBoundSelf")); ATMethod lateBoundSelfTestMethod = new NATMethod( la...
public void testDelegatedMethodInvocation() { try { NATObject parent = new NATObject(lexicalRoot_); NATObject child = new NATObject(parent, lexicalRoot_, NATObject._IS_A_); ATSymbol lateBoundSelf = AGSymbol.alloc(NATText.atValue("lateBoundSelf")); ATMethod lateBoundSelfTestMethod = new NATMethod( la...
1,120,651
public void testExtend() { try { NATObject parent = new NATObject(lexicalRoot_); ATSymbol superSemantics = AGSymbol.alloc(NATText.atValue("superSemantics")); AGScopeTest test = new AGScopeTest(null, null, parent); NATObject child = (NATObject)parent.meta_extend( new NATClosure( new NATMethod(A...
public void testExtend() { try { NATObject parent = new NATObject(lexicalRoot_); ATSymbol superSemantics = AGSymbol.alloc(NATText.atValue("superSemantics")); AGScopeTest test = new AGScopeTest(null, null, parent); NATObject child = (NATObject)parent.meta_extend( new NATClosure( new NATMethod(A...
1,120,652
public void testExtend() { try { NATObject parent = new NATObject(lexicalRoot_); ATSymbol superSemantics = AGSymbol.alloc(NATText.atValue("superSemantics")); AGScopeTest test = new AGScopeTest(null, null, parent); NATObject child = (NATObject)parent.meta_extend( new NATClosure( new NATMethod(A...
public void testExtend() { try { NATObject parent = new NATObject(lexicalRoot_); ATSymbol superSemantics = AGSymbol.alloc(NATText.atValue("superSemantics")); AGScopeTest test = new AGScopeTest(null, null, parent); NATObject child = (NATObject)parent.meta_extend( new NATClosure( new NATMethod(A...
1,120,653
public void testMethodInvocation() { try { NATObject object = new NATObject(lexicalRoot_); ATSymbol scopeTest = AGSymbol.alloc(NATText.atValue("scopeTest")); ATMethod scopeTestMethod = new NATMethod( scopeTest, NATTable.EMPTY, new AGScopeTest(object, object, object.getDynamicParent())); object.m...
public void testMethodInvocation() { try { NATObject object = new NATObject(lexicalRoot_); ATSymbol scopeTest = AGSymbol.alloc(NATText.atValue("scopeTest")); ATMethod scopeTestMethod = new NATMethod( scopeTest, NATTable.EMPTY, new AGBegin(new NATTable(new ATObject[] { new AGScopeTest(object, objec...
1,120,654
public NATText asNativeText() throws InterpreterException { return this.meta_print(); // throw new XTypeMismatch("Expected a native text, given: " + this.getClass().getName(), this); }
public NATText asNativeText() throws InterpreterException { throw new XTypeMismatch(NATText.class, this); // throw new XTypeMismatch("Expected a native text, given: " + this.getClass().getName(), this); }
1,120,655
public Selection (MicroSecondDate begin, MicroSecondDate end, TimeRangeConfig tr, HashMap plotters){ this.begin = begin; this.end = end; this.timeConfig = tr; this.plotters = plotters; internalTimeConfig = new BoundedTimeConfig(); Iterator e = plotters.keySet().iterator(); while(e.hasNext()) internalTimeConfig....
public Selection (MicroSecondDate begin, MicroSecondDate end, TimeRangeConfig tr, HashMap plotters){ this.begin = begin; this.end = end; this.timeConfig = tr; this.plotters = plotters; internalTimeConfig = new BoundedTimeConfig(); Iterator e = plotters.keySet().iterator(); while(e.hasNext()) internalTimeConfig....
1,120,657
public boolean adjustRange(MicroSecondDate selectionBegin, MicroSecondDate selectionEnd){ double timeWidth = timeConfig.getTimeRange().getInterval().getValue(); double beginDistance = Math.abs(begin.getMicroSecondTime() - selectionEnd.getMicroSecondTime())/timeWidth; double endDistance = Math.abs(end.getMicroSecond...
public boolean adjustRange(MicroSecondDate selectionBegin, MicroSecondDate selectionEnd){ double timeWidth = timeConfig.getTimeRange().getInterval().getValue(); double beginDistance = Math.abs(begin.getMicroSecondTime() - selectionEnd.getMicroSecondTime())/timeWidth; double endDistance = Math.abs(end.getMicroSecond...
1,120,658
public boolean adjustRange(MicroSecondDate selectionBegin, MicroSecondDate selectionEnd){ double timeWidth = timeConfig.getTimeRange().getInterval().getValue(); double beginDistance = Math.abs(begin.getMicroSecondTime() - selectionEnd.getMicroSecondTime())/timeWidth; double endDistance = Math.abs(end.getMicroSecond...
public boolean adjustRange(MicroSecondDate selectionBegin, MicroSecondDate selectionEnd){ double timeWidth = timeConfig.getTimeRange().getInterval().getValue(); double beginDistance = Math.abs(begin.getMicroSecondTime() - selectionEnd.getMicroSecondTime())/timeWidth; double endDistance = Math.abs(end.getMicroSecond...
1,120,659
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { form.refreshIsNeeded(); String date = getReqPar(request, "startdate"); if (date != null) { if (CalFacadeUtil.isISODate(date)) { Date jdt = CalFacadeUtil.fromISODate(date); form....
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { form.refreshIsNeeded(); String date = getReqPar(request, "startdate"); if (date != null) { if (CalFacadeUtil.isISODate(date)) { Date jdt = CalFacadeUtil.fromISODate(date); form....
1,120,660
public UIViewRoot createView(FacesContext context, String viewId) { ViewNode node = getNode(context); String newViewId=viewId; //if(node.isResourceBased() && nodeCorrespondsToViewId(node, viewId, context)){ // newViewId=node.getResourceURI(); //} if(node.isResourceBased()){ if(!viewId.endsWith(JSP_EXT)){ ne...
public UIViewRoot createView(FacesContext context, String viewId) { ViewNode node = getNode(context); String newViewId=viewId; //if(node.isResourceBased() && nodeCorrespondsToViewId(node, viewId, context)){ // newViewId=node.getResourceURI(); //} if(node.isResourceBased()){ if(!viewId.endsWith(JSP_EXT)){ ne...
1,120,662
public void init(EObject instance) { for (java.util.Iterator it = featureInitializers.iterator(); it.hasNext();) { IFeatureInitializer nextExpr = (IFeatureInitializer) it.next(); try { nextExpr.init(instance); } catch (RuntimeException e) { UMLDiagramEditorPlugin.getInstance().logError("Feat...
public void init(EObject instance) { for (java.util.Iterator it = featureInitializers.iterator(); it.hasNext();) { IFeatureInitializer nextExpr = (IFeatureInitializer) it.next(); try { nextExpr.init(instance); } catch (RuntimeException e) { UMLDiagramEditorPlugin.getInstance().logError("Feat...
1,120,664
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { BwEvent ev = form.retrieveCurrentEvent(); if (ev == null) { return "noevent"; } String recipient = form.getLastEmail(); if (recipient == null) { form.getErr().emit("org.bedework.er...
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { BwEvent ev = form.retrieveCurrentEvent(); if (ev == null) { return "noevent"; } String recipient = form.getLastEmail(); if (recipient == null) { form.getErr().emit("org.bedework.cl...
1,120,665
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { BwEvent ev = form.retrieveCurrentEvent(); if (ev == null) { return "noevent"; } String recipient = form.getLastEmail(); if (recipient == null) { form.getErr().emit("org.bedework.er...
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { BwEvent ev = form.retrieveCurrentEvent(); if (ev == null) { return "noevent"; } String recipient = form.getLastEmail(); if (recipient == null) { form.getErr().emit("org.bedework.er...
1,120,666
public void show() { initData(); FileOutputStream fileOutputStream = null; try { File file = new File("outputShow.txt"); fileOutputStream = new FileOutputStream(file); } catch (FileNotFoundException e) { } for (ReviewMessage reviewMessage : reviewMessages) { try { fileOutputStream.write(charset.en...
public void show() { initData(); FileOutputStream fileOutputStream = null; try { File file = new File("outputShow.txt"); fileOutputStream = new FileOutputStream(file); } catch (FileNotFoundException e) { } for (ReviewMessage reviewMessage : reviewMessages) { try { fileOutputStream.write(charset.en...
1,120,667
public void show() { initData(); FileOutputStream fileOutputStream = null; try { File file = new File("outputShow.txt"); fileOutputStream = new FileOutputStream(file); } catch (FileNotFoundException e) { } for (ReviewMessage reviewMessage : reviewMessages) { try { fileOutputStream.write(charset.en...
public void show() { initData(); FileOutputStream fileOutputStream = null; try { File file = new File("outputShow.txt"); fileOutputStream = new FileOutputStream(file); } catch (FileNotFoundException e) { } for (ReviewMessage reviewMessage : reviewMessages) { try { fileOutputStream.write(charset.en...
1,120,668
public void show() { initData(); FileOutputStream fileOutputStream = null; try { File file = new File("outputShow.txt"); fileOutputStream = new FileOutputStream(file); } catch (FileNotFoundException e) { } for (ReviewMessage reviewMessage : reviewMessages) { try { fileOutputStream.write(charset.en...
public void show() { initData(); FileOutputStream fileOutputStream = null; try { File file = new File("outputShow.txt"); fileOutputStream = new FileOutputStream(file); } catch (FileNotFoundException e) { } for (ReviewMessage reviewMessage : reviewMessages) { try { fileOutputStream.write(charset.en...
1,120,669
public void changeAccess(BwShareableDbentity ent, Collection aces) throws CalFacadeException { try { Acl acl = checkAccess(ent, privWriteAcl, false).acl; Iterator it = aces.iterator(); while (it.hasNext()) { Ace ace = (Ace)it.next(); acl.removeAccess(ace); ...
public void changeAccess(BwShareableDbentity ent, Collection aces) throws CalFacadeException { try { Acl acl = checkAccess(ent, privWriteAcl, false).acl; Iterator it = aces.iterator(); while (it.hasNext()) { Ace ace = (Ace)it.next(); acl.removeWho(ace); } it...
1,120,670
public void changeAccess(BwShareableDbentity ent, Collection aces) throws CalFacadeException { try { Acl acl = checkAccess(ent, privWriteAcl, false).acl; Iterator it = aces.iterator(); while (it.hasNext()) { Ace ace = (Ace)it.next(); acl.removeAccess(ace); ...
public void changeAccess(BwShareableDbentity ent, Collection aces) throws CalFacadeException { try { Acl acl = checkAccess(ent, privWriteAcl, false).acl; Iterator it = aces.iterator(); while (it.hasNext()) { Ace ace = (Ace)it.next(); acl.removeAccess(ace); ...
1,120,671
private char[] getAclChars(BwShareableDbentity ent) throws CalFacadeException { if (ent instanceof BwShareableContainedDbentity) { BwCalendar container; if (ent instanceof BwCalendar) { container = (BwCalendar)ent; } else { container = ((BwShareableContainedDbentity)ent).getCalendar();...
private char[] getAclChars(BwShareableDbentity ent) throws CalFacadeException { if (ent instanceof BwShareableContainedDbentity) { BwCalendar container; if (ent instanceof BwCalendar) { container = (BwCalendar)ent; } else { container = ((BwShareableContainedDbentity)ent).getCalendar();...
1,120,672
private char[] getAclChars(BwShareableDbentity ent) throws CalFacadeException { if (ent instanceof BwShareableContainedDbentity) { BwCalendar container; if (ent instanceof BwCalendar) { container = (BwCalendar)ent; } else { container = ((BwShareableContainedDbentity)ent).getCalendar();...
private char[] getAclChars(BwShareableDbentity ent) throws CalFacadeException { if (ent instanceof BwShareableContainedDbentity) { BwCalendar container; if (ent instanceof BwCalendar) { container = (BwCalendar)ent; } else { container = ((BwShareableContainedDbentity)ent).getCalendar();...
1,120,673
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 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. */ initFields(f...
1,120,674
private void dumpUserPrefs(BwPreferences p) throws Throwable { tagStart(objectUserPrefs); ownedEntityTags(p); Collection s = p.getSubscriptions(); if (s.size() > 0) { tagStart("subscriptions"); Iterator si = s.iterator(); while (si.hasNext()) { BwSubscription sub = (BwSubscription)si...
private void dumpUserPrefs(BwPreferences p) throws Throwable { tagStart(objectUserPrefs); ownedEntityTags(p); Collection s = p.getSubscriptions(); if (s.size() > 0) { tagStart("subscriptions"); Iterator si = s.iterator(); while (si.hasNext()) { BwSubscription sub = (BwSubscription)si...
1,120,675
public Collection findEventsByName(BwCalendar cal, String val) throws CalFacadeException { return getCal().getEventsByName(cal, val); }
public Collection findEventsByName(BwCalendar cal, String val) throws CalFacadeException { return postProcess(getCal().getEventsByName(cal, val), (BwSubscription)null); }
1,120,676
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...
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...
1,120,677
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...
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...
1,120,678
private String doAuth(String cardnumber, String monthExpires, String yearExpires, double amount, String currency, String transactionType, Object parentDataPK, String authIDRsp) throws TPosException { if(_client != null) { _client.setProperty(TPOS3Client.PN_USERID, _userId); _client.setProperty(TPOS3Client...
private String doAuth(String cardnumber, String monthExpires, String yearExpires, double amount, String currency, String transactionType, Object parentDataPK, String authIDRsp) throws TPosException { if(_client != null) { _client.setProperty(TPOS3Client.PN_USERID, _userId); _client.setProperty(TPOS3Client...
1,120,680
private int calculateTextFieldWidthForString(String str){ int fontSize = 9; return (int)( 5+(str.length()*fontSize*0.58)); }
private int calculateTextFieldWidthForString(String str){ int fontSize = 9; return (int)( 5+(str.length()*fontSize*0.58)); }
1,120,681
public DesignBox getDynamicDesignBox(SQLQuery query, IWResourceBundle resourceBundle, IWContext iwc) throws IOException, JRException { final int columnSpacing = 15; int columnWidth = 120; final int labelWidth = 95; final int valueWidth = 55; Map parameterMap = new HashMap(); DynamicReportDesign desi...
public DesignBox getDynamicDesignBox(SQLQuery query, IWResourceBundle resourceBundle, IWContext iwc) throws IOException, JRException { final int columnSpacing = 15; int columnWidth = 120; final int labelWidth = 95; final int valueWidth = 55; Map parameterMap = new HashMap(); DynamicReportDesign desi...
1,120,682
public String getSimpleExcelReport(JRDataSource reportData, String nameOfReport, ReportDescription description) { // prepare path long folderIdentifier = System.currentTimeMillis(); String path = getRealPathToReportFile("report", EXCEL_FILE_EXTENSION,folderIdentifier); try { SimpleReportBusiness srBusine...
public String getSimpleExcelReport(JRDataSource reportData, String nameOfReport, ReportDescription description) { // prepare path long folderIdentifier = System.currentTimeMillis(); String path = getRealPathToReportFile("report", EXCEL_FILE_EXTENSION,folderIdentifier); try { SimpleReportBusiness srBusine...
1,120,683
public JasperPrint printSynchronizedReport(QueryResult dataSource, Map parameterMap, DesignBox designBox) { JasperPrint print; synchronizeResultAndDesign(dataSource, parameterMap, designBox); // henceforth we treat the QueryResult as a JRDataSource, // therefore we reset the QueryResult to prepare it ...
public JasperPrint printSynchronizedReport(QueryResult dataSource, Map parameterMap, DesignBox designBox) { JasperPrint print; synchronizeResultAndDesign(dataSource, parameterMap, designBox); // henceforth we treat the QueryResult as a JRDataSource, // therefore we reset the QueryResult to prepare it ...
1,120,684
public JasperPrint printSynchronizedReport(QueryResult dataSource, Map parameterMap, DesignBox designBox) { JasperPrint print; synchronizeResultAndDesign(dataSource, parameterMap, designBox); // henceforth we treat the QueryResult as a JRDataSource, // therefore we reset the QueryResult to prepare it ...
public JasperPrint printSynchronizedReport(QueryResult dataSource, Map parameterMap, DesignBox designBox) { JasperPrint print; synchronizeResultAndDesign(dataSource, parameterMap, designBox); // henceforth we treat the QueryResult as a JRDataSource, // therefore we reset the QueryResult to prepare it ...
1,120,685
public void synchronizeResultAndDesign(QueryResult result, Map parameterMap, DesignBox designBox) { JasperDesign reportDesign = designBox.getDesign(); Map designParameterMap = designBox.getParameterMap(); List designFieldsToRemove = new ArrayList(); // get fields of the report design List fields = repor...
private void synchronizeResultAndDesign(QueryResult result, DesignBox designBox) { JasperDesign reportDesign = designBox.getDesign(); Map designParameterMap = designBox.getParameterMap(); List designFieldsToRemove = new ArrayList(); // get fields of the report design List fields = reportDesign.getFields...
1,120,686
public void synchronizeResultAndDesign(QueryResult result, Map parameterMap, DesignBox designBox) { JasperDesign reportDesign = designBox.getDesign(); Map designParameterMap = designBox.getParameterMap(); List designFieldsToRemove = new ArrayList(); // get fields of the report design List fields = repor...
public void synchronizeResultAndDesign(QueryResult result, Map parameterMap, DesignBox designBox) { JasperDesign reportDesign = designBox.getDesign(); Map designParameterMap = designBox.getParameterMap(); List designFieldsToRemove = new ArrayList(); // get fields of the report design List fields = repor...
1,120,687
public void synchronizeResultAndDesign(QueryResult result, Map parameterMap, DesignBox designBox) { JasperDesign reportDesign = designBox.getDesign(); Map designParameterMap = designBox.getParameterMap(); List designFieldsToRemove = new ArrayList(); // get fields of the report design List fields = repor...
public void synchronizeResultAndDesign(QueryResult result, Map parameterMap, DesignBox designBox) { JasperDesign reportDesign = designBox.getDesign(); Map designParameterMap = designBox.getParameterMap(); List designFieldsToRemove = new ArrayList(); // get fields of the report design List fields = repor...
1,120,688
public static final ATObject upExceptionCreation(InterpreterException jRcvr, ATTable atInitargs) throws InterpreterException { ATObject[] args = atInitargs.asNativeTable().elements_; return JavaInterfaceAdaptor.createNativeATObject(jRcvr.getClass(), args); }
public static final ATObject upExceptionCreation(InterpreterException jRcvr, ATTable atInitargs) throws InterpreterException { ATObject[] args = atInitargs.asNativeTable().elements_; return new NATException((InterpreterException) Symbiosis.symbioticInstanceCreation(jRcvr.getClass(), args) .asJavaObjectUnderSymbiosis...
1,120,689
public static final String valueNameOf(Class c) { String name = c.getSimpleName(); if (name.startsWith("AT")) { return "a" + classnameToValuename(name, "AT"); } else if (name.startsWith("NAT")) { return "a native" + classnameToValuename(name, "NAT"); } else if (name.startsWith("AG")) { return "a native AST" ...
public static final String valueNameOf(Class c) { String name = getSimpleName(c); if (name.startsWith("AT")) { return "a" + classnameToValuename(name, "AT"); } else if (name.startsWith("NAT")) { return "a native" + classnameToValuename(name, "NAT"); } else if (name.startsWith("AG")) { return "a native AST" +...
1,120,690
public void renderView(FacesContext facesContext, UIViewRoot viewToRender) throws IOException, FacesException { /* ViewNode node = getNode(facesContext); if (viewToRender == null) { log.warning("viewToRender must not be null"); throw new NullPointerException("viewToRender must no...
public void renderView(FacesContext context, UIViewRoot viewToRender) throws IOException, FacesException { /* ViewNode node = getNode(facesContext); if (viewToRender == null) { log.warning("viewToRender must not be null"); throw new NullPointerException("viewToRender must not be ...
1,120,691
public void renderView(FacesContext facesContext, UIViewRoot viewToRender) throws IOException, FacesException { /* ViewNode node = getNode(facesContext); if (viewToRender == null) { log.warning("viewToRender must not be null"); throw new NullPointerException("viewToRender must no...
public void renderView(FacesContext facesContext, UIViewRoot viewToRender) throws IOException, FacesException { /* ViewNode node = getNode(facesContext); if (viewToRender == null) { log.warning("viewToRender must not be null"); throw new NullPointerException("viewToRender must no...
1,120,692
public EventUpdateResult addEvent(BwCalendar cal, BwEvent event, Collection overrides) throws CalFacadeException { EventUpdateResult updResult = new EventUpdateResult(); if (event instanceof BwEventProxy) { BwEventProxy proxy = (BwEventP...
public EventUpdateResult addEvent(BwCalendar cal, BwEvent event, Collection overrides) throws CalFacadeException { EventUpdateResult updResult = new EventUpdateResult(); if (event instanceof BwEventProxy) { BwEventProxy proxy = (BwEventP...
1,120,694
public EventUpdateResult addEvent(BwCalendar cal, BwEvent event, Collection overrides) throws CalFacadeException { EventUpdateResult updResult = new EventUpdateResult(); if (event instanceof BwEventProxy) { BwEventProxy proxy = (BwEventP...
public EventUpdateResult addEvent(BwCalendar cal, BwEvent event, Collection overrides) throws CalFacadeException { EventUpdateResult updResult = new EventUpdateResult(); if (event instanceof BwEventProxy) { BwEventProxy proxy = (BwEventP...
1,120,695
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 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. */ initFields(f...
1,120,697
public void field(String name) throws Exception { BwEvent e = (BwEvent)top(); if (shareableContainedEntityTags(e, name)) { return; } try { /* pre-hibernate fields */ if (name.equals("lastmod")) { // pre-hibernate e.setLastmod(isoDateTimeFld()); } else if (name.equals("created"))...
public void field(String name) throws Exception { BwEvent e = (BwEvent)top(); if (shareableContainedEntityTags(e, name)) { return; } try { /* pre-hibernate fields */ if (name.equals("lastmod")) { // pre-hibernate e.setLastmod(isoDateTimeFld()); } else if (name.equals("created"))...
1,120,698
public String performAction(HttpServletRequest request, HttpServletResponse response, UtilActionForm frm, MessageResources messages) throws Throwable { String forward = "success"; BwActionFormBase form = (BwActionFormBase)frm...
public String performAction(HttpServletRequest request, HttpServletResponse response, UtilActionForm frm, MessageResources messages) throws Throwable { String forward = "success"; BwActionFormBase form = (BwActionFormBase)frm...
1,120,701
private byte[] getBytes() { if (contentBytes != null) { return contentBytes; } StringBuffer sb = new StringBuffer(); for (int i = 0; i < content.length; i++) { sb.append(content[i]); sb.append("\n"); } contentBytes = sb.toString().getBytes(); return contentBytes; }
private byte[] getBytes() { if (contentBytes != null) { return contentBytes; } StringBuffer sb = new StringBuffer(); for (int i = 0; i < content.length; i++) { sb.append(content[i]); sb.append("\n"); } contentBytes = detokenizeContent(sb); return contentBytes; }
1,120,702
private byte[] getFileBytes() throws Throwable { if (contentBytes != null) { return contentBytes; } ByteArrayOutputStream baos = new ByteArrayOutputStream(); FileInputStream in = new FileInputStream(contentFileName); do { int x = in.read(); if (x < 0) { break; } baos.wri...
private byte[] getFileBytes() throws Throwable { if (contentBytes != null) { return contentBytes; } ByteArrayOutputStream baos = new ByteArrayOutputStream(); FileInputStream in = new FileInputStream(contentFileName); do { int x = in.read(); if (x < 0) { break; } baos.wri...
1,120,703
public void fixSharableEntity(BwShareableDbentity entity, String name) throws Exception { try { if (entity.getCreator() == null) { warn(name + " " + entity.getId() + " has no creator, set to " + globals.getFixOwner().getAccount()); entity.setCreator(glob...
public void fixSharableEntity(BwShareableDbentity entity, String name) throws Exception { try { if (entity.getCreator() == null) { warn(name + " " + entity.getId() + " has no creator, set to " + globals.getPublicUser().getAccount()); entity.setCreator(gl...
1,120,704
public void fixSharableEntity(BwShareableDbentity entity, String name) throws Exception { try { if (entity.getCreator() == null) { warn(name + " " + entity.getId() + " has no creator, set to " + globals.getFixOwner().getAccount()); entity.setCreator(glob...
public void fixSharableEntity(BwShareableDbentity entity, String name) throws Exception { try { if (entity.getCreator() == null) { warn(name + " " + entity.getId() + " has no creator, set to " + globals.getFixOwner().getAccount()); entity.setCreator(glob...
1,120,705
public void fixSharableEntity(BwShareableDbentity entity, String name) throws Exception { try { if (entity.getCreator() == null) { warn(name + " " + entity.getId() + " has no creator, set to " + globals.getFixOwner().getAccount()); entity.setCreator(glob...
public void fixSharableEntity(BwShareableDbentity entity, String name) throws Exception { try { if (entity.getCreator() == null) { warn(name + " " + entity.getId() + " has no creator, set to " + globals.getFixOwner().getAccount()); entity.setCreator(glob...
1,120,706
public void fixSharableEntity(BwShareableDbentity entity, String name) throws Exception { try { if (entity.getCreator() == null) { warn(name + " " + entity.getId() + " has no creator, set to " + globals.getFixOwner().getAccount()); entity.setCreator(glob...
public void fixSharableEntity(BwShareableDbentity entity, String name) throws Exception { try { if (entity.getCreator() == null) { warn(name + " " + entity.getId() + " has no creator, set to " + globals.getFixOwner().getAccount()); entity.setCreator(glob...
1,120,707
public void fixSharableEntity(BwShareableDbentity entity, String name) throws Exception { try { if (entity.getCreator() == null) { warn(name + " " + entity.getId() + " has no creator, set to " + globals.getFixOwner().getAccount()); entity.setCreator(glob...
public void fixSharableEntity(BwShareableDbentity entity, String name) throws Exception { try { if (entity.getCreator() == null) { warn(name + " " + entity.getId() + " has no creator, set to " + globals.getFixOwner().getAccount()); entity.setCreator(glob...
1,120,708
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (!form.getUserAuth().isSuperUser()) { return "noAccess"; // First line of defence } CalSvc...
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (!form.getUserAuth().isSuperUser()) { return "noAccess"; // First line of defence } CalSvc...
1,120,709
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (!form.getUserAuth().isSuperUser()) { return "noAccess"; // First line of defence } CalSvc...
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (!form.getUserAuth().isSuperUser()) { return "noAccess"; // First line of defence } CalSvc...
1,120,710
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (!form.getUserAuth().isSuperUser()) { return "noAccess"; // First line of defence } CalSvc...
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (!form.getUserAuth().isSuperUser()) { return "noAccess"; // First line of defence } CalSvc...
1,120,711
protected static void writeLittleEndian(OutputStream out, int value) throws IOException { byte[] tmpBytes; tmpBytes = Utility.intToByteArray(value); out.write(tmpBytes[0]); out.write(tmpBytes[1]); out.write(tmpBytes[2]); out.write(tmpBytes[3]); }
protected static void writeLittleEndian(DataOutput out, int value) throws IOException { byte[] tmpBytes; tmpBytes = Utility.intToByteArray(value); out.write(tmpBytes[0]); out.write(tmpBytes[1]); out.write(tmpBytes[2]); out.write(tmpBytes[3]); }
1,120,713
public static void writeWAV(LocalSeismogramImpl seis, int speedUp, OutputStream out) { /* out.write("RIFF"); int size = 0; writeLittleEndian(out, size); out.write("WAVE"); // write fmt subchunk out.write("fmt "); writeLittleEndian(out, 16); writeLittleEndian(out, (short)1); // linear quantization, PCM writeLi...
public static void writeWAV(LocalSeismogramImpl seis, int speedUp, OutputStream out) { /* out.write("RIFF"); int size = 0; writeLittleEndian(out, size); out.write("WAVE"); // write fmt subchunk out.write("fmt "); writeLittleEndian(out, 16); writeLittleEndian(out, (short)1); // linear quantization, PCM writeLi...
1,120,714
public static void writeWAV(LocalSeismogramImpl seis, int speedUp, OutputStream out) { /* out.write("RIFF"); int size = 0; writeLittleEndian(out, size); out.write("WAVE"); // write fmt subchunk out.write("fmt "); writeLittleEndian(out, 16); writeLittleEndian(out, (short)1); // linear quantization, PCM writeLi...
public static void writeWAV(LocalSeismogramImpl seis, int speedUp, OutputStream out) { /* out.write("RIFF"); int size = 0; writeLittleEndian(out, size); out.writeBytes("WAVE"); // write fmt subchunk out.write("fmt "); writeLittleEndian(out, 16); writeLittleEndian(out, (short)1); // linear quantization, PCM wr...
1,120,715
public static void writeWAV(LocalSeismogramImpl seis, int speedUp, OutputStream out) { /* out.write("RIFF"); int size = 0; writeLittleEndian(out, size); out.write("WAVE"); // write fmt subchunk out.write("fmt "); writeLittleEndian(out, 16); writeLittleEndian(out, (short)1); // linear quantization, PCM writeLi...
public static void writeWAV(LocalSeismogramImpl seis, int speedUp, OutputStream out) { /* out.write("RIFF"); int size = 0; writeLittleEndian(out, size); out.write("WAVE"); // write fmt subchunk out.writeBytes("fmt "); writeLittleEndian(out, 16); writeLittleEndian(out, (short)1); // linear quantization, PCM wr...
1,120,716
public static void writeWAV(LocalSeismogramImpl seis, int speedUp, OutputStream out) { /* out.write("RIFF"); int size = 0; writeLittleEndian(out, size); out.write("WAVE"); // write fmt subchunk out.write("fmt "); writeLittleEndian(out, 16); writeLittleEndian(out, (short)1); // linear quantization, PCM writeLi...
public static void writeWAV(LocalSeismogramImpl seis, int speedUp, OutputStream out) { /* out.write("RIFF"); int size = 0; writeLittleEndian(out, size); out.write("WAVE"); // write fmt subchunk out.write("fmt "); writeLittleEndian(out, 16); writeLittleEndian(out, (short)1); // linear quantization, PCM writeLi...
1,120,717
public static void writeWAV(LocalSeismogramImpl seis, int speedUp, OutputStream out) { /* out.write("RIFF"); int size = 0; writeLittleEndian(out, size); out.write("WAVE"); // write fmt subchunk out.write("fmt "); writeLittleEndian(out, 16); writeLittleEndian(out, (short)1); // linear quantization, PCM writeLi...
public static void writeWAV(LocalSeismogramImpl seis, int speedUp, OutputStream out) { /* out.write("RIFF"); int size = 0; writeLittleEndian(out, size); out.write("WAVE"); // write fmt subchunk out.write("fmt "); writeLittleEndian(out, 16); writeLittleEndian(out, (short)1); // linear quantization, PCM writeLi...
1,120,718
public boolean deleteCalendar(BwCalendar val) throws CalFacadeException { checkOpen(); sess.delete(val); return true; }
public boolean deleteCalendar(BwCalendar val) throws CalFacadeException { checkOpen(); BwCalendar parent = val.getCalendar(); if (parent == null) { throw new CalFacadeException(CalFacadeException.cannotDeleteCalendarRoot); } parent.removeChild(val); sess.update(parent); return true; }
1,120,719
private void addLoggingDir(JPanel p) { final JFileChooser fileChooser = new JFileChooser(); fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); final JButton button = new JButton("Choose"); button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { String s = bro...
private void addLoggingDir(JPanel p) { final JFileChooser fileChooser = new JFileChooser(); fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); final JButton button = new JButton("Choose"); button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { String s = log...
1,120,720
public void actionPerformed(ActionEvent e) { String s = browser.getText(); if (s != null) { fileChooser.setSelectedFile(new File(s)); } int ret = fileChooser.showOpenDialog(EVI.getInstance().getMainFrame()); if (ret == JFileChooser.APPROVE_OPTION) { File f = fileChooser.getSelectedFile(); ...
public void actionPerformed(ActionEvent e) { String s = loggingDir.getText(); if (s != null) { fileChooser.setSelectedFile(new File(s)); } int ret = fileChooser.showOpenDialog(EVI.getInstance().getMainFrame()); if (ret == JFileChooser.APPROVE_OPTION) { File f = fileChooser.getSelectedFile(); ...
1,120,721
public Object getFieldValue(JRField field) throws JRException { return getFieldValue(new ReportableField(field)); }
public Object getFieldValue(JRField field) throws JRException { return getFieldValue(new ReportableField(field)); }
1,120,723
public boolean next() throws JRException { if(_reportIterator == null){ _reportIterator = this.iterator(); } try { if(_reportIterator.hasNext()){ _currentJRDataSource = (IDOReportableEntity)_reportIterator.next(); return true; } else { _currentJRDataSource = null; return false; } } catch (Cl...
public boolean next() throws JRException { if(_reportIterator == null){ _reportIterator = this.iterator(); } try { if(_reportIterator.hasNext()){ _currentJRDataSource = (IDOReportableEntity)_reportIterator.next(); return true; } else { _currentJRDataSource = null; return false; } } catch (Cl...
1,120,724
public boolean next() throws JRException { if(_reportIterator == null){ _reportIterator = this.iterator(); } try { if(_reportIterator.hasNext()){ _currentJRDataSource = (IDOReportableEntity)_reportIterator.next(); return true; } else { _currentJRDataSource = null; return false; } } catch (Cl...
public boolean next() throws JRException { if(_reportIterator == null){ _reportIterator = this.iterator(); } try { if(_reportIterator.hasNext()){ _currentJRDataSource = (IDOReportableEntity)_reportIterator.next(); return true; } else { _currentJRDataSource = null; return false; } } catch (Cl...
1,120,725
public void disposed(IModule disposedInstance) { try { IApplet applet = (IApplet)disposedInstance; removeApplet(applet); } catch (Exception exc) { ExceptionDialog.show(Messages.getString("TabBar.UNEXPECTED_ERROR"), exc); //$NON-NLS-1$ } }
public void disposed(IModule disposedInstance) { try { IApplet applet = (IApplet)disposedInstance; removeApplet(applet); } catch (Exception exc) { ExceptionDialog.show(Messages.getString("ToolBar.UNEXPECTED_ERROR"), exc); //$NON-NLS-1$ } }
1,120,726