Examples of reverseObjectEnumerator()


Examples of com.webobjects.foundation.NSArray.reverseObjectEnumerator()

        D2WContext d2wContext = null;
        NSArray componentStack = ERXWOContext._componentPath(context);
        // Try to get the information for the D2WPage closest to the end of the component stack, i.e., more specific
        // info., that is especially helpful for finding problems in embedded page configurations.
        WOComponent component = null;
        for (Enumeration componentsEnum = componentStack.reverseObjectEnumerator(); componentsEnum.hasMoreElements();) {
            WOComponent c = (WOComponent)componentsEnum.nextElement();
            if (c instanceof D2WPage) {
                component = c;
                break;
            }
View Full Code Here

Examples of com.webobjects.foundation.NSArray.reverseObjectEnumerator()

        NSMutableArray<String> propertiesPaths = new NSMutableArray();
        NSMutableArray<String> projectsInfo = new NSMutableArray();

        /*  Properties for frameworks */
        NSArray frameworkNames = (NSArray) NSBundle.frameworkBundles().valueForKey("name");
        Enumeration e = frameworkNames.reverseObjectEnumerator();
        while (e.hasMoreElements()) {
          String frameworkName = (String) e.nextElement();

          String propertyPath = ERXFileUtilities.pathForResourceNamed("Properties", frameworkName, null);
          addIfPresent(frameworkName + ".framework", propertyPath, propertiesPaths, projectsInfo);
View Full Code Here

Examples of com.webobjects.foundation.NSArray.reverseObjectEnumerator()

    @Override
    public String convert(LoggingEvent event) {
      NSArray parts = NSArray.componentsSeparatedByString(ERXUtilities.stackTrace(), "\n\t");
      NSMutableArray subParts = new NSMutableArray();
      boolean first = true;
      for (Enumeration e = parts.reverseObjectEnumerator(); e.hasMoreElements();) {
        String element = (String) e.nextElement();
        if (element.indexOf("org.apache.log4j") != -1) {
          break;
        }
        if (!first) {
View Full Code Here

Examples of com.webobjects.foundation.NSArray.reverseObjectEnumerator()

            result.setObjectForKey(event.getThrowableInformation().getThrowable(), "exception");
        } else {
            NSArray parts = NSArray.componentsSeparatedByString(ERXUtilities.stackTrace(), "\n");
            NSMutableArray subParts = new NSMutableArray();
            boolean first = true;
            for (Enumeration e = parts.reverseObjectEnumerator(); e.hasMoreElements();) {
                String element = (String)e.nextElement();
                if (element.indexOf("org.apache.log4j") != -1)
                    break;
                if (!first)
                    subParts.insertObjectAtIndex(element, 0);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.