rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
Boolean bool = getBooleanReqPar(request, "unremovable"); | Boolean bool = getBooleanReqPar(request, "unremoveable"); | public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } if (getReqPar(reques... |
String prefix = getEnv(form).getAppProperty("app.admingroupsidprefix"); | String prefix = form.getEnv().getAppProperty("admingroupsidprefix"); | private boolean validateAdminGroup(PEActionForm form) throws Throwable { boolean ok = true; CalSvcI svci = form.fetchSvci(); BwAdminGroup updAdminGroup = form.getUpdAdminGroup(); if (updAdminGroup == null) { // bogus call. return false; } /* We should see if somebody tried to change the na... |
String prefix = getEnv(form).getAppProperty("app.admingroupsidprefix"); | String prefix = form.getEnv().getAppProperty("admingroupsidprefix"); | private boolean validateNewAdminGroup(PEActionForm form) throws Throwable { boolean ok = true; CalSvcI svci = form.fetchSvci(); BwAdminGroup updAdminGroup = form.getUpdAdminGroup(); if (updAdminGroup == null) { // bogus call. return false; } updAdminGroup.setAccount(Util.checkNull(updAdmin... |
if (ent == null) { return false; } if ((authUser != null) && superUser) { return true; } if (debug) { String cname = ent.getClass().getName(); getLog().debug("Check access for object " + cname.substring(cname.lastIndexOf(".") + 1) + " with id " + ent.getId()); } char[] aclChars = getAclChars((BwShareableDbentity)en... | return checkAccess(ent, desiredAccess, nullForNoAccess).accessAllowed; | boolean accessible(BwShareableDbentity ent, int desiredAccess, boolean nullForNoAccess) throws CalFacadeException { if (ent == null) { return false; } if ((authUser != null) && superUser) { // Nobody can stop us - BWAAA HAA HAA return true; } if (debug) { String c... |
public void runTest() { testAT2JavaConversion(); | public void runTest() throws Exception { testBugfixOverloadedConstructor(); | public static void main(String[] args) { junit.swingui.TestRunner.run(TestEval.class); /*Test test= new SymbiosisTest() { public void runTest() { testAT2JavaConversion(); } }; junit.textui.TestRunner.run(test);*/ } |
WebdavNsIntf intf = getNsIntf(); | protected void processDoc(HttpServletRequest req, Document doc) throws WebdavException { try { WebdavNsIntf intf = getNsIntf(); Element root = doc.getDocumentElement(); if (!nodeMatches(root, CaldavTags.mkcalendar)) { throw new WebdavBadRequest(); } Collec... | |
Property prop = (Property)pit.next(); | Element prop = (Element)pit.next(); if (nodeMatches(prop, CaldavTags.calendarDescription)) { } | protected void processDoc(HttpServletRequest req, Document doc) throws WebdavException { try { WebdavNsIntf intf = getNsIntf(); Element root = doc.getDocumentElement(); if (!nodeMatches(root, CaldavTags.mkcalendar)) { throw new WebdavBadRequest(); } Collec... |
add(new IdeaView(subIdea)); | IdeaView subIdeaView = new IdeaView(subIdea, false); double maxAngle = getMaxSubAngle(); subIdeaView.setAngle((maxAngle + Math.PI) / 2.0); add(subIdeaView); | public void ideaChanged(IdeaEvent fe) { String cmd = fe.getCommand(); if ("ADDED".equals(cmd)) { Idea subIdea = (Idea)fe.getParas()[0]; add(new IdeaView(subIdea)); } else if ("REMOVED".equals(cmd)) { Idea subIdea = (Idea)fe.getParas()[0]; for (int i =... |
finished = readEntireDirectory(fileLoc, | finished = readEntireDirectory(file, | public static void main(String[] args) throws FissuresException, IOException, SeedFormatException, SQLException, NotFound { BasicConfigurator.configure(); Properties props = Initializer.loadProperties(args); ConnectionCreator connCreator = new ConnectionCreator(props); Connect... |
private static boolean readEntireDirectory(String baseDirectory, | private static boolean readEntireDirectory(File baseDirectory, | private static boolean readEntireDirectory(String baseDirectory, boolean verbose, Connection conn, NCFile ncFile, JDBCSeismogramFile... |
File[] files = new File(baseDirectory).listFiles(); | File[] files = baseDirectory.listFiles(); | private static boolean readEntireDirectory(String baseDirectory, boolean verbose, Connection conn, NCFile ncFile, JDBCSeismogramFile... |
readEntireDirectory(baseDirectory + files[i].getName() + "/", | readEntireDirectory(files[i], | private static boolean readEntireDirectory(String baseDirectory, boolean verbose, Connection conn, NCFile ncFile, JDBCSeismogramFile... |
setSelected(null); | public void undo() { if (undoManager != null) { undoManager.undo(); } } | |
globals.syspars = entity; | public void end(String ns, String name) throws Exception { BwSystem entity = (BwSystem)pop(); try { if (globals.rintf != null) { globals.rintf.restoreSyspars(entity); } } catch (Throwable t) { throw new Exception(t); } } | |
setDocument(new IdeaDocument()); | private void buildModel() { } | |
form.getErr().emit("org.bedework.client.error.missingcalendarid"); return null; | String calPath = request.getParameter("calPath"); if (calPath == null) { form.getErr().emit("org.bedework.client.error.missingcalendarpath"); return null; } cal = svci.getCalendar(calPath); } else { cal = svci.getCalendar(calId); | protected EventInfo findEvent(HttpServletRequest request, BwActionFormBase form) throws Throwable { CalSvcI svci = form.fetchSvci(); EventInfo ev = null; BwSubscription sub = null; int subid = getIntReqPar(request, "subid", -1); if (subid >= 0) { sub = svci.getSubscr... |
cal = svci.getCalendar(calId); | protected EventInfo findEvent(HttpServletRequest request, BwActionFormBase form) throws Throwable { CalSvcI svci = form.fetchSvci(); EventInfo ev = null; BwSubscription sub = null; int subid = getIntReqPar(request, "subid", -1); if (subid >= 0) { sub = svci.getSubscr... | |
access.checkAccess(val, privWrite, false); | access.checkAccess(val, privWriteProperties, false); val = (BwCalendar)getSess().merge(val); | public void updateCalendar(BwCalendar val) throws CalFacadeException { access.checkAccess(val, privWrite, false); getSess().update(val); } |
String reqpar = request.getParameter("adminGroupName"); | String reqpar = getReqPar(request, "adminGroupName"); | protected String checkGroup(HttpServletRequest request, BwActionFormBase form, boolean initCheck) throws Throwable { if (form.getGroupSet()) { return null; } CalSvcI svci = form.fetchSvci(); try { Groups adgrps = svci.getGroups(); if... |
try { ua = svci.getUserAuth(user, par); form.assignAuthorisedUser(ua.getUsertype() != UserAuth.noPrivileges); svci.setSuperUser((ua.getUsertype() & UserAuth.superUser) != 0); access = ua.getUsertype(); if (debug) { debugMsg("UserAuth says that current user has the type: " + ua.getUsertype()); | if (publicAdmin) { try { ua = svci.getUserAuth(user, par); form.assignAuthorisedUser(ua.getUsertype() != UserAuth.noPrivileges); svci.setSuperUser((ua.getUsertype() & UserAuth.superUser) != 0); access = ua.getUsertype(); if (debug) { debugMsg("UserAuth says that current user has the type: " + ua.getUsertype()); } }... | private boolean checkSvci(HttpServletRequest request, BwActionFormBase form, BwSession sess, int access, String user, boolean publicAdmin, boolean canSwitch... |
} catch (Throwable t) { form.getErr().emit("org.bedework.client.error.exc", t.getMessage()); form.getErr().emit(t); return false; | private boolean checkSvci(HttpServletRequest request, BwActionFormBase form, BwSession sess, int access, String user, boolean publicAdmin, boolean canSwitch... | |
if (ag != null) { adgrps.getMembers(ag); } | private String setGroup(HttpServletRequest request, BwActionFormBase form, Groups adgrps, String groupName) throws Throwable { if (groupName == null) { // We require a name return "chooseGroup"; } BwAdminGroup ag = (BwAdminG... | |
adgrps.addGroup(updgrp); | try { adgrps.addGroup(updgrp); } catch (CalFacadeException cfe) { if (CalFacadeException.duplicateAdminGroup.equals(cfe.getMessage())) { form.getErr().emit("org.bedework.error.duplicate.admingroup", updgrp.getAccount()); return "retry"; } else { throw cfe; } } form.assignAddingAdmingroup(false); | public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /* Check access */ if (!form.getUserAuth().isSuperUser()) { return "noAccess"; } String reqpar = request.getParameter("delete"); if (reqpar !... |
BwFilter filter = null; | private Collection getEvents(boolean alertEvent, PEActionForm form) throws Throwable { BwFilter filter = null; if (alertEvent) { /* XXX create a filter which filters on the appropriate field - or alternatively switch to a specific calendar. */ } BwDateTime fromDate = null; i... | |
return form.fetchSvci().getEvents(null, filter, fromDate, null, | BwCreatorFilter crefilter = new BwCreatorFilter(); crefilter.setCreator(form.fetchSvci().getUser()); return form.fetchSvci().getEvents(null, crefilter, fromDate, null, | private Collection getEvents(boolean alertEvent, PEActionForm form) throws Throwable { BwFilter filter = null; if (alertEvent) { /* XXX create a filter which filters on the appropriate field - or alternatively switch to a specific calendar. */ } BwDateTime fromDate = null; i... |
BranchView branch = (BranchView) getRootView().getViewFor(link.getTo()); | IdeaView toView = getRootView().getViewFor(link.getTo()); if (!(toView instanceof BranchView)) { return; } BranchView branch = (BranchView) toView; | private void initPoints() { IdeaLink link = getLink(); BranchView fromBranch = (BranchView) getRootView().getViewFor( link.getFrom()); BranchView branch = (BranchView) getRootView().getViewFor(link.getTo()); Point2D start0 = fromBranch.getFromPoint(); Point2D end0 =... |
earlierED.length, outED.length); | earlierED.length - 1, laterED.length); | public Object merge(Object one, Object two) { LocalSeismogramImpl seis = (LocalSeismogramImpl)one; LocalSeismogramImpl seis2 = (LocalSeismogramImpl)two; MicroSecondTimeRange fullRange = new MicroSecondTimeRange(toMSTR(seis), ... |
earlier.getNumPoints(), | earlier.getNumPoints() - 1, | public Object merge(Object one, Object two) { LocalSeismogramImpl seis = (LocalSeismogramImpl)one; LocalSeismogramImpl seis2 = (LocalSeismogramImpl)two; MicroSecondTimeRange fullRange = new MicroSecondTimeRange(toMSTR(seis), ... |
if (!random) { playNext(); } else { playRandom(); } | firePlaybackCompleted(player); | public void playbackCompleted() { if (!random) { playNext(); } else { playRandom(); } } |
firePlaybackStarted(player); | public void playbackStarted() { } | |
firePlaybackStopped(player); | public void playbackStopped() { } | |
public synchronized void playNext() { | public void playNext() { | public synchronized void playNext() { synchronized (this) { playingIndex++; if (playingIndex >= list.size()) { playingIndex %= list.size(); } } play(playingIndex); } |
public synchronized void playRandom() { | public void playRandom() { | public synchronized void playRandom() { synchronized (this) { if (list.size() == 0) { return; } else if (list.size() > 1) { int newIndex; do { newIndex = ((int)(Math.random() * list.size())) % list.size(); } while (newIndex == playingIndex); playingIndex = newIndex; } play(playingIndex); }... |
play(playingIndex); | public synchronized void playRandom() { synchronized (this) { if (list.size() == 0) { return; } else if (list.size() > 1) { int newIndex; do { newIndex = ((int)(Math.random() * list.size())) % list.size(); } while (newIndex == playingIndex); playingIndex = newIndex; } play(playingIndex); }... | |
play(playingIndex); | public synchronized void playRandom() { synchronized (this) { if (list.size() == 0) { return; } else if (list.size() > 1) { int newIndex; do { newIndex = ((int)(Math.random() * list.size())) % list.size(); } while (newIndex == playingIndex); playingIndex = newIndex; } play(playingIndex); }... | |
String url = getRequestUrl(ctx); ViewHandler viewHandler = getViewHandlerForUrl(url,ctx); if(viewHandler!=null){ return viewHandler; | ViewNode node = getViewManager().getViewNodeForContext(ctx); if(node!=null){ if(node.isJSP()){ return jspViewHandler; } else{ return node.getViewHandler(); } | private ViewHandler getViewHandlerForContext(FacesContext ctx) { String url = getRequestUrl(ctx); ViewHandler viewHandler = getViewHandlerForUrl(url,ctx); if(viewHandler!=null){ return viewHandler; } else{ if(getParentViewHandler()!=null){ return getParentViewHandler(); } else{ //return cre... |
else{ | private ViewHandler getViewHandlerForContext(FacesContext ctx) { String url = getRequestUrl(ctx); ViewHandler viewHandler = getViewHandlerForUrl(url,ctx); if(viewHandler!=null){ return viewHandler; } else{ if(getParentViewHandler()!=null){ return getParentViewHandler(); } else{ //return cre... | |
} | private ViewHandler getViewHandlerForContext(FacesContext ctx) { String url = getRequestUrl(ctx); ViewHandler viewHandler = getViewHandlerForUrl(url,ctx); if(viewHandler!=null){ return viewHandler; } else{ if(getParentViewHandler()!=null){ return getParentViewHandler(); } else{ //return cre... | |
this.jspViewHandler=new IWJspViewHandler(parentViewHandler); | public void setParentViewHandler(ViewHandler parentViewHandler) { this.parentViewHandler = parentViewHandler; } | |
} if (val.getOrganizer() != null) { sess.saveOrUpdate(val.getOrganizer()); | public void addEvent(BwEvent val, Collection overrides) throws CalFacadeException { RecuridTable recurids = null; HibSession sess = getSess(); if ((overrides != null) && (overrides.size() != 0)) { if (!val.getRecurring()) { throw new CalFacadeException("Master event not rec... | |
if (form.getEnv().getAppBoolProperty("app.categoryOptional")) { | if (form.getEnv().getAppBoolProperty("categoryOptional")) { | private boolean validateEventCategory(PEActionForm form, CalSvcI svci, BwEvent event, MessageEmit err) throws Throwable { int id = form.retrieveCategoryId().getVal(); if (id <= 0) { if (form.getEnv().getAppBoolProperty("app.categoryOptional")) { return... |
super(new URL[] { url }); | super(new URL[] { url }, ModuleLoader.class.getClassLoader()); | private ModuleLoader(URL url) { super(new URL[] { url }); this.url = url; } |
if (ideaView != null) { | if ((ideaView != null) && (ideaView.isEditing())) { | public void unEdit() { requestFocusInWindow(); IdeaView ideaView = getSelectedView(); if (ideaView != null) { ideaView.getIdea().setText(text.getText()); ideaView.setEditing(false); } text.select(0, 0); text.setEnabled(false); ticker.stop(); ... |
HibSession sess = getSess(); | BwCalSuite cs = fetchCalSuite(getSess(), name); | public BwCalSuiteWrapper getCalSuite(String name) throws CalFacadeException { HibSession sess = getSess(); sess.namedQuery("getCalSuite"); sess.setEntity("name", name); sess.cacheableQuery(); BwCalSuite cs = (BwCalSuite)sess.getUnique(); CurrentAccess ca = checkAccess(cs, PrivilegeDefs.privAny, fals... |
sess.namedQuery("getCalSuite"); sess.setEntity("name", name); sess.cacheableQuery(); BwCalSuite cs = (BwCalSuite)sess.getUnique(); | if (cs == null) { return null; } | public BwCalSuiteWrapper getCalSuite(String name) throws CalFacadeException { HibSession sess = getSess(); sess.namedQuery("getCalSuite"); sess.setEntity("name", name); sess.cacheableQuery(); BwCalSuite cs = (BwCalSuite)sess.getUnique(); CurrentAccess ca = checkAccess(cs, PrivilegeDefs.privAny, fals... |
return getMSLWrapper(new CreateStructuredActivityNode_3009Command(req)); | return getMSLWrapper(new StructuredActivityNode2CreateCommand(req)); | protected Command getCreateCommand(CreateElementRequest req) { if (UMLElementTypes.StructuredActivityNode_3009 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateStructuredAct... |
return getMSLWrapper(new CreateOpaqueAction_3011Command(req)); | return getMSLWrapper(new OpaqueAction2CreateCommand(req)); | protected Command getCreateCommand(CreateElementRequest req) { if (UMLElementTypes.StructuredActivityNode_3009 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateStructuredAct... |
return getMSLWrapper(new CreateAcceptEventAction_3012Command(req)); | return getMSLWrapper(new AcceptEventAction3CreateCommand(req)); | protected Command getCreateCommand(CreateElementRequest req) { if (UMLElementTypes.StructuredActivityNode_3009 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateStructuredAct... |
return getMSLWrapper(new CreateAcceptEventAction_3013Command(req)); | return getMSLWrapper(new AcceptEventAction4CreateCommand(req)); | protected Command getCreateCommand(CreateElementRequest req) { if (UMLElementTypes.StructuredActivityNode_3009 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateStructuredAct... |
return getMSLWrapper(new CreateActivityFinalNode_3014Command(req)); | return getMSLWrapper(new ActivityFinalNode2CreateCommand(req)); | protected Command getCreateCommand(CreateElementRequest req) { if (UMLElementTypes.StructuredActivityNode_3009 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateStructuredAct... |
return getMSLWrapper(new CreateDecisionNode_3015Command(req)); | return getMSLWrapper(new DecisionNode2CreateCommand(req)); | protected Command getCreateCommand(CreateElementRequest req) { if (UMLElementTypes.StructuredActivityNode_3009 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateStructuredAct... |
return getMSLWrapper(new CreateFlowFinalNode_3016Command(req)); | return getMSLWrapper(new FlowFinalNode2CreateCommand(req)); | protected Command getCreateCommand(CreateElementRequest req) { if (UMLElementTypes.StructuredActivityNode_3009 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateStructuredAct... |
return getMSLWrapper(new CreatePin_3017Command(req)); | return getMSLWrapper(new Pin2CreateCommand(req)); | protected Command getCreateCommand(CreateElementRequest req) { if (UMLElementTypes.StructuredActivityNode_3009 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateStructuredAct... |
return getMSLWrapper(new CreateCreateObjectAction_3018Command(req)); | return getMSLWrapper(new CreateObjectAction2CreateCommand(req)); | protected Command getCreateCommand(CreateElementRequest req) { if (UMLElementTypes.StructuredActivityNode_3009 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateStructuredAct... |
return getMSLWrapper(new CreateCallBehaviorAction_3019Command(req)); | return getMSLWrapper(new CallBehaviorAction2CreateCommand(req)); | protected Command getCreateCommand(CreateElementRequest req) { if (UMLElementTypes.StructuredActivityNode_3009 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateStructuredAct... |
return getMSLWrapper(new CreateCallOperationAction_3020Command(req)); | return getMSLWrapper(new CallOperationAction2CreateCommand(req)); | protected Command getCreateCommand(CreateElementRequest req) { if (UMLElementTypes.StructuredActivityNode_3009 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateStructuredAct... |
return getMSLWrapper(new CreateForkNode_3021Command(req)); | return getMSLWrapper(new ForkNode2CreateCommand(req)); | protected Command getCreateCommand(CreateElementRequest req) { if (UMLElementTypes.StructuredActivityNode_3009 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateStructuredAct... |
return getMSLWrapper(new CreateJoinNode_3022Command(req)); | return getMSLWrapper(new JoinNode2CreateCommand(req)); | protected Command getCreateCommand(CreateElementRequest req) { if (UMLElementTypes.StructuredActivityNode_3009 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateStructuredAct... |
return getMSLWrapper(new CreateAddStructuralFeatureValueAction_3023Command(req)); | return getMSLWrapper(new AddStructuralFeatureValueAction2CreateCommand(req)); | protected Command getCreateCommand(CreateElementRequest req) { if (UMLElementTypes.StructuredActivityNode_3009 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateStructuredAct... |
return getMSLWrapper(new CreateDataStoreNode_3024Command(req)); | return getMSLWrapper(new DataStoreNode2CreateCommand(req)); | protected Command getCreateCommand(CreateElementRequest req) { if (UMLElementTypes.StructuredActivityNode_3009 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateStructuredAct... |
return getMSLWrapper(new CreateCentralBufferNode_3025Command(req)); | return getMSLWrapper(new CentralBufferNode2CreateCommand(req)); | protected Command getCreateCommand(CreateElementRequest req) { if (UMLElementTypes.StructuredActivityNode_3009 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateStructuredAct... |
hour24, minIncrement, err, debug); | config.getHour24(), config.getMinIncrement(), err, debug); | public EventDates getEventDates() { if (eventDates == null) { eventDates = new EventDates(fetchSvci(), getCalInfo(), hour24, minIncrement, err, debug); } return eventDates; } |
public TPosAuthorisationEntriesBean findByAuthorisationIdRsp(java.lang.String p0)throws javax.ejb.FinderException{ | public TPosAuthorisationEntriesBean findByAuthorisationIdRsp(java.lang.String p0, IWTimestamp stamp)throws javax.ejb.FinderException{ | public TPosAuthorisationEntriesBean findByAuthorisationIdRsp(java.lang.String p0)throws javax.ejb.FinderException{ com.idega.data.IDOEntity entity = this.idoCheckOutPooledEntity(); Object pk = ((TPosAuthorisationEntriesBeanBMPBean)entity).ejbFindByAuthorisationIdRsp(p0); this.idoCheckInPooledEntity(entity); return this... |
Object pk = ((TPosAuthorisationEntriesBeanBMPBean)entity).ejbFindByAuthorisationIdRsp(p0); | Object pk = ((TPosAuthorisationEntriesBeanBMPBean)entity).ejbFindByAuthorisationIdRsp(p0, stamp); | public TPosAuthorisationEntriesBean findByAuthorisationIdRsp(java.lang.String p0)throws javax.ejb.FinderException{ com.idega.data.IDOEntity entity = this.idoCheckOutPooledEntity(); Object pk = ((TPosAuthorisationEntriesBeanBMPBean)entity).ejbFindByAuthorisationIdRsp(p0); this.idoCheckInPooledEntity(entity); return this... |
throw new XUndefinedField("field assignment", selector.getText().asNativeText().javaValue); | throw new XUndefinedField("field assignment", selector.base_getText().asNativeText().javaValue); | public ATNil meta_assignField(ATSymbol selector, ATObject value) throws NATException { throw new XUndefinedField("field assignment", selector.getText().asNativeText().javaValue); } |
new NATMethod(AGSymbol.alloc("defaultMethod"), NATTable.EMPTY, null) { | new NATMethod(AGSymbol.jAlloc("defaultMethod"), NATTable.EMPTY, null) { | public void setUp() throws Exception { original = new NATObject(); original.meta_addMethod( new NATMethod(AGSymbol.alloc("defaultMethod"), NATTable.EMPTY, null) { public ATObject base_apply(ATTable arguments, ATContext ctx) throws InterpreterException { throw new TestException("Application of this meth... |
new NATMethod(AGSymbol.alloc("addedMethod"), NATTable.EMPTY, null) { | new NATMethod(AGSymbol.jAlloc("addedMethod"), NATTable.EMPTY, null) { | public void testisCloneOf() throws Exception { ATObject clone = original.meta_clone(); original.meta_isCloneOf(clone).base_ifFalse_( new NativeClosure(clone) { public ATObject base_apply(ATTable arguments) throws InterpreterException { fail("Cloning is not properly defined under the isCloneOf test.")... |
clone.meta_invoke(clone, AGSymbol.alloc("addedMethod"), NATTable.EMPTY); | clone.meta_invoke(clone, AGSymbol.jAlloc("addedMethod"), NATTable.EMPTY); | public void testisCloneOf() throws Exception { ATObject clone = original.meta_clone(); original.meta_isCloneOf(clone).base_ifFalse_( new NativeClosure(clone) { public ATObject base_apply(ATTable arguments) throws InterpreterException { fail("Cloning is not properly defined under the isCloneOf test.")... |
current.add(i); | Idea i2 = new Idea("root"); i2.add(idea); idea = i2; stack.push(idea); idea.add(i); | public void startElement(String namespaceURI, String sName, // simple name (localName) String qName, // qualified name Attributes attrs) throws SAXException { if ("outline".equals(qName)) { if (attrs != null) { String text = attrs.getValue... |
access.accessible(parent, privWrite, false); | access.checkAccess(parent, privWrite, false); | public void addCalendar(BwCalendar val, BwCalendar parent) throws CalFacadeException { HibSession sess = getSess(); /* We need write access to the parent */ access.accessible(parent, privWrite, false); /** Is the parent a calendar collection? *//* sess.namedQuery("countCalendarEventRefs"); sess.... |
access.accessible(cal, privRead, false); | access.checkAccess(cal, privRead, false); | public BwCalendar getCalendar(int val) throws CalFacadeException { HibSession sess = getSess(); sess.namedQuery("getCalendarById"); sess.setInt("id", val); sess.cacheableQuery(); BwCalendar cal = (BwCalendar)sess.getUnique(); if (cal != null) { access.accessible(cal, privRead, false); } r... |
return access.checkAccess(sess.getList(), privWrite, noAccessReturnsNull); | return postGet(sess.getList(), privWrite); | public Collection getCalendarCollections() throws CalFacadeException { HibSession sess = getSess(); sess.namedQuery("getUserCalendarCollections"); sess.setEntity("owner", getUser()); sess.cacheableQuery(); return access.checkAccess(sess.getList(), privWrite, noAccessReturnsNull); } |
return access.checkAccess(sess.getList(), privWrite, true); | return postGet(sess.getList(), privWrite); | public Collection getPublicCalendarCollections() throws CalFacadeException { HibSession sess = getSess(); sess.namedQuery("getPublicCalendarCollections"); sess.cacheableQuery(); return access.checkAccess(sess.getList(), privWrite, true); } |
return org.eclipse.uml2.diagram.profile.part.UMLDiagramEditorPlugin.getInstance().getPreferenceStore(); | return UMLDiagramEditorPlugin.getInstance().getPreferenceStore(); | protected IPreferenceStore getPreferenceStore() { return org.eclipse.uml2.diagram.profile.part.UMLDiagramEditorPlugin.getInstance().getPreferenceStore(); } |
if(overSizedImage == null){ | if(overSizedImage == null || overSizedImage.get() == null){ | public void paint(Graphics g){ if(overSizedImage == null){ logger.debug("the image is null and is being recreated"); this.createOversizedImage(); } long endTime = timeConfig.getTimeRange().getEndTime().getMicroSecondTime(); long beginTime = timeConfig.getTimeRange().getBeginTime().getMicroSecondTime(... |
double offset = (beginTime - overBeginTime)/ (double)(overEndTime - overBeginTime) * overSize.getWidth(); AffineTransform tx; | public void paint(Graphics g){ if(overSizedImage == null){ logger.debug("the image is null and is being recreated"); this.createOversizedImage(); } long endTime = timeConfig.getTimeRange().getEndTime().getMicroSecondTime(); long beginTime = timeConfig.getTimeRange().getBeginTime().getMicroSecondTime(... | |
tx = AffineTransform.getTranslateInstance(-offset, 0.0); if(overSizedImage.get() == null) this.createOversizedImage(); | double offset = (beginTime - overBeginTime)/ (double)(overEndTime - overBeginTime) * overSize.getWidth(); AffineTransform tx = AffineTransform.getTranslateInstance(-offset, 0.0); | public void paint(Graphics g){ if(overSizedImage == null){ logger.debug("the image is null and is being recreated"); this.createOversizedImage(); } long endTime = timeConfig.getTimeRange().getEndTime().getMicroSecondTime(); long beginTime = timeConfig.getTimeRange().getBeginTime().getMicroSecondTime(... |
tx = AffineTransform.getTranslateInstance(-offset * scale, 0.0); | System.out.println(scale); double offset = (beginTime - overBeginTime)/ (double)(overEndTime - overBeginTime) * (overSize.getWidth() * scale); AffineTransform tx = AffineTransform.getTranslateInstance(-offset, 0.0); | public void paint(Graphics g){ if(overSizedImage == null){ logger.debug("the image is null and is being recreated"); this.createOversizedImage(); } long endTime = timeConfig.getTimeRange().getEndTime().getMicroSecondTime(); long beginTime = timeConfig.getTimeRange().getBeginTime().getMicroSecondTime(... |
this.createOversizedImage(); | public void paint(Graphics g){ if(overSizedImage == null){ logger.debug("the image is null and is being recreated"); this.createOversizedImage(); } long endTime = timeConfig.getTimeRange().getEndTime().getMicroSecondTime(); long beginTime = timeConfig.getTimeRange().getBeginTime().getMicroSecondTime(... | |
}else if(display != null){ | }else if(display == threeSelectionDisplay){ | public void removeSelectionDisplay(VerticalSeismogramDisplay display){ if(display == selectionDisplay){ removeSelectionDisplay(); }else if(display != null){ remove3CSelectionDisplay(); } } |
super.mousePressed(e); | public void mousePressed(MouseEvent e){ if (isActive()){ startXYCoords = new int[]{e.getX(), e.getY()}; } } | |
super.mouseReleased(e); | public void mouseReleased(MouseEvent e){ if (isActive()){ translate(e); } } | |
EventInfo ei = findEvent(request, form); if (ei == null) { return "doNothing"; } BwEvent ev = ei.getEvent(); form.setEditEvent(ev); String fwd = setEventCalendar(request, form, ev); if (fwd != null) { return fwd; } BwLocation loc = ev.getLocation(); if (debug) { if (loc == null) { debugMsg("Set event with null lo... | return refreshEvent(findEvent(request, form), request, form); | public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { // Just ignore this return "doNothing"; } String reqpar = request.getParameter("updateEvent"); if (reqpar != null) { return updateEvent(request, form); ... |
System.out.print("AdvancedPlayer.close()"); | System.out.println("AdvancedPlayer.close()"); | public MP3Player(File f) throws PlayerException { try { file = f; stream = new FileInputStream(file); player = new AdvancedPlayer(stream) { public void close() { System.out.print("AdvancedPlayer.close()"); super.close(); System.out.println(" done"); } }; } catch (Exception exc) { throw ne... |
System.out.print("AdvancedPlayer.close()"); | System.out.println("AdvancedPlayer.close()"); | public void close() { System.out.print("AdvancedPlayer.close()"); super.close(); System.out.println(" done"); } |
System.out.println("stop()"); | public synchronized void stop() { stopped = true; if (player != null) { System.out.println("stop()"); player.close(); player = null; } } | |
MicroSecondDate yesterday = now.subtract(new TimeInterval(5, UnitImpl.DAY)); TimeRange timeRange = new TimeRange(now.getFissuresTime(), yesterday.getFissuresTime()); | MicroSecondDate yesterday = now.subtract(new TimeInterval(7, UnitImpl.DAY)); TimeRange timeRange = new TimeRange(yesterday.getFissuresTime(), now.getFissuresTime()); | public static void main(String[] args) { /* Initializes the corba orb, finds the naming service and other startup * tasks. See AbstractClient for the code in this method. */ init(args); try { /** This step is not required, but sometimes helps to determine if * a ... |
magTypes[0] = "ALL"; | magTypes[0] = "%"; | public static void main(String[] args) { /* Initializes the corba orb, finds the naming service and other startup * tasks. See AbstractClient for the code in this method. */ init(args); try { /** This step is not required, but sometimes helps to determine if * a ... |
5.5f, | 5.0f, | public static void main(String[] args) { /* Initializes the corba orb, finds the naming service and other startup * tasks. See AbstractClient for the code in this method. */ init(args); try { /** This step is not required, but sometimes helps to determine if * a ... |
callMain(arg0.getFacesContext(),arg0.getFacesContext().getViewRoot()); | callMainOnRoot(arg0.getFacesContext(),arg0.getFacesContext().getViewRoot()); | public void afterPhase(PhaseEvent arg0) { callMain(arg0.getFacesContext(),arg0.getFacesContext().getViewRoot()); } |
protected void callMain(FacesContext context,UIViewRoot root){ log.fine("IWPhaseListener.callMain"); IWContext iwc = IWContext.getIWContext(context); call_Main(iwc,root); | protected void callMain(IWContext iwc,UIComponent comp){ if(comp!=null){ if(comp instanceof PresentationObject){ PresentationObject po = (PresentationObject)comp; try { po.callMain(iwc); } catch (Exception e) { e.printStackTrace(); } for (Iterator iter = po.getFacetsAndChildren(); iter.hasNext();) { UIComponent chil... | protected void callMain(FacesContext context,UIViewRoot root){ log.fine("IWPhaseListener.callMain"); IWContext iwc = IWContext.getIWContext(context); //recurseMain(iwc,root); call_Main(iwc,root); } |
for (Iterator iter = comp.getFacetsAndChildren(); iter.hasNext();) { UIComponent child = (UIComponent) iter.next(); call_Main(iwc,child); | try{ for (Iterator iter = comp.getFacetsAndChildren(); iter.hasNext();) { UIComponent child = (UIComponent) iter.next(); callMain(iwc,child); } } catch(Exception e){ e.printStackTrace(); | protected void findNextInstanceOfNotPresentationObject(IWContext iwc, UIComponent comp) { if(comp!=null){ if(comp instanceof PresentationObject){ //List children = comp.getChildren(); //for (Iterator iter = children.iterator(); iter.hasNext();) { for (Iterator iter = comp.getFacetsAndChildren(); iter.hasNe... |
public abstract void changeAccess(Object o, Collection aces) throws CalFacadeException; | public abstract void changeAccess(BwShareableDbentity ent, Collection aces) throws CalFacadeException; | public abstract void changeAccess(Object o, Collection aces) throws CalFacadeException; |
public abstract Collection getAces(Object o) throws CalFacadeException; | public abstract Collection getAces(BwShareableDbentity ent) throws CalFacadeException; | public abstract Collection getAces(Object o) throws CalFacadeException; |
hAmpConfigRegistrar.addAmpSyncListener(this); vAmpConfigRegistrar.addAmpSyncListener(this); | public ParticleMotionDisplay (LocalSeismogramImpl hSeis, LocalSeismogramImpl vSeis, TimeConfigRegistrar timeConfigRegistrar, AmpConfigRegistrar hAmpConfigRegistrar, AmpConfigRegistrar vAmpConfigRegistrar, Color color){ this.hAmpConfigRegistrar = hAmpConfigRegistrar; this.vAmpConfigRegistrar = vA... | |
public SeismogramShape (DataSetSeismogram seis, Color color, String name){ this.dss = seis; this.seis = seis.getSeismogram(); this.color = color; this.name = name; this.stat = new Statistics(this.seis); | public SeismogramShape(DataSetSeismogram seis, Color color){ this(seis, color, seis.toString()); | public SeismogramShape (DataSetSeismogram seis, Color color, String name){ this.dss = seis; this.seis = seis.getSeismogram(); this.color = color; this.name = name; this.stat = new Statistics(this.seis); } |
if(samplesPerPixel < 0){ plotAll = true; return null; } | private Shape setPlot(Graphics2D canvas, MicroSecondTimeRange time, UnitRangeImpl amp, Dimension size){ try{ if(!size.equals(plotSize) || !time.getInterval().equals(plotInterval) || amp.getMaxValue() != maxAmp || amp.getMinValue() != minAmp){ getEdgeValues(time, size); maxAmp = amp.getMaxValue(); minA... | |
if (seis.can_convert_to_short()) { short[] data = seis.get_as_shorts(); short[] out = new short[data.length]; out[0] = 0; for (int i=1; i<out.length; i++) { out[i] = (short)Math.round((data[i]+data[i-1])/2.0 * sampPeriod); } outSeis = new LocalSeismogramImpl(seis, out); } else if (seis.can_convert_to_long()) { int[] da... | if (seis.can_convert_to_short()) { short[] data = seis.get_as_shorts(); short[] out = new short[data.length]; float previous = 0; out[0] = (short)Math.round(previous); for (int i = 1; i < out.length; i++) { previous += data[i] * sampPeriod; out[i] = (short)Math.round(previous); } outSeis = new LocalSeismogramImpl(seis... | public static LocalSeismogramImpl integrate(LocalSeismogramImpl seis) throws FissuresException { SamplingImpl samp = seis.getSampling(); double sampPeriod = samp.getPeriod().convertTo(UnitImpl.SECOND).getValue(); LocalSeismogramImpl outSeis; TimeSeriesType dataType = seis.getDataType(); TimeS... |
if (pr != null) { return pr; } | private static Properties getPr() throws CalEnvException { if (pr != null) { return pr; } synchronized (lockit) { if (pr != null) { return pr; } /** Load properties file */ pr = new Properties(); InputStream is = null; try { try { // The jboss?? way -... | |
return getDefaultCalendar(); | return getPreferredCalendar(); | public BwCalendar getCalendar() throws Throwable { if (!isPublic) { return getDefaultCalendar(); } if (publicCal != null) { return publicCal; } String calName = "Test public calendar"; BwCalendar root = getPublicCalendars(); // See if we already created the test calendar earler publi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.