private static Set < EObject > findAllEObjects ( final ResourceSet resourceSet ) { final Set < EObject > list = new HashSet < EObject > ( ) ; for ( final Iterator < Notifier > i = resourceSet . getAllContents ( ) ; i . hasNext ( ) ; ) { final Notifier next = i . next ( ) ; if ( next instanceof EObject ) { list . add ( ( EObject ) next ) ; } } return list ; }
Returns a list of all objects .