Code example for Collection

Methods: addAll

0
 
            List<ViewClassInfo> prefs = ldp.getViews();
            List<ViewClassInfo> groups = ldp.getGroups();
 
            if (prefs != null && groups != null) {
                mainList.addAll(prefs);
                groupList.addAll(groups);
            } 
        } catch (NoClassDefFoundError e) {
            AdtPlugin.logAndPrintError(e, TAG,
                    "Collect preferences failed, class %1$s not found in %2$s", 
                    e.getMessage(),
                    classLoader.getSource());
        } catch (Throwable e) {
            AdtPlugin.log(e, "Android Framework Parser: failed to collect preference classes"); //$NON-NLS-1$
            AdtPlugin.printErrorToConsole("Android Framework Parser", 
                    "failed to collect preference classes"); 
        } 
    } 
 
    /**