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(request, "delete") != null) { return unsubscribe(request, form); } BwSubscription sub = form.getSubscription(); CalSvcI svc = form.fetchSvci(); String viewName = getReqPar(request, "view"); boolean addToDefaultView = false; if (viewName == null) { addToDefaultView = true; String str = getReqPar(request, "addtodefaultview"); if (str != null) { addToDefaultView = str.equals("y"); } } Boolean bool = getBooleanReqPar(request, "unremovable"); if (bool != null) { if (!form.getUserAuth().isSuperUser()) { return "noAccess"; // Only super user for that flag } sub.setUnremoveable(bool.booleanValue()); } if (!validateSub(sub, form)) { return "retry"; } if (getReqPar(request, "addSubscription") != null) { try { svc.addSubscription(sub); } catch (CalFacadeException cfe) { if (CalFacadeException.duplicateSubscription.equals(cfe.getMessage())) { form.getErr().emit(cfe.getMessage()); return "success"; // User will see message and we'll stay on page } throw cfe; } } else if (getReqPar(request, "updateSubscription") != null) { svc.updateSubscription(sub); } else { } if ((viewName == null) && !addToDefaultView) { // We're done - not adding to a view return "success"; } if (sub != null) { svc.addViewSubscription(viewName, sub); } form.setSubscriptions(svc.getSubscriptions()); return "success"; }
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 name of the group */ updAdminGroup.setDescription(Util.checkNull(updAdminGroup.getDescription())); if (updAdminGroup.getDescription() == null) { form.getErr().emit("org.bedework.client.error.missingfield", "description"); ok = false; } String adminGroupGroupOwner = Util.checkNull(form.getAdminGroupGroupOwner()); if ((adminGroupGroupOwner != null) && (!adminGroupGroupOwner.equals(updAdminGroup.getGroupOwner().getAccount()))) { BwUser aggo = svci.findUser(adminGroupGroupOwner); if (aggo == null) { form.getErr().emit("org.bedework.client.error.usernotfound", adminGroupGroupOwner); return false; } updAdminGroup.setGroupOwner(aggo); } String adminGroupEventOwner = Util.checkNull(form.getAdminGroupEventOwner()); if (adminGroupEventOwner == null) { // no change return ok; } if (adminGroupEventOwner.equals(updAdminGroup.getOwner().getAccount())) { // no change return ok; } String prefix = getEnv(form).getAppProperty("app.admingroupsidprefix"); if (!adminGroupEventOwner.startsWith(prefix)) { adminGroupEventOwner = prefix + adminGroupEventOwner; } if (!adminGroupEventOwner.equals(updAdminGroup.getOwner().getAccount())) { BwUser ageo = svci.findUser(adminGroupEventOwner); if (ageo == null) { form.getErr().emit("org.bedework.client.error.usernotfound", adminGroupEventOwner); return false; } updAdminGroup.setOwner(ageo); } return ok; }
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(updAdminGroup.getAccount())); if (updAdminGroup.getAccount() == null) { form.getErr().emit("org.bedework.client.error.missingfield", "Name"); ok = false; } updAdminGroup.setDescription(Util.checkNull(updAdminGroup.getDescription())); if (updAdminGroup.getDescription() == null) { form.getErr().emit("org.bedework.client.error.missingfield", "description"); ok = false; } String adminGroupGroupOwner = Util.checkNull(form.getAdminGroupGroupOwner()); if (adminGroupGroupOwner == null) { form.getErr().emit("org.bedework.client.error.missingfield", "groupOwnerid"); ok = false; } else { updAdminGroup.setGroupOwner(getUser(svci, adminGroupGroupOwner)); } String adminGroupEventOwner = Util.checkNull(form.getAdminGroupEventOwner()); if (adminGroupEventOwner == null) { adminGroupEventOwner = updAdminGroup.getAccount(); } if (adminGroupEventOwner == null) { form.getErr().emit("org.bedework.client.error.missingfield", "eventOwnerid"); ok = false; } else { String prefix = getEnv(form).getAppProperty("app.admingroupsidprefix"); if (!adminGroupEventOwner.startsWith(prefix)) { adminGroupEventOwner = prefix + adminGroupEventOwner; } updAdminGroup.setOwner(getUser(svci, adminGroupEventOwner)); } return ok; }
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)ent); if (checkAccess(aclChars, ent.getOwner(), desiredAccess, nullForNoAccess)) { return true; } return false;
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 cname = ent.getClass().getName(); getLog().debug("Check access for object " + cname.substring(cname.lastIndexOf(".") + 1) + " with id " + ent.getId()); } char[] aclChars = getAclChars((BwShareableDbentity)ent); if (checkAccess(aclChars, ent.getOwner(), desiredAccess, nullForNoAccess)) { return true; } return false; }
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(); } Collection setRemoveList = processUpdate(root); Iterator it = setRemoveList.iterator(); while (it.hasNext()) { Collection sr = (Collection)it.next(); if (!(sr instanceof PropPatchMethod.PropertySetList)) { throw new WebdavBadRequest(); } Iterator pit = sr.iterator(); while (pit.hasNext()) { Property prop = (Property)pit.next(); } } } catch (WebdavException wde) { throw wde; } catch (Throwable t) { System.err.println(t.getMessage()); if (debug) { t.printStackTrace(); } throw new WebdavException(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); } }
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(); } Collection setRemoveList = processUpdate(root); Iterator it = setRemoveList.iterator(); while (it.hasNext()) { Collection sr = (Collection)it.next(); if (!(sr instanceof PropPatchMethod.PropertySetList)) { throw new WebdavBadRequest(); } Iterator pit = sr.iterator(); while (pit.hasNext()) { Property prop = (Property)pit.next(); } } } catch (WebdavException wde) { throw wde; } catch (Throwable t) { System.err.println(t.getMessage()); if (debug) { t.printStackTrace(); } throw new WebdavException(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); } }
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 = 0; i < subViews.size(); i++) { Idea idea = (Idea)subViews.get(i).getIdea(); if (idea.equals(subIdea)) { subViews.remove(i); break; } } } }
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); Connection conn = connCreator.createConnection(); JDBCSeismogramFiles jdbcSeisFile = new JDBCSeismogramFiles(conn); JDBCChannel chanTable = new JDBCChannel(conn); JDBCTime timeTable = new JDBCTime(conn); boolean verbose = false; boolean finished = false; boolean batch = false; NCFile ncFile = null; for(int i = 1; i < args.length; i++) { if(args[i].equals("-v")) { verbose = true; System.out.println(); System.out.println("/---------------Database Populator---"); System.out.println(); System.out.println("Verbose messages: ON"); } } for(int i = 1; i < args.length - 1; i++) { if(args[i].equals("-nc")) { String ncFileLocation = args[i + 1]; ncFile = new NCFile(ncFileLocation); if(verbose) { File file = new File(ncFileLocation); System.out.println("NC file location: " + file.getCanonicalPath()); } } } for(int i = 1; i < args.length - 1; i++) { if(verbose) { if(args[i].equals("-props")) { String propFileLocation = args[i + 1]; File file = new File(propFileLocation); System.out.println("Properties file location: " + file.getCanonicalPath()); } } } for(int i = 1; i < args.length - 1; i++) { if(verbose) { if(args[i].equals("-hsql")) { String hsqlFileLocation = args[i + 1]; File file = new File(hsqlFileLocation); System.out.println("HSQL properties file location: " + file.getCanonicalPath()); } } } for(int i = 1; i < args.length; i++) { if(args[i].equals("-rt")) { batch = true; if(verbose) { System.out.println("Batch process of RT130 data: ON"); } } } if(verbose) { System.out.println(); System.out.println("\\------------------------------------"); System.out.println(); } if(args.length > 0) { String fileLoc = args[args.length - 1]; File file = new File(fileLoc); if(file.isDirectory()) { finished = readEntireDirectory(fileLoc, verbose, conn, ncFile, jdbcSeisFile, chanTable, timeTable, props, batch); } else { finished = readSingleFile(fileLoc, verbose, conn, ncFile, jdbcSeisFile, chanTable, timeTable, props, batch); } } else { printHelp(); } if(finished) { System.out.println(); System.out.println("Database population complete."); System.out.println(); } else { printHelp(); } }
private static boolean readEntireDirectory(String baseDirectory,
private static boolean readEntireDirectory(File baseDirectory,
private static boolean readEntireDirectory(String baseDirectory, boolean verbose, Connection conn, NCFile ncFile, JDBCSeismogramFiles jdbcSeisFile, JDBCChannel chanTable, JDBCTime timeTable, Properties props, boolean batch) throws FissuresException, IOException, SeedFormatException, SQLException, NotFound { File[] files = new File(baseDirectory).listFiles(); if (files == null) { throw new IOException("Unable to get listing of directory: "+baseDirectory); } for(int i = 0; i < files.length; i++) { if(files[i].isDirectory()) { readEntireDirectory(baseDirectory + files[i].getName() + "/", verbose, conn, ncFile, jdbcSeisFile, chanTable, timeTable, props, batch); } else { readSingleFile(files[i].getCanonicalPath(), verbose, conn, ncFile, jdbcSeisFile, chanTable, timeTable, props, batch); } } return true; }
File[] files = new File(baseDirectory).listFiles();
File[] files = baseDirectory.listFiles();
private static boolean readEntireDirectory(String baseDirectory, boolean verbose, Connection conn, NCFile ncFile, JDBCSeismogramFiles jdbcSeisFile, JDBCChannel chanTable, JDBCTime timeTable, Properties props, boolean batch) throws FissuresException, IOException, SeedFormatException, SQLException, NotFound { File[] files = new File(baseDirectory).listFiles(); if (files == null) { throw new IOException("Unable to get listing of directory: "+baseDirectory); } for(int i = 0; i < files.length; i++) { if(files[i].isDirectory()) { readEntireDirectory(baseDirectory + files[i].getName() + "/", verbose, conn, ncFile, jdbcSeisFile, chanTable, timeTable, props, batch); } else { readSingleFile(files[i].getCanonicalPath(), verbose, conn, ncFile, jdbcSeisFile, chanTable, timeTable, props, batch); } } return true; }
readEntireDirectory(baseDirectory + files[i].getName() + "/",
readEntireDirectory(files[i],
private static boolean readEntireDirectory(String baseDirectory, boolean verbose, Connection conn, NCFile ncFile, JDBCSeismogramFiles jdbcSeisFile, JDBCChannel chanTable, JDBCTime timeTable, Properties props, boolean batch) throws FissuresException, IOException, SeedFormatException, SQLException, NotFound { File[] files = new File(baseDirectory).listFiles(); if (files == null) { throw new IOException("Unable to get listing of directory: "+baseDirectory); } for(int i = 0; i < files.length; i++) { if(files[i].isDirectory()) { readEntireDirectory(baseDirectory + files[i].getName() + "/", verbose, conn, ncFile, jdbcSeisFile, chanTable, timeTable, props, batch); } else { readSingleFile(files[i].getCanonicalPath(), verbose, conn, ncFile, jdbcSeisFile, chanTable, timeTable, props, batch); } } return true; }
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.getSubscription(subid); if (sub == null) { form.getErr().emit("org.bedework.client.error.missingsubscriptionid"); return null; } } int calId = getIntReqPar(request, "calid", -1); BwCalendar cal = null; if (calId < 0) { form.getErr().emit("org.bedework.client.error.missingcalendarid"); return null; } cal = svci.getCalendar(calId); if (cal == null) { // Assume no access form.getErr().emit("org.bedework.client.error.noaccess"); return null; } String guid = getReqPar(request, "guid"); if (guid != null) { if (debug) { debugMsg("Get event by guid"); } String rid = getReqPar(request, "recurrenceId"); int retMethod = CalFacadeDefs.retrieveRecurMaster; Collection evs = svci.getEvent(sub, cal, guid, rid, retMethod); if (debug) { debugMsg("Get event by guid found " + evs.size()); } if (evs.size() == 1) { ev = (EventInfo)evs.iterator().next(); } else { // XXX this needs dealing with } } if (ev == null) { form.getErr().emit("org.bedework.client.error.nosuchevent", /*eid*/guid); return null; } else if (debug) { debugMsg("Get event by guid found " + ev.getEvent()); } return ev; }
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.getSubscription(subid); if (sub == null) { form.getErr().emit("org.bedework.client.error.missingsubscriptionid"); return null; } } int calId = getIntReqPar(request, "calid", -1); BwCalendar cal = null; if (calId < 0) { form.getErr().emit("org.bedework.client.error.missingcalendarid"); return null; } cal = svci.getCalendar(calId); if (cal == null) { // Assume no access form.getErr().emit("org.bedework.client.error.noaccess"); return null; } String guid = getReqPar(request, "guid"); if (guid != null) { if (debug) { debugMsg("Get event by guid"); } String rid = getReqPar(request, "recurrenceId"); int retMethod = CalFacadeDefs.retrieveRecurMaster; Collection evs = svci.getEvent(sub, cal, guid, rid, retMethod); if (debug) { debugMsg("Get event by guid found " + evs.size()); } if (evs.size() == 1) { ev = (EventInfo)evs.iterator().next(); } else { // XXX this needs dealing with } } if (ev == null) { form.getErr().emit("org.bedework.client.error.nosuchevent", /*eid*/guid); return null; } else if (debug) { debugMsg("Get event by guid found " + ev.getEvent()); } return ev; }
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 (form.retrieveChoosingGroup()) { /** This should be the response to presenting a list of groups. We handle it here rather than in a separate action to ensure our client is not trying to bypass the group setting. */ String reqpar = request.getParameter("adminGroupName"); if (reqpar == null) { // Make them do it again. return "chooseGroup"; } return setGroup(request, form, adgrps, reqpar); } /** If the user is in no group or in one group we just go with that, otherwise we ask them to select the group */ Collection adgs; BwUser user = svci.findUser(form.getCurrentUser()); if (user == null) { return "noAccess"; } if (initCheck || !form.getUserAuth().isSuperUser()) { // Always restrict to groups we're a member of adgs = adgrps.getGroups(user); } else { adgs = adgrps.getAll(false); } if (adgs.isEmpty()) { /** If we require that all users be in a group we return to an error page. The only exception will be superUser. */ boolean noGroupAllowed = form.getEnv().getAppBoolProperty("nogroupallowed"); if (form.getUserAuth().isSuperUser() || noGroupAllowed) { form.assignAdminGroup(null); return null; } return "noGroupAssigned"; } if (adgs.size() == 1) { Iterator adgsit = adgs.iterator(); BwAdminGroup adg = (BwAdminGroup)adgsit.next(); form.assignAdminGroup(adg); String s = setAdminUser(request, form, adg.getOwner().getAccount(), true); if (s != null) { return s; } form.setAdminUserId(svci.getUser().getAccount()); return null; } /** Go ahead and present the possible groups */ form.setUserAdminGroups(adgs); form.assignChoosingGroup(true); // reset return "chooseGroup"; } catch (Throwable t) { form.getErr().emit(t); return "error"; } }
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()); } } 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, boolean debug) throws CalFacadeException { /** Do some checks first */ String authUser = String.valueOf(form.getCurrentUser()); if (!publicAdmin) { /* We're never allowed to switch identity as a user client. */ if (!authUser.equals(String.valueOf(user))) { return false; } } else if (user == null) { throw new CalFacadeException("Null user parameter for public admin."); } CalSvcI svci = BwWebUtil.getCalSvcI(request); /** Make some checks to see if this is an old - restarted session. If so discard the svc interface */ if (svci != null) { if (!svci.isOpen()) { svci = null; info(".Svci interface discarded from old session"); } } if (svci != null) { /* Already there and already opened */ if (debug) { debugMsg("CalSvcI-- Obtained from session for user " + svci.getUser()); } // XXX access - disable use of roles access = svci.getUserAuth().getUsertype(); } else { if (debug) { debugMsg(".CalSvcI-- get new object for user " + user); } /* create a call back object so the filter can open the service interface */ BwCallback cb = new Callback(form); HttpSession hsess = request.getSession(); hsess.setAttribute(BwCallback.cbAttrName, cb); String runAsUser = user; try { svci = new CalSvc(); if (publicAdmin || (user == null)) { runAsUser = form.getEnv().getAppProperty("run.as.user"); } CalSvcIPars pars = new CalSvcIPars(user, //access, runAsUser, form.getEnv().getAppPrefix(), publicAdmin, false, // caldav null, // synchId debug); svci.init(pars); BwWebUtil.setCalSvcI(request, svci); form.setCalSvcI(svci); cb.in(true); UserAuth ua = null; UserAuthPar par = new UserAuthPar(); par.svlt = servlet; par.req = request; try { ua = svci.getUserAuth(user, par); form.assignAuthorisedUser(ua.getUsertype() != UserAuth.noPrivileges); svci.setSuperUser((ua.getUsertype() & UserAuth.superUser) != 0); // XXX access - disable use of roles access = ua.getUsertype(); if (debug) { debugMsg("UserAuth says that current user has the type: " + ua.getUsertype()); } } catch (Throwable t) { form.getErr().emit("org.bedework.client.error.exc", t.getMessage()); form.getErr().emit(t); return false; } } catch (CalFacadeException cfe) { throw cfe; } catch (Throwable t) { throw new CalFacadeException(t); } } form.assignUserVO((BwUser)svci.getUser().clone()); if (publicAdmin) { canSwitch = canSwitch || ((access & UserAuth.contentAdminUser) != 0) || ((access & UserAuth.superUser) != 0); BwUser u = svci.getUser(); if (u == null) { throw new CalFacadeException("Null user for public admin."); } String curUser = u.getAccount(); if (!canSwitch && !user.equals(curUser)) { /** Trying to switch but not allowed */ return false; } if (!user.equals(curUser)) { /** Switching user */ svci.setUser(user); curUser = user; } form.assignCurrentAdminUser(curUser); } return true; }
} 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, boolean debug) throws CalFacadeException { /** Do some checks first */ String authUser = String.valueOf(form.getCurrentUser()); if (!publicAdmin) { /* We're never allowed to switch identity as a user client. */ if (!authUser.equals(String.valueOf(user))) { return false; } } else if (user == null) { throw new CalFacadeException("Null user parameter for public admin."); } CalSvcI svci = BwWebUtil.getCalSvcI(request); /** Make some checks to see if this is an old - restarted session. If so discard the svc interface */ if (svci != null) { if (!svci.isOpen()) { svci = null; info(".Svci interface discarded from old session"); } } if (svci != null) { /* Already there and already opened */ if (debug) { debugMsg("CalSvcI-- Obtained from session for user " + svci.getUser()); } // XXX access - disable use of roles access = svci.getUserAuth().getUsertype(); } else { if (debug) { debugMsg(".CalSvcI-- get new object for user " + user); } /* create a call back object so the filter can open the service interface */ BwCallback cb = new Callback(form); HttpSession hsess = request.getSession(); hsess.setAttribute(BwCallback.cbAttrName, cb); String runAsUser = user; try { svci = new CalSvc(); if (publicAdmin || (user == null)) { runAsUser = form.getEnv().getAppProperty("run.as.user"); } CalSvcIPars pars = new CalSvcIPars(user, //access, runAsUser, form.getEnv().getAppPrefix(), publicAdmin, false, // caldav null, // synchId debug); svci.init(pars); BwWebUtil.setCalSvcI(request, svci); form.setCalSvcI(svci); cb.in(true); UserAuth ua = null; UserAuthPar par = new UserAuthPar(); par.svlt = servlet; par.req = request; try { ua = svci.getUserAuth(user, par); form.assignAuthorisedUser(ua.getUsertype() != UserAuth.noPrivileges); svci.setSuperUser((ua.getUsertype() & UserAuth.superUser) != 0); // XXX access - disable use of roles access = ua.getUsertype(); if (debug) { debugMsg("UserAuth says that current user has the type: " + ua.getUsertype()); } } catch (Throwable t) { form.getErr().emit("org.bedework.client.error.exc", t.getMessage()); form.getErr().emit(t); return false; } } catch (CalFacadeException cfe) { throw cfe; } catch (Throwable t) { throw new CalFacadeException(t); } } form.assignUserVO((BwUser)svci.getUser().clone()); if (publicAdmin) { canSwitch = canSwitch || ((access & UserAuth.contentAdminUser) != 0) || ((access & UserAuth.superUser) != 0); BwUser u = svci.getUser(); if (u == null) { throw new CalFacadeException("Null user for public admin."); } String curUser = u.getAccount(); if (!canSwitch && !user.equals(curUser)) { /** Trying to switch but not allowed */ return false; } if (!user.equals(curUser)) { /** Switching user */ svci.setUser(user); curUser = user; } form.assignCurrentAdminUser(curUser); } return true; }
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 = (BwAdminGroup)adgrps.findGroup(groupName); if (debug) { if (ag == null) { logIt("No user admin group with name " + groupName); } else { logIt("Retrieved user admin group " + ag.getAccount()); } } form.assignAdminGroup(ag); String s = setAdminUser(request, form, ag.getOwner().getAccount(), isMember(ag, form)); if (s != null) { return s; } form.setAdminUserId(form.fetchSvci().getUser().getAccount()); return null; }
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 != null) { return "delete"; } Groups adgrps = form.fetchSvci().getGroups(); form.assignChoosingGroup(false); // reset boolean add = form.getAddingAdmingroup(); BwAdminGroup updgrp = form.getUpdAdminGroup(); if (updgrp == null) { // That's not right return "done"; } CalSvcI svci = form.fetchSvci(); if (request.getParameter("addGroupMember") != null) { /** Add a user to the group we are updating. */ String mbr = form.getUpdGroupMember(); if (mbr != null) { BwUser u = svci.findUser(mbr); if (u == null) { u = new BwUser(mbr); svci.addUser(u); u = svci.findUser(mbr); } /* Ensure the authorised user exists - create an entry if not * * @param val BwUser account */ UserAuth uauth = svci.getUserAuth(); BwAuthUser au = uauth.getUser(u.getAccount()); if ((au != null) && (au.getUsertype() == UserAuth.noPrivileges)) { return "notAllowed"; } if (au == null) { au = new BwAuthUser(u, UserAuth.publicEventUser); uauth.updateUser(au); } adgrps.addMember(updgrp, u); updgrp.addGroupMember(u); } } else if (getReqPar(request, "removeGroupMember") != null) { /** Remove a user from the group we are updating. */ String mbr = getReqPar(request, "removeGroupMember"); BwUser u = form.fetchSvci().findUser(mbr); if (u != null) { adgrps.removeMember(updgrp, u); updgrp.removeGroupMember(u); } } else if (add) { if (!validateNewAdminGroup(form)) { return "retry"; } adgrps.addGroup(updgrp); } else { if (!validateAdminGroup(form)) { return "retry"; } if (debug) { debugMsg("About to update " + updgrp); } adgrps.updateGroup(updgrp); } /** Refetch the group * / updgrp = (BwAdminGroup)adgrps.findGroup(updgrp.getAccount()); adgrps.getMembers(updgrp); form.setUpdAdminGroup(updgrp); */ form.getMsg().emit("org.bedework.client.message.admingroup.updated"); return "continue"; }
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; if (!form.getListAllEvents()) { fromDate = todaysDateTime(form); } return form.fetchSvci().getEvents(null, filter, fromDate, null, CalFacadeDefs.retrieveRecurExpanded); }
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; if (!form.getListAllEvents()) { fromDate = todaysDateTime(form); } return form.fetchSvci().getEvents(null, filter, fromDate, null, CalFacadeDefs.retrieveRecurExpanded); }
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 = fromBranch.getToPoint(); Point2D start1 = branch.getFromPoint(); Point2D end1 = branch.getEndPoint(); if ((start1 != null) && (end1 != null) && (start0 != null) && (end0 != null)) { Point[] p = new Point[4]; Point s0 = intPoint(start0); Point s1 = intPoint(start1); Point e0 = intPoint(end0); Point e1 = intPoint(end1); Point v0 = minus(s0, e0); Point v1 = minus(s1, e1); Point n0 = normal(v0); Point n1 = normal(v1); p[0] = mid(s0, e0); p[3] = mid(s1, e1); p[1] = plus(p[0], n0); if (dot(minus(s0, p[1]), n0) * dot(minus(s0, s1), n0) < 0) { p[1] = minus(p[0], n0); } p[2] = plus(p[3], n1); if (dot(minus(s1, p[2]), n1) * dot(minus(s1, s0), n1) < 0) { p[2] = minus(p[3], n1); } createBezier(p); } }
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), toMSTR(seis2)); logger.debug("Merging " + toMSTR(seis) + " and " + toMSTR(seis2)+ " into " + fullRange); if(fullRange.equals(toMSTR(seis))) { return seis; } LocalSeismogramImpl earlier = seis; LocalSeismogramImpl later = seis2; if(seis2.getBeginTime().before(seis.getBeginTime())) { earlier = seis2; later = seis; } try { if(seis.is_encoded()) { EncodedData[] earlierED = earlier.get_as_encoded(); EncodedData[] laterED = later.get_as_encoded(); EncodedData[] outED = new EncodedData[earlierED.length + laterED.length]; System.arraycopy(earlierED, 0, outED, 0, earlierED.length); System.arraycopy(laterED, 0, outED, earlierED.length, outED.length); TimeSeriesDataSel td = new TimeSeriesDataSel(); td.encoded_values(outED); return new LocalSeismogramImpl(earlier, td); } int numPoints = seis.getNumPoints() + seis2.getNumPoints(); if(seis.can_convert_to_short()) { short[] outS = new short[numPoints]; System.arraycopy(earlier.get_as_shorts(), 0, outS, 0, earlier.getNumPoints()); System.arraycopy(later.get_as_shorts(), 0, outS, earlier.getNumPoints(), later.getNumPoints()); return new LocalSeismogramImpl(earlier, outS); } else if(seis.can_convert_to_long()) { int[] outI = new int[numPoints]; System.arraycopy(earlier.get_as_longs(), 0, outI, 0, earlier.getNumPoints()); System.arraycopy(later.get_as_longs(), 0, outI, earlier.getNumPoints(), later.getNumPoints()); return new LocalSeismogramImpl(earlier, outI); } else if(seis.can_convert_to_float()) { float[] outF = new float[numPoints]; System.arraycopy(earlier.get_as_floats(), 0, outF, 0, earlier.getNumPoints()); System.arraycopy(later.get_as_floats(), 0, outF, earlier.getNumPoints(), later.getNumPoints()); return new LocalSeismogramImpl(earlier, outF); } else { double[] outD = new double[numPoints]; System.arraycopy(earlier.get_as_doubles(), 0, outD, 0, earlier.getNumPoints()); System.arraycopy(later.get_as_doubles(), 0, outD, earlier.getNumPoints(), later.getNumPoints()); return new LocalSeismogramImpl(earlier, outD); } } catch(FissuresException e) { throw new RuntimeException(e); } }
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), toMSTR(seis2)); logger.debug("Merging " + toMSTR(seis) + " and " + toMSTR(seis2)+ " into " + fullRange); if(fullRange.equals(toMSTR(seis))) { return seis; } LocalSeismogramImpl earlier = seis; LocalSeismogramImpl later = seis2; if(seis2.getBeginTime().before(seis.getBeginTime())) { earlier = seis2; later = seis; } try { if(seis.is_encoded()) { EncodedData[] earlierED = earlier.get_as_encoded(); EncodedData[] laterED = later.get_as_encoded(); EncodedData[] outED = new EncodedData[earlierED.length + laterED.length]; System.arraycopy(earlierED, 0, outED, 0, earlierED.length); System.arraycopy(laterED, 0, outED, earlierED.length, outED.length); TimeSeriesDataSel td = new TimeSeriesDataSel(); td.encoded_values(outED); return new LocalSeismogramImpl(earlier, td); } int numPoints = seis.getNumPoints() + seis2.getNumPoints(); if(seis.can_convert_to_short()) { short[] outS = new short[numPoints]; System.arraycopy(earlier.get_as_shorts(), 0, outS, 0, earlier.getNumPoints()); System.arraycopy(later.get_as_shorts(), 0, outS, earlier.getNumPoints(), later.getNumPoints()); return new LocalSeismogramImpl(earlier, outS); } else if(seis.can_convert_to_long()) { int[] outI = new int[numPoints]; System.arraycopy(earlier.get_as_longs(), 0, outI, 0, earlier.getNumPoints()); System.arraycopy(later.get_as_longs(), 0, outI, earlier.getNumPoints(), later.getNumPoints()); return new LocalSeismogramImpl(earlier, outI); } else if(seis.can_convert_to_float()) { float[] outF = new float[numPoints]; System.arraycopy(earlier.get_as_floats(), 0, outF, 0, earlier.getNumPoints()); System.arraycopy(later.get_as_floats(), 0, outF, earlier.getNumPoints(), later.getNumPoints()); return new LocalSeismogramImpl(earlier, outF); } else { double[] outD = new double[numPoints]; System.arraycopy(earlier.get_as_doubles(), 0, outD, 0, earlier.getNumPoints()); System.arraycopy(later.get_as_doubles(), 0, outD, earlier.getNumPoints(), later.getNumPoints()); return new LocalSeismogramImpl(earlier, outD); } } catch(FissuresException e) { throw new RuntimeException(e); } }
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 createView(ctx,vewId); throw new RuntimeException ("No parent ViewHandler"); } } //return viewHandler; }
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 createView(ctx,vewId); throw new RuntimeException ("No parent ViewHandler"); } } //return viewHandler; }
}
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 createView(ctx,vewId); throw new RuntimeException ("No parent ViewHandler"); } } //return viewHandler; }
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 recurring"); } recurids = new RecuridTable(overrides); } assignGuid(val); /* The guid must not exist in the same calendar. The above call assigns a guid if * one wasn't assigned already. However, the event may have come with a guid * (caldav, import, etc) so we need to check here. * * It also ensures our guid allocation is working OK */ sess.namedQuery("getGuidCountCalendar"); sess.setEntity("cal", val.getCalendar()); sess.setString("guid", val.getGuid()); Collection refs = sess.getList(); Integer ct = (Integer)refs.iterator().next(); if (ct.intValue() > 0) { throw new CalFacadeException(CalFacadeException.duplicateGuid); } sess.save(val); /** If it's a recurring event see what we can do to optimise searching * and retrieval */ if (!val.getRecurring()) { return; } /* Try to create a set of occurrences for the event We'll turn it into a VEvent to use the ical4j code. */ VEvent vev = VEventUtil.toIcalEvent(val, null); /* Determine the absolute latest date. */ Date latest = VEventUtil.getLatestRecurrenceDate(vev, debug); if (latest == null) { /* Unlimited recurrences. No more to do here * We could optionally choose to limit these to say 3 years */ return; } CalTimezones tzs = cal.getTimezones(); DtStart vstart = vev.getStartDate(); String stzid = CalFacadeUtil.getTzid(vstart); TimeZone stz = null; if (stzid != null) { stz = tzs.getTimeZone(stzid); } val.getRecurrence().setLatestDate(tzs.getUtc(latest.toString(), stzid, stz)); /* Get all the times for this event. - this could be a problem. Need to limit the number. Should we do this in chunks, stepping through the whole period? */ Date start = vev.getStartDate().getDate(); PeriodList pl = vev.getConsumedTime(start, latest); Iterator it = pl.iterator(); boolean dateOnly = val.getDtstart().getDateType(); while (it.hasNext()) { Period p = (Period)it.next(); BwDateTime rstart = new BwDateTime(); rstart.init(dateOnly, p.getStart().toString(), stzid, tzs); BwDateTime rend = new BwDateTime(); rend.init(dateOnly, p.getEnd().toString(), stzid, tzs); BwRecurrenceInstance ri = new BwRecurrenceInstance(); ri.setDtstart(rstart); ri.setDtend(rend); ri.setRecurrenceId(ri.getDtstart().getDate()); ri.setMaster(val); if (recurids != null) { /* See if we have a recurrence */ String rid = ri.getRecurrenceId(); BwEventProxy ov = (BwEventProxy)recurids.get(rid); if (ov != null) { if (debug) { debugMsg("Add override with recurid " + rid); } addOverride(ov, ri); recurids.remove(rid); } } sess.save(ri); } if (recurids != null) { if (recurids.size() != 0) { throw new CalFacadeException("Invalid override"); } } val.getRecurrence().setExpanded(true); sess.saveOrUpdate(val); }
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 true; } err.emit("org.bedework.client.error.missingfield", "Category"); return false; } try { BwCategory cat = svci.getCategory(id); if (cat == null) { err.emit("org.bedework.client.error.missingcategory", id); return false; } if (!form.retrieveCategoryId().getChanged()) { return true; }// oldCategory = getEvent().getCategory(0); /* Currently we replace the only category if it exists */ event.clearCategories(); event.addCategory(cat); form.setCategory(cat); return true; } catch (Throwable t) { err.emit(t); return false; } }
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(); repaint(); }
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, false); return new BwCalSuiteWrapper(cs, ca); }
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, false); return new BwCalSuiteWrapper(cs, ca); }
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 CreateStructuredActivityNode_3009Command(req)); } if (UMLElementTypes.OpaqueAction_3011 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateOpaqueAction_3011Command(req)); } if (UMLElementTypes.AcceptEventAction_3012 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAcceptEventAction_3012Command(req)); } if (UMLElementTypes.AcceptEventAction_3013 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAcceptEventAction_3013Command(req)); } if (UMLElementTypes.ActivityFinalNode_3014 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateActivityFinalNode_3014Command(req)); } if (UMLElementTypes.DecisionNode_3015 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateDecisionNode_3015Command(req)); } if (UMLElementTypes.FlowFinalNode_3016 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateFlowFinalNode_3016Command(req)); } if (UMLElementTypes.Pin_3017 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreatePin_3017Command(req)); } if (UMLElementTypes.CreateObjectAction_3018 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCreateObjectAction_3018Command(req)); } if (UMLElementTypes.CallBehaviorAction_3019 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCallBehaviorAction_3019Command(req)); } if (UMLElementTypes.CallOperationAction_3020 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCallOperationAction_3020Command(req)); } if (UMLElementTypes.ForkNode_3021 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateForkNode_3021Command(req)); } if (UMLElementTypes.JoinNode_3022 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateJoinNode_3022Command(req)); } if (UMLElementTypes.AddStructuralFeatureValueAction_3023 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAddStructuralFeatureValueAction_3023Command(req)); } if (UMLElementTypes.DataStoreNode_3024 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateDataStoreNode_3024Command(req)); } if (UMLElementTypes.CentralBufferNode_3025 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCentralBufferNode_3025Command(req)); } return super.getCreateCommand(req); }
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 CreateStructuredActivityNode_3009Command(req)); } if (UMLElementTypes.OpaqueAction_3011 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateOpaqueAction_3011Command(req)); } if (UMLElementTypes.AcceptEventAction_3012 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAcceptEventAction_3012Command(req)); } if (UMLElementTypes.AcceptEventAction_3013 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAcceptEventAction_3013Command(req)); } if (UMLElementTypes.ActivityFinalNode_3014 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateActivityFinalNode_3014Command(req)); } if (UMLElementTypes.DecisionNode_3015 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateDecisionNode_3015Command(req)); } if (UMLElementTypes.FlowFinalNode_3016 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateFlowFinalNode_3016Command(req)); } if (UMLElementTypes.Pin_3017 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreatePin_3017Command(req)); } if (UMLElementTypes.CreateObjectAction_3018 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCreateObjectAction_3018Command(req)); } if (UMLElementTypes.CallBehaviorAction_3019 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCallBehaviorAction_3019Command(req)); } if (UMLElementTypes.CallOperationAction_3020 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCallOperationAction_3020Command(req)); } if (UMLElementTypes.ForkNode_3021 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateForkNode_3021Command(req)); } if (UMLElementTypes.JoinNode_3022 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateJoinNode_3022Command(req)); } if (UMLElementTypes.AddStructuralFeatureValueAction_3023 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAddStructuralFeatureValueAction_3023Command(req)); } if (UMLElementTypes.DataStoreNode_3024 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateDataStoreNode_3024Command(req)); } if (UMLElementTypes.CentralBufferNode_3025 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCentralBufferNode_3025Command(req)); } return super.getCreateCommand(req); }
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 CreateStructuredActivityNode_3009Command(req)); } if (UMLElementTypes.OpaqueAction_3011 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateOpaqueAction_3011Command(req)); } if (UMLElementTypes.AcceptEventAction_3012 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAcceptEventAction_3012Command(req)); } if (UMLElementTypes.AcceptEventAction_3013 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAcceptEventAction_3013Command(req)); } if (UMLElementTypes.ActivityFinalNode_3014 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateActivityFinalNode_3014Command(req)); } if (UMLElementTypes.DecisionNode_3015 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateDecisionNode_3015Command(req)); } if (UMLElementTypes.FlowFinalNode_3016 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateFlowFinalNode_3016Command(req)); } if (UMLElementTypes.Pin_3017 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreatePin_3017Command(req)); } if (UMLElementTypes.CreateObjectAction_3018 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCreateObjectAction_3018Command(req)); } if (UMLElementTypes.CallBehaviorAction_3019 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCallBehaviorAction_3019Command(req)); } if (UMLElementTypes.CallOperationAction_3020 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCallOperationAction_3020Command(req)); } if (UMLElementTypes.ForkNode_3021 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateForkNode_3021Command(req)); } if (UMLElementTypes.JoinNode_3022 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateJoinNode_3022Command(req)); } if (UMLElementTypes.AddStructuralFeatureValueAction_3023 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAddStructuralFeatureValueAction_3023Command(req)); } if (UMLElementTypes.DataStoreNode_3024 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateDataStoreNode_3024Command(req)); } if (UMLElementTypes.CentralBufferNode_3025 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCentralBufferNode_3025Command(req)); } return super.getCreateCommand(req); }
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 CreateStructuredActivityNode_3009Command(req)); } if (UMLElementTypes.OpaqueAction_3011 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateOpaqueAction_3011Command(req)); } if (UMLElementTypes.AcceptEventAction_3012 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAcceptEventAction_3012Command(req)); } if (UMLElementTypes.AcceptEventAction_3013 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAcceptEventAction_3013Command(req)); } if (UMLElementTypes.ActivityFinalNode_3014 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateActivityFinalNode_3014Command(req)); } if (UMLElementTypes.DecisionNode_3015 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateDecisionNode_3015Command(req)); } if (UMLElementTypes.FlowFinalNode_3016 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateFlowFinalNode_3016Command(req)); } if (UMLElementTypes.Pin_3017 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreatePin_3017Command(req)); } if (UMLElementTypes.CreateObjectAction_3018 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCreateObjectAction_3018Command(req)); } if (UMLElementTypes.CallBehaviorAction_3019 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCallBehaviorAction_3019Command(req)); } if (UMLElementTypes.CallOperationAction_3020 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCallOperationAction_3020Command(req)); } if (UMLElementTypes.ForkNode_3021 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateForkNode_3021Command(req)); } if (UMLElementTypes.JoinNode_3022 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateJoinNode_3022Command(req)); } if (UMLElementTypes.AddStructuralFeatureValueAction_3023 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAddStructuralFeatureValueAction_3023Command(req)); } if (UMLElementTypes.DataStoreNode_3024 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateDataStoreNode_3024Command(req)); } if (UMLElementTypes.CentralBufferNode_3025 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCentralBufferNode_3025Command(req)); } return super.getCreateCommand(req); }
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 CreateStructuredActivityNode_3009Command(req)); } if (UMLElementTypes.OpaqueAction_3011 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateOpaqueAction_3011Command(req)); } if (UMLElementTypes.AcceptEventAction_3012 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAcceptEventAction_3012Command(req)); } if (UMLElementTypes.AcceptEventAction_3013 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAcceptEventAction_3013Command(req)); } if (UMLElementTypes.ActivityFinalNode_3014 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateActivityFinalNode_3014Command(req)); } if (UMLElementTypes.DecisionNode_3015 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateDecisionNode_3015Command(req)); } if (UMLElementTypes.FlowFinalNode_3016 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateFlowFinalNode_3016Command(req)); } if (UMLElementTypes.Pin_3017 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreatePin_3017Command(req)); } if (UMLElementTypes.CreateObjectAction_3018 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCreateObjectAction_3018Command(req)); } if (UMLElementTypes.CallBehaviorAction_3019 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCallBehaviorAction_3019Command(req)); } if (UMLElementTypes.CallOperationAction_3020 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCallOperationAction_3020Command(req)); } if (UMLElementTypes.ForkNode_3021 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateForkNode_3021Command(req)); } if (UMLElementTypes.JoinNode_3022 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateJoinNode_3022Command(req)); } if (UMLElementTypes.AddStructuralFeatureValueAction_3023 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAddStructuralFeatureValueAction_3023Command(req)); } if (UMLElementTypes.DataStoreNode_3024 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateDataStoreNode_3024Command(req)); } if (UMLElementTypes.CentralBufferNode_3025 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCentralBufferNode_3025Command(req)); } return super.getCreateCommand(req); }
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 CreateStructuredActivityNode_3009Command(req)); } if (UMLElementTypes.OpaqueAction_3011 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateOpaqueAction_3011Command(req)); } if (UMLElementTypes.AcceptEventAction_3012 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAcceptEventAction_3012Command(req)); } if (UMLElementTypes.AcceptEventAction_3013 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAcceptEventAction_3013Command(req)); } if (UMLElementTypes.ActivityFinalNode_3014 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateActivityFinalNode_3014Command(req)); } if (UMLElementTypes.DecisionNode_3015 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateDecisionNode_3015Command(req)); } if (UMLElementTypes.FlowFinalNode_3016 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateFlowFinalNode_3016Command(req)); } if (UMLElementTypes.Pin_3017 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreatePin_3017Command(req)); } if (UMLElementTypes.CreateObjectAction_3018 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCreateObjectAction_3018Command(req)); } if (UMLElementTypes.CallBehaviorAction_3019 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCallBehaviorAction_3019Command(req)); } if (UMLElementTypes.CallOperationAction_3020 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCallOperationAction_3020Command(req)); } if (UMLElementTypes.ForkNode_3021 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateForkNode_3021Command(req)); } if (UMLElementTypes.JoinNode_3022 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateJoinNode_3022Command(req)); } if (UMLElementTypes.AddStructuralFeatureValueAction_3023 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAddStructuralFeatureValueAction_3023Command(req)); } if (UMLElementTypes.DataStoreNode_3024 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateDataStoreNode_3024Command(req)); } if (UMLElementTypes.CentralBufferNode_3025 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCentralBufferNode_3025Command(req)); } return super.getCreateCommand(req); }
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 CreateStructuredActivityNode_3009Command(req)); } if (UMLElementTypes.OpaqueAction_3011 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateOpaqueAction_3011Command(req)); } if (UMLElementTypes.AcceptEventAction_3012 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAcceptEventAction_3012Command(req)); } if (UMLElementTypes.AcceptEventAction_3013 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAcceptEventAction_3013Command(req)); } if (UMLElementTypes.ActivityFinalNode_3014 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateActivityFinalNode_3014Command(req)); } if (UMLElementTypes.DecisionNode_3015 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateDecisionNode_3015Command(req)); } if (UMLElementTypes.FlowFinalNode_3016 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateFlowFinalNode_3016Command(req)); } if (UMLElementTypes.Pin_3017 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreatePin_3017Command(req)); } if (UMLElementTypes.CreateObjectAction_3018 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCreateObjectAction_3018Command(req)); } if (UMLElementTypes.CallBehaviorAction_3019 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCallBehaviorAction_3019Command(req)); } if (UMLElementTypes.CallOperationAction_3020 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCallOperationAction_3020Command(req)); } if (UMLElementTypes.ForkNode_3021 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateForkNode_3021Command(req)); } if (UMLElementTypes.JoinNode_3022 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateJoinNode_3022Command(req)); } if (UMLElementTypes.AddStructuralFeatureValueAction_3023 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAddStructuralFeatureValueAction_3023Command(req)); } if (UMLElementTypes.DataStoreNode_3024 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateDataStoreNode_3024Command(req)); } if (UMLElementTypes.CentralBufferNode_3025 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCentralBufferNode_3025Command(req)); } return super.getCreateCommand(req); }
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 CreateStructuredActivityNode_3009Command(req)); } if (UMLElementTypes.OpaqueAction_3011 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateOpaqueAction_3011Command(req)); } if (UMLElementTypes.AcceptEventAction_3012 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAcceptEventAction_3012Command(req)); } if (UMLElementTypes.AcceptEventAction_3013 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAcceptEventAction_3013Command(req)); } if (UMLElementTypes.ActivityFinalNode_3014 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateActivityFinalNode_3014Command(req)); } if (UMLElementTypes.DecisionNode_3015 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateDecisionNode_3015Command(req)); } if (UMLElementTypes.FlowFinalNode_3016 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateFlowFinalNode_3016Command(req)); } if (UMLElementTypes.Pin_3017 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreatePin_3017Command(req)); } if (UMLElementTypes.CreateObjectAction_3018 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCreateObjectAction_3018Command(req)); } if (UMLElementTypes.CallBehaviorAction_3019 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCallBehaviorAction_3019Command(req)); } if (UMLElementTypes.CallOperationAction_3020 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCallOperationAction_3020Command(req)); } if (UMLElementTypes.ForkNode_3021 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateForkNode_3021Command(req)); } if (UMLElementTypes.JoinNode_3022 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateJoinNode_3022Command(req)); } if (UMLElementTypes.AddStructuralFeatureValueAction_3023 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAddStructuralFeatureValueAction_3023Command(req)); } if (UMLElementTypes.DataStoreNode_3024 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateDataStoreNode_3024Command(req)); } if (UMLElementTypes.CentralBufferNode_3025 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCentralBufferNode_3025Command(req)); } return super.getCreateCommand(req); }
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 CreateStructuredActivityNode_3009Command(req)); } if (UMLElementTypes.OpaqueAction_3011 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateOpaqueAction_3011Command(req)); } if (UMLElementTypes.AcceptEventAction_3012 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAcceptEventAction_3012Command(req)); } if (UMLElementTypes.AcceptEventAction_3013 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAcceptEventAction_3013Command(req)); } if (UMLElementTypes.ActivityFinalNode_3014 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateActivityFinalNode_3014Command(req)); } if (UMLElementTypes.DecisionNode_3015 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateDecisionNode_3015Command(req)); } if (UMLElementTypes.FlowFinalNode_3016 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateFlowFinalNode_3016Command(req)); } if (UMLElementTypes.Pin_3017 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreatePin_3017Command(req)); } if (UMLElementTypes.CreateObjectAction_3018 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCreateObjectAction_3018Command(req)); } if (UMLElementTypes.CallBehaviorAction_3019 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCallBehaviorAction_3019Command(req)); } if (UMLElementTypes.CallOperationAction_3020 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCallOperationAction_3020Command(req)); } if (UMLElementTypes.ForkNode_3021 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateForkNode_3021Command(req)); } if (UMLElementTypes.JoinNode_3022 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateJoinNode_3022Command(req)); } if (UMLElementTypes.AddStructuralFeatureValueAction_3023 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAddStructuralFeatureValueAction_3023Command(req)); } if (UMLElementTypes.DataStoreNode_3024 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateDataStoreNode_3024Command(req)); } if (UMLElementTypes.CentralBufferNode_3025 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCentralBufferNode_3025Command(req)); } return super.getCreateCommand(req); }
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 CreateStructuredActivityNode_3009Command(req)); } if (UMLElementTypes.OpaqueAction_3011 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateOpaqueAction_3011Command(req)); } if (UMLElementTypes.AcceptEventAction_3012 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAcceptEventAction_3012Command(req)); } if (UMLElementTypes.AcceptEventAction_3013 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAcceptEventAction_3013Command(req)); } if (UMLElementTypes.ActivityFinalNode_3014 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateActivityFinalNode_3014Command(req)); } if (UMLElementTypes.DecisionNode_3015 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateDecisionNode_3015Command(req)); } if (UMLElementTypes.FlowFinalNode_3016 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateFlowFinalNode_3016Command(req)); } if (UMLElementTypes.Pin_3017 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreatePin_3017Command(req)); } if (UMLElementTypes.CreateObjectAction_3018 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCreateObjectAction_3018Command(req)); } if (UMLElementTypes.CallBehaviorAction_3019 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCallBehaviorAction_3019Command(req)); } if (UMLElementTypes.CallOperationAction_3020 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCallOperationAction_3020Command(req)); } if (UMLElementTypes.ForkNode_3021 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateForkNode_3021Command(req)); } if (UMLElementTypes.JoinNode_3022 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateJoinNode_3022Command(req)); } if (UMLElementTypes.AddStructuralFeatureValueAction_3023 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAddStructuralFeatureValueAction_3023Command(req)); } if (UMLElementTypes.DataStoreNode_3024 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateDataStoreNode_3024Command(req)); } if (UMLElementTypes.CentralBufferNode_3025 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCentralBufferNode_3025Command(req)); } return super.getCreateCommand(req); }
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 CreateStructuredActivityNode_3009Command(req)); } if (UMLElementTypes.OpaqueAction_3011 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateOpaqueAction_3011Command(req)); } if (UMLElementTypes.AcceptEventAction_3012 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAcceptEventAction_3012Command(req)); } if (UMLElementTypes.AcceptEventAction_3013 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAcceptEventAction_3013Command(req)); } if (UMLElementTypes.ActivityFinalNode_3014 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateActivityFinalNode_3014Command(req)); } if (UMLElementTypes.DecisionNode_3015 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateDecisionNode_3015Command(req)); } if (UMLElementTypes.FlowFinalNode_3016 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateFlowFinalNode_3016Command(req)); } if (UMLElementTypes.Pin_3017 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreatePin_3017Command(req)); } if (UMLElementTypes.CreateObjectAction_3018 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCreateObjectAction_3018Command(req)); } if (UMLElementTypes.CallBehaviorAction_3019 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCallBehaviorAction_3019Command(req)); } if (UMLElementTypes.CallOperationAction_3020 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCallOperationAction_3020Command(req)); } if (UMLElementTypes.ForkNode_3021 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateForkNode_3021Command(req)); } if (UMLElementTypes.JoinNode_3022 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateJoinNode_3022Command(req)); } if (UMLElementTypes.AddStructuralFeatureValueAction_3023 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAddStructuralFeatureValueAction_3023Command(req)); } if (UMLElementTypes.DataStoreNode_3024 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateDataStoreNode_3024Command(req)); } if (UMLElementTypes.CentralBufferNode_3025 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCentralBufferNode_3025Command(req)); } return super.getCreateCommand(req); }
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 CreateStructuredActivityNode_3009Command(req)); } if (UMLElementTypes.OpaqueAction_3011 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateOpaqueAction_3011Command(req)); } if (UMLElementTypes.AcceptEventAction_3012 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAcceptEventAction_3012Command(req)); } if (UMLElementTypes.AcceptEventAction_3013 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAcceptEventAction_3013Command(req)); } if (UMLElementTypes.ActivityFinalNode_3014 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateActivityFinalNode_3014Command(req)); } if (UMLElementTypes.DecisionNode_3015 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateDecisionNode_3015Command(req)); } if (UMLElementTypes.FlowFinalNode_3016 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateFlowFinalNode_3016Command(req)); } if (UMLElementTypes.Pin_3017 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreatePin_3017Command(req)); } if (UMLElementTypes.CreateObjectAction_3018 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCreateObjectAction_3018Command(req)); } if (UMLElementTypes.CallBehaviorAction_3019 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCallBehaviorAction_3019Command(req)); } if (UMLElementTypes.CallOperationAction_3020 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCallOperationAction_3020Command(req)); } if (UMLElementTypes.ForkNode_3021 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateForkNode_3021Command(req)); } if (UMLElementTypes.JoinNode_3022 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateJoinNode_3022Command(req)); } if (UMLElementTypes.AddStructuralFeatureValueAction_3023 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAddStructuralFeatureValueAction_3023Command(req)); } if (UMLElementTypes.DataStoreNode_3024 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateDataStoreNode_3024Command(req)); } if (UMLElementTypes.CentralBufferNode_3025 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCentralBufferNode_3025Command(req)); } return super.getCreateCommand(req); }
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 CreateStructuredActivityNode_3009Command(req)); } if (UMLElementTypes.OpaqueAction_3011 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateOpaqueAction_3011Command(req)); } if (UMLElementTypes.AcceptEventAction_3012 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAcceptEventAction_3012Command(req)); } if (UMLElementTypes.AcceptEventAction_3013 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAcceptEventAction_3013Command(req)); } if (UMLElementTypes.ActivityFinalNode_3014 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateActivityFinalNode_3014Command(req)); } if (UMLElementTypes.DecisionNode_3015 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateDecisionNode_3015Command(req)); } if (UMLElementTypes.FlowFinalNode_3016 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateFlowFinalNode_3016Command(req)); } if (UMLElementTypes.Pin_3017 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreatePin_3017Command(req)); } if (UMLElementTypes.CreateObjectAction_3018 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCreateObjectAction_3018Command(req)); } if (UMLElementTypes.CallBehaviorAction_3019 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCallBehaviorAction_3019Command(req)); } if (UMLElementTypes.CallOperationAction_3020 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCallOperationAction_3020Command(req)); } if (UMLElementTypes.ForkNode_3021 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateForkNode_3021Command(req)); } if (UMLElementTypes.JoinNode_3022 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateJoinNode_3022Command(req)); } if (UMLElementTypes.AddStructuralFeatureValueAction_3023 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAddStructuralFeatureValueAction_3023Command(req)); } if (UMLElementTypes.DataStoreNode_3024 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateDataStoreNode_3024Command(req)); } if (UMLElementTypes.CentralBufferNode_3025 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCentralBufferNode_3025Command(req)); } return super.getCreateCommand(req); }
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 CreateStructuredActivityNode_3009Command(req)); } if (UMLElementTypes.OpaqueAction_3011 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateOpaqueAction_3011Command(req)); } if (UMLElementTypes.AcceptEventAction_3012 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAcceptEventAction_3012Command(req)); } if (UMLElementTypes.AcceptEventAction_3013 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAcceptEventAction_3013Command(req)); } if (UMLElementTypes.ActivityFinalNode_3014 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateActivityFinalNode_3014Command(req)); } if (UMLElementTypes.DecisionNode_3015 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateDecisionNode_3015Command(req)); } if (UMLElementTypes.FlowFinalNode_3016 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateFlowFinalNode_3016Command(req)); } if (UMLElementTypes.Pin_3017 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreatePin_3017Command(req)); } if (UMLElementTypes.CreateObjectAction_3018 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCreateObjectAction_3018Command(req)); } if (UMLElementTypes.CallBehaviorAction_3019 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCallBehaviorAction_3019Command(req)); } if (UMLElementTypes.CallOperationAction_3020 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCallOperationAction_3020Command(req)); } if (UMLElementTypes.ForkNode_3021 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateForkNode_3021Command(req)); } if (UMLElementTypes.JoinNode_3022 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateJoinNode_3022Command(req)); } if (UMLElementTypes.AddStructuralFeatureValueAction_3023 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAddStructuralFeatureValueAction_3023Command(req)); } if (UMLElementTypes.DataStoreNode_3024 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateDataStoreNode_3024Command(req)); } if (UMLElementTypes.CentralBufferNode_3025 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCentralBufferNode_3025Command(req)); } return super.getCreateCommand(req); }
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 CreateStructuredActivityNode_3009Command(req)); } if (UMLElementTypes.OpaqueAction_3011 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateOpaqueAction_3011Command(req)); } if (UMLElementTypes.AcceptEventAction_3012 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAcceptEventAction_3012Command(req)); } if (UMLElementTypes.AcceptEventAction_3013 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAcceptEventAction_3013Command(req)); } if (UMLElementTypes.ActivityFinalNode_3014 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateActivityFinalNode_3014Command(req)); } if (UMLElementTypes.DecisionNode_3015 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateDecisionNode_3015Command(req)); } if (UMLElementTypes.FlowFinalNode_3016 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateFlowFinalNode_3016Command(req)); } if (UMLElementTypes.Pin_3017 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreatePin_3017Command(req)); } if (UMLElementTypes.CreateObjectAction_3018 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCreateObjectAction_3018Command(req)); } if (UMLElementTypes.CallBehaviorAction_3019 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCallBehaviorAction_3019Command(req)); } if (UMLElementTypes.CallOperationAction_3020 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCallOperationAction_3020Command(req)); } if (UMLElementTypes.ForkNode_3021 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateForkNode_3021Command(req)); } if (UMLElementTypes.JoinNode_3022 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateJoinNode_3022Command(req)); } if (UMLElementTypes.AddStructuralFeatureValueAction_3023 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAddStructuralFeatureValueAction_3023Command(req)); } if (UMLElementTypes.DataStoreNode_3024 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateDataStoreNode_3024Command(req)); } if (UMLElementTypes.CentralBufferNode_3025 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCentralBufferNode_3025Command(req)); } return super.getCreateCommand(req); }
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 CreateStructuredActivityNode_3009Command(req)); } if (UMLElementTypes.OpaqueAction_3011 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateOpaqueAction_3011Command(req)); } if (UMLElementTypes.AcceptEventAction_3012 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAcceptEventAction_3012Command(req)); } if (UMLElementTypes.AcceptEventAction_3013 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAcceptEventAction_3013Command(req)); } if (UMLElementTypes.ActivityFinalNode_3014 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateActivityFinalNode_3014Command(req)); } if (UMLElementTypes.DecisionNode_3015 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateDecisionNode_3015Command(req)); } if (UMLElementTypes.FlowFinalNode_3016 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateFlowFinalNode_3016Command(req)); } if (UMLElementTypes.Pin_3017 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreatePin_3017Command(req)); } if (UMLElementTypes.CreateObjectAction_3018 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCreateObjectAction_3018Command(req)); } if (UMLElementTypes.CallBehaviorAction_3019 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCallBehaviorAction_3019Command(req)); } if (UMLElementTypes.CallOperationAction_3020 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCallOperationAction_3020Command(req)); } if (UMLElementTypes.ForkNode_3021 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateForkNode_3021Command(req)); } if (UMLElementTypes.JoinNode_3022 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateJoinNode_3022Command(req)); } if (UMLElementTypes.AddStructuralFeatureValueAction_3023 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateAddStructuralFeatureValueAction_3023Command(req)); } if (UMLElementTypes.DataStoreNode_3024 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateDataStoreNode_3024Command(req)); } if (UMLElementTypes.CentralBufferNode_3025 == req.getElementType()) { if (req.getContainmentFeature() == null) { req.setContainmentFeature(UMLPackage.eINSTANCE.getStructuredActivityNode_Node()); } return getMSLWrapper(new CreateCentralBufferNode_3025Command(req)); } return super.getCreateCommand(req); }
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.findByPrimaryKey(pk);}
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.findByPrimaryKey(pk);}
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 method is expected to fail", 0); } }); extension = new NATObject(original.dynamicParent_, original.lexicalParent_, NATObject._IS_A_); }
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."); return NATNil._INSTANCE_; } }); clone.meta_addMethod( new NATMethod(AGSymbol.alloc("addedMethod"), NATTable.EMPTY, null) { public ATObject base_apply(ATTable arguments, ATContext ctx) throws InterpreterException { throw new TestException("This method needs to be visible in the clone", 1); } }); try { clone.meta_invoke(clone, AGSymbol.alloc("addedMethod"), NATTable.EMPTY); } catch (TestException ae) { // given the definition, this should happen!!! } catch (XSelectorNotFound se) { // implies the addMethod to the clone was not performed correctly fail("performing meta_addMethod did not add the method as expected"); } original.meta_isCloneOf(clone).base_ifTrue_( new NativeClosure(clone) { public ATObject base_apply(ATTable arguments) throws InterpreterException { fail("Adding fields to a clone should disrupt the isCloneOf test when comparing the original to the extended object."); return NATNil._INSTANCE_; } }); clone.meta_isCloneOf(original).base_ifFalse_( new NativeClosure(original) { public ATObject base_apply(ATTable arguments) throws InterpreterException { fail("Adding fields to a clone should NOT disrupt the isCloneOf test when comparing the extended object to the original."); return NATNil._INSTANCE_; } }); extension.meta_isCloneOf(original).base_ifTrue_( new NativeClosure(original) { public ATObject base_apply(ATTable arguments) throws InterpreterException { fail("Extensions should not return true to the isCloneOf test."); return NATNil._INSTANCE_; } }); extension.meta_isCloneOf(clone).base_ifTrue_( new NativeClosure(clone) { public ATObject base_apply(ATTable arguments) throws InterpreterException { fail("Extensions should not return true to the isCloneOf test."); return NATNil._INSTANCE_; } }); }
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."); return NATNil._INSTANCE_; } }); clone.meta_addMethod( new NATMethod(AGSymbol.alloc("addedMethod"), NATTable.EMPTY, null) { public ATObject base_apply(ATTable arguments, ATContext ctx) throws InterpreterException { throw new TestException("This method needs to be visible in the clone", 1); } }); try { clone.meta_invoke(clone, AGSymbol.alloc("addedMethod"), NATTable.EMPTY); } catch (TestException ae) { // given the definition, this should happen!!! } catch (XSelectorNotFound se) { // implies the addMethod to the clone was not performed correctly fail("performing meta_addMethod did not add the method as expected"); } original.meta_isCloneOf(clone).base_ifTrue_( new NativeClosure(clone) { public ATObject base_apply(ATTable arguments) throws InterpreterException { fail("Adding fields to a clone should disrupt the isCloneOf test when comparing the original to the extended object."); return NATNil._INSTANCE_; } }); clone.meta_isCloneOf(original).base_ifFalse_( new NativeClosure(original) { public ATObject base_apply(ATTable arguments) throws InterpreterException { fail("Adding fields to a clone should NOT disrupt the isCloneOf test when comparing the extended object to the original."); return NATNil._INSTANCE_; } }); extension.meta_isCloneOf(original).base_ifTrue_( new NativeClosure(original) { public ATObject base_apply(ATTable arguments) throws InterpreterException { fail("Extensions should not return true to the isCloneOf test."); return NATNil._INSTANCE_; } }); extension.meta_isCloneOf(clone).base_ifTrue_( new NativeClosure(clone) { public ATObject base_apply(ATTable arguments) throws InterpreterException { fail("Extensions should not return true to the isCloneOf test."); return NATNil._INSTANCE_; } }); }
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("text"); Idea i = new Idea(text); String notes = attrs.getValue("notes"); if (notes == null) { notes = ""; } i.setNotes(notes); String angleString = attrs.getValue("angle"); if ((angleString != null) && (angleString.length() > 0)) { i.setAngle(Double.valueOf(angleString)); anglesRead = true; } if (idea == null) { idea = i; } else { current.add(i); } current = i; stack.push(current); } } }
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.setEntity("cal", parent); Integer res = (Integer)sess.getUnique(); if (res.intValue() > 0) {*/ if (parent.getCalendarCollection()) { throw new CalFacadeException(CalFacadeException.illegalCalendarCreation); } /* Ensure the path is unique */ String path = parent.getPath(); if (path == null) { if (parent.getPublick()) { path = ""; } else { path = "/users/" + parent.getOwner().getAccount(); } } path += "/" + val.getName(); sess.namedQuery("getCalendarByPath"); sess.setString("path", path); if (sess.getUnique() != null) { throw new CalFacadeException(CalFacadeException.duplicateCalendar); } val.setPath(path); val.setOwner(getUser()); val.setCalendar(parent); parent.addChild(val); sess.save(parent); }
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); } return cal; }
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(); long overEndTime = overTimeRange.getEndTime().getMicroSecondTime(); long overBeginTime = overTimeRange.getBeginTime().getMicroSecondTime(); if(endTime >= overEndTime || beginTime <= overBeginTime) this.createOversizedImage(); Graphics2D g2 = (Graphics2D)g; double offset = (beginTime - overBeginTime)/ (double)(overEndTime - overBeginTime) * overSize.getWidth(); AffineTransform tx; if(displayInterval.getValue() == timeConfig.getTimeRange().getInterval().getValue()){ tx = AffineTransform.getTranslateInstance(-offset, 0.0); if(overSizedImage.get() == null) this.createOversizedImage(); g2.drawImage(((Image)overSizedImage.get()), tx, null); } else{ double scale = displayInterval.getValue()/timeConfig.getTimeRange().getInterval().getValue(); tx = AffineTransform.getTranslateInstance(-offset * scale, 0.0); tx.scale(scale, 1); this.createOversizedImage(); g2.drawImage(((Image)overSizedImage.get()), tx, null); overSizedImage = null; repaint(); } }
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(); long overEndTime = overTimeRange.getEndTime().getMicroSecondTime(); long overBeginTime = overTimeRange.getBeginTime().getMicroSecondTime(); if(endTime >= overEndTime || beginTime <= overBeginTime) this.createOversizedImage(); Graphics2D g2 = (Graphics2D)g; double offset = (beginTime - overBeginTime)/ (double)(overEndTime - overBeginTime) * overSize.getWidth(); AffineTransform tx; if(displayInterval.getValue() == timeConfig.getTimeRange().getInterval().getValue()){ tx = AffineTransform.getTranslateInstance(-offset, 0.0); if(overSizedImage.get() == null) this.createOversizedImage(); g2.drawImage(((Image)overSizedImage.get()), tx, null); } else{ double scale = displayInterval.getValue()/timeConfig.getTimeRange().getInterval().getValue(); tx = AffineTransform.getTranslateInstance(-offset * scale, 0.0); tx.scale(scale, 1); this.createOversizedImage(); g2.drawImage(((Image)overSizedImage.get()), tx, null); overSizedImage = null; repaint(); } }
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(); long overEndTime = overTimeRange.getEndTime().getMicroSecondTime(); long overBeginTime = overTimeRange.getBeginTime().getMicroSecondTime(); if(endTime >= overEndTime || beginTime <= overBeginTime) this.createOversizedImage(); Graphics2D g2 = (Graphics2D)g; double offset = (beginTime - overBeginTime)/ (double)(overEndTime - overBeginTime) * overSize.getWidth(); AffineTransform tx; if(displayInterval.getValue() == timeConfig.getTimeRange().getInterval().getValue()){ tx = AffineTransform.getTranslateInstance(-offset, 0.0); if(overSizedImage.get() == null) this.createOversizedImage(); g2.drawImage(((Image)overSizedImage.get()), tx, null); } else{ double scale = displayInterval.getValue()/timeConfig.getTimeRange().getInterval().getValue(); tx = AffineTransform.getTranslateInstance(-offset * scale, 0.0); tx.scale(scale, 1); this.createOversizedImage(); g2.drawImage(((Image)overSizedImage.get()), tx, null); overSizedImage = null; repaint(); } }
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(); long overEndTime = overTimeRange.getEndTime().getMicroSecondTime(); long overBeginTime = overTimeRange.getBeginTime().getMicroSecondTime(); if(endTime >= overEndTime || beginTime <= overBeginTime) this.createOversizedImage(); Graphics2D g2 = (Graphics2D)g; double offset = (beginTime - overBeginTime)/ (double)(overEndTime - overBeginTime) * overSize.getWidth(); AffineTransform tx; if(displayInterval.getValue() == timeConfig.getTimeRange().getInterval().getValue()){ tx = AffineTransform.getTranslateInstance(-offset, 0.0); if(overSizedImage.get() == null) this.createOversizedImage(); g2.drawImage(((Image)overSizedImage.get()), tx, null); } else{ double scale = displayInterval.getValue()/timeConfig.getTimeRange().getInterval().getValue(); tx = AffineTransform.getTranslateInstance(-offset * scale, 0.0); tx.scale(scale, 1); this.createOversizedImage(); g2.drawImage(((Image)overSizedImage.get()), tx, null); overSizedImage = null; repaint(); } }
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(); long overEndTime = overTimeRange.getEndTime().getMicroSecondTime(); long overBeginTime = overTimeRange.getBeginTime().getMicroSecondTime(); if(endTime >= overEndTime || beginTime <= overBeginTime) this.createOversizedImage(); Graphics2D g2 = (Graphics2D)g; double offset = (beginTime - overBeginTime)/ (double)(overEndTime - overBeginTime) * overSize.getWidth(); AffineTransform tx; if(displayInterval.getValue() == timeConfig.getTimeRange().getInterval().getValue()){ tx = AffineTransform.getTranslateInstance(-offset, 0.0); if(overSizedImage.get() == null) this.createOversizedImage(); g2.drawImage(((Image)overSizedImage.get()), tx, null); } else{ double scale = displayInterval.getValue()/timeConfig.getTimeRange().getInterval().getValue(); tx = AffineTransform.getTranslateInstance(-offset * scale, 0.0); tx.scale(scale, 1); this.createOversizedImage(); g2.drawImage(((Image)overSizedImage.get()), tx, null); overSizedImage = null; repaint(); } }
}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 location"); } else { debugMsg("Set event with location " + loc); } } form.setEditLocation(null); if (loc != null) { form.setEventLocationId(loc.getId()); } else { form.setEventLocationId(CalFacadeDefs.defaultLocationId); } return "edit";
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); } 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 location"); } else { debugMsg("Set event with location " + loc); } } form.setEditLocation(null); if (loc != null) { form.setEventLocationId(loc.getId()); } else { form.setEventLocationId(CalFacadeDefs.defaultLocationId); } return "edit"; }
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 new PlayerException(exc); } }
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 server is down. if this call succedes but the next fails, then * the nameing service is up and functional, but the network server * is not reachable for some reason. */ Object obj = fisName.getEventDCObject("edu/iris/dmc", "IRIS_EventDC"); logger.info("Got as corba object, the name service is ok"); /** This connectts to the actual server, as oposed to just getting * the reference to it. The naming convention is that the first * part is the reversed DNS of the organization and the second part * is the individual server name. The dmc lists their servers under * the edu/iris/dmc and their main network server is IRIS_EventDC.*/ EventDC eventDC = fisName.getEventDC("edu/iris/dmc", "IRIS_EventDC"); logger.info("got EventDC"); /** The EventFinder is one of the choices at this point. It * allows you to query for individual events, and then retrieve * information about them. */ EventFinder finder = eventDC.a_finder(); logger.info("got EventFinder"); MicroSecondDate now = new MicroSecondDate(); MicroSecondDate yesterday = now.subtract(new TimeInterval(5, UnitImpl.DAY)); TimeRange timeRange = new TimeRange(now.getFissuresTime(), yesterday.getFissuresTime()); String[] magTypes = new String[1]; magTypes[0] = "ALL"; String[] catalogs = new String[1]; catalogs[0] = "FINGER"; String[] contributors = new String[1]; contributors[0] = "NEIC"; EventSeqIterHolder iter = new EventSeqIterHolder(); EventAccess[] events = finder.query_events(new GlobalAreaImpl(), new QuantityImpl(0, UnitImpl.KILOMETER), new QuantityImpl(1000, UnitImpl.KILOMETER), timeRange, magTypes, 5.5f, 10.0f, catalogs, contributors, 500, iter); logger.info("Got "+events.length+" events."); for (int i = 0; i < events.length; i++) { EventAttr attr = events[i].get_attributes(); try { Origin origin = events[i].get_preferred_origin(); logger.info("Event "+i+" occurred in FE region "+attr.region.number+ " at "+origin.origin_time.date_time+ " mag="+origin.magnitudes[0].type+" "+origin.magnitudes[0].value+ " at ("+origin.my_location.latitude+", "+origin.my_location.longitude+") "+ "with depth of "+origin.my_location.depth.value+" "+origin.my_location.depth.the_units); } catch (NoPreferredOrigin e) { logger.warn("No preferred origin for event "+i, e); } } /** Here are someof the possible problems that can occur. */ }catch (org.omg.CORBA.ORBPackage.InvalidName e) { logger.error("Problem with name service: ", e); }catch (org.omg.CosNaming.NamingContextPackage.InvalidName e) { logger.error("Problem with name service: ", e); }catch (NotFound e) { logger.error("Problem with name service: ", e); }catch (CannotProceed e) { logger.error("Problem with name service: ", e); } /** All done... */ }
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 server is down. if this call succedes but the next fails, then * the nameing service is up and functional, but the network server * is not reachable for some reason. */ Object obj = fisName.getEventDCObject("edu/iris/dmc", "IRIS_EventDC"); logger.info("Got as corba object, the name service is ok"); /** This connectts to the actual server, as oposed to just getting * the reference to it. The naming convention is that the first * part is the reversed DNS of the organization and the second part * is the individual server name. The dmc lists their servers under * the edu/iris/dmc and their main network server is IRIS_EventDC.*/ EventDC eventDC = fisName.getEventDC("edu/iris/dmc", "IRIS_EventDC"); logger.info("got EventDC"); /** The EventFinder is one of the choices at this point. It * allows you to query for individual events, and then retrieve * information about them. */ EventFinder finder = eventDC.a_finder(); logger.info("got EventFinder"); MicroSecondDate now = new MicroSecondDate(); MicroSecondDate yesterday = now.subtract(new TimeInterval(5, UnitImpl.DAY)); TimeRange timeRange = new TimeRange(now.getFissuresTime(), yesterday.getFissuresTime()); String[] magTypes = new String[1]; magTypes[0] = "ALL"; String[] catalogs = new String[1]; catalogs[0] = "FINGER"; String[] contributors = new String[1]; contributors[0] = "NEIC"; EventSeqIterHolder iter = new EventSeqIterHolder(); EventAccess[] events = finder.query_events(new GlobalAreaImpl(), new QuantityImpl(0, UnitImpl.KILOMETER), new QuantityImpl(1000, UnitImpl.KILOMETER), timeRange, magTypes, 5.5f, 10.0f, catalogs, contributors, 500, iter); logger.info("Got "+events.length+" events."); for (int i = 0; i < events.length; i++) { EventAttr attr = events[i].get_attributes(); try { Origin origin = events[i].get_preferred_origin(); logger.info("Event "+i+" occurred in FE region "+attr.region.number+ " at "+origin.origin_time.date_time+ " mag="+origin.magnitudes[0].type+" "+origin.magnitudes[0].value+ " at ("+origin.my_location.latitude+", "+origin.my_location.longitude+") "+ "with depth of "+origin.my_location.depth.value+" "+origin.my_location.depth.the_units); } catch (NoPreferredOrigin e) { logger.warn("No preferred origin for event "+i, e); } } /** Here are someof the possible problems that can occur. */ }catch (org.omg.CORBA.ORBPackage.InvalidName e) { logger.error("Problem with name service: ", e); }catch (org.omg.CosNaming.NamingContextPackage.InvalidName e) { logger.error("Problem with name service: ", e); }catch (NotFound e) { logger.error("Problem with name service: ", e); }catch (CannotProceed e) { logger.error("Problem with name service: ", e); } /** All done... */ }
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 server is down. if this call succedes but the next fails, then * the nameing service is up and functional, but the network server * is not reachable for some reason. */ Object obj = fisName.getEventDCObject("edu/iris/dmc", "IRIS_EventDC"); logger.info("Got as corba object, the name service is ok"); /** This connectts to the actual server, as oposed to just getting * the reference to it. The naming convention is that the first * part is the reversed DNS of the organization and the second part * is the individual server name. The dmc lists their servers under * the edu/iris/dmc and their main network server is IRIS_EventDC.*/ EventDC eventDC = fisName.getEventDC("edu/iris/dmc", "IRIS_EventDC"); logger.info("got EventDC"); /** The EventFinder is one of the choices at this point. It * allows you to query for individual events, and then retrieve * information about them. */ EventFinder finder = eventDC.a_finder(); logger.info("got EventFinder"); MicroSecondDate now = new MicroSecondDate(); MicroSecondDate yesterday = now.subtract(new TimeInterval(5, UnitImpl.DAY)); TimeRange timeRange = new TimeRange(now.getFissuresTime(), yesterday.getFissuresTime()); String[] magTypes = new String[1]; magTypes[0] = "ALL"; String[] catalogs = new String[1]; catalogs[0] = "FINGER"; String[] contributors = new String[1]; contributors[0] = "NEIC"; EventSeqIterHolder iter = new EventSeqIterHolder(); EventAccess[] events = finder.query_events(new GlobalAreaImpl(), new QuantityImpl(0, UnitImpl.KILOMETER), new QuantityImpl(1000, UnitImpl.KILOMETER), timeRange, magTypes, 5.5f, 10.0f, catalogs, contributors, 500, iter); logger.info("Got "+events.length+" events."); for (int i = 0; i < events.length; i++) { EventAttr attr = events[i].get_attributes(); try { Origin origin = events[i].get_preferred_origin(); logger.info("Event "+i+" occurred in FE region "+attr.region.number+ " at "+origin.origin_time.date_time+ " mag="+origin.magnitudes[0].type+" "+origin.magnitudes[0].value+ " at ("+origin.my_location.latitude+", "+origin.my_location.longitude+") "+ "with depth of "+origin.my_location.depth.value+" "+origin.my_location.depth.the_units); } catch (NoPreferredOrigin e) { logger.warn("No preferred origin for event "+i, e); } } /** Here are someof the possible problems that can occur. */ }catch (org.omg.CORBA.ORBPackage.InvalidName e) { logger.error("Problem with name service: ", e); }catch (org.omg.CosNaming.NamingContextPackage.InvalidName e) { logger.error("Problem with name service: ", e); }catch (NotFound e) { logger.error("Problem with name service: ", e); }catch (CannotProceed e) { logger.error("Problem with name service: ", e); } /** All done... */ }
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 child = (UIComponent) iter.next(); callMain(iwc,child); } } else{ try{ for (Iterator iter = comp.getFacetsAndChildren(); iter.hasNext();) { UIComponent child = (UIComponent) iter.next(); callMain(iwc,child); } } catch(Exception e){ e.printStackTrace(); } } }
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.hasNext();) { UIComponent child = (UIComponent) iter.next(); findNextInstanceOfNotPresentationObject(iwc,child); } } else{ //List children = comp.getChildren(); //for (Iterator iter = children.iterator(); iter.hasNext();) { for (Iterator iter = comp.getFacetsAndChildren(); iter.hasNext();) { UIComponent child = (UIComponent) iter.next(); call_Main(iwc,child); } } } }
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 = vAmpConfigRegistrar; showScale(hSeis, vSeis, timeConfigRegistrar, hAmpConfigRegistrar, vAmpConfigRegistrar, color); this.addComponentListener(new ComponentAdapter() { public void componentResized(ComponentEvent e) { resolveParticleMotion(); resize(); } public void componentShown(ComponentEvent e) { resize(); } }); updateTimeRange(); }
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(); minAmp = amp.getMinValue(); range = maxAmp - minAmp; offset = 0; seisOffset = 0; if(samplesPerPixel < 1){ points = new int[seisEnd - seisStart][2]; plotAll(size); plotAll = true; }else{ points = new int[2][size.width]; plotCompress(size.height); plotAll = false; } }else if(samplesPerPixel < 1){ getEdgeValues(time, size); plotAll(size); }else{ dragPlot(time, size); } plotTime = time.getBeginTime().getMicroSecondTime(); plotInterval = time.getInterval(); plotAmp = amp; plotSize = size; canvas.setColor(color); canvas.draw(this); }catch(CodecException e){ e.printStackTrace(); } return this; }
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[] data = seis.get_as_longs(); int[] out = new int[data.length]; out[0] = 0; for (int i=1; i<out.length; i++) { out[i] = (int)Math.round((data[i]+data[i-1])/2.0 * sampPeriod); } outSeis = new LocalSeismogramImpl(seis, out); } else if (seis.can_convert_to_float()) { float[] data = seis.get_as_floats(); float[] out = new float[data.length]; out[0] = 0; for (int i=1; i<out.length; i++) { out[i] = (float)((data[i]+data[i-1])/2.0 * sampPeriod); } outSeis = new LocalSeismogramImpl(seis, out); } else { double[] data = seis.get_as_doubles(); double[] out = new double[data.length]; out[0] = 0; for (int i=1; i<out.length; i++) { out[i] = (data[i]+data[i-1])/2.0 * sampPeriod; } outSeis = new LocalSeismogramImpl(seis, out); } outSeis.y_unit = UnitImpl.multiply(UnitImpl.createUnitImpl(outSeis.y_unit), UnitImpl.SECOND); return outSeis; }
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, out); } else if (seis.can_convert_to_long()) { int[] data = seis.get_as_longs(); int[] out = new int[data.length]; float previous = 0; out[0] = Math.round(previous); for (int i = 1; i < out.length; i++) { previous += data[i] * sampPeriod; out[i] = Math.round(previous); } outSeis = new LocalSeismogramImpl(seis, out); } else if (seis.can_convert_to_float()) { float[] data = seis.get_as_floats(); float[] out = new float[data.length]; out[0] = 0; float previous = 0; for (int i = 1; i < out.length; i++) { previous += data[i] * sampPeriod; out[i] = previous; } outSeis = new LocalSeismogramImpl(seis, out); } else { double[] data = seis.get_as_doubles(); double[] out = new double[data.length]; out[0] = 0; double previous = 0; for (int i = 1; i < out.length; i++) { previous += data[i] * sampPeriod; out[i] = previous; } outSeis = new LocalSeismogramImpl(seis, out); } outSeis.y_unit = UnitImpl.multiply(UnitImpl .createUnitImpl(outSeis.y_unit), UnitImpl.SECOND); return outSeis; }
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(); TimeSeriesDataSel dataSel = new TimeSeriesDataSel(); 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[] data = seis.get_as_longs(); int[] out = new int[data.length]; out[0] = 0; for (int i=1; i<out.length; i++) { out[i] = (int)Math.round((data[i]+data[i-1])/2.0 * sampPeriod); } outSeis = new LocalSeismogramImpl(seis, out); } else if (seis.can_convert_to_float()) { float[] data = seis.get_as_floats(); float[] out = new float[data.length]; out[0] = 0; for (int i=1; i<out.length; i++) { out[i] = (float)((data[i]+data[i-1])/2.0 * sampPeriod); } outSeis = new LocalSeismogramImpl(seis, out); } else { // must be doubles double[] data = seis.get_as_doubles(); double[] out = new double[data.length]; out[0] = 0; for (int i=1; i<out.length; i++) { out[i] = (data[i]+data[i-1])/2.0 * sampPeriod; } outSeis = new LocalSeismogramImpl(seis, out); } // end of else outSeis.y_unit = UnitImpl.multiply(UnitImpl.createUnitImpl(outSeis.y_unit), UnitImpl.SECOND); return outSeis; }
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 - should work for others as well. ClassLoader cl = Thread.currentThread().getContextClassLoader(); is = cl.getResourceAsStream(propertiesFile); } catch (Throwable clt) {} if (is == null) { // Try another way is = CalEnv.class.getResourceAsStream(propertiesFile); } if (is == null) { throw new CalEnvException("Unable to load properties file" + propertiesFile); } pr.load(is); //if (debug) { // pr.list(System.out); // Logger.getLogger(CalEnv.class).debug( // "file.encoding=" + System.getProperty("file.encoding")); //} return pr; } catch (CalEnvException cee) { throw cee; } catch (Throwable t) { Logger.getLogger(CalEnv.class).error("getEnv error", t); throw new CalEnvException(t.getMessage()); } finally { if (is != null) { try { is.close(); } catch (Throwable t1) {} } } } }
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 publicCal = getCalendar(root.getPath() + "/" + calName); if (publicCal != null) { return publicCal; } publicCal = new BwCalendar(); publicCal.setName(calName); publicCal.setPublick(true); publicCal.setCalendarCollection(true); addCalendar(publicCal, root); return publicCal; }