protected String getExpectedPackageName ( EObject model ) { final URI fileURI = model . eResource ( ) . getURI ( ) ; for ( final Pair < IStorage , IProject > storage : this . storage2UriMapper . getStorages ( fileURI ) ) { if ( storage . getFirst ( ) instanceof IFile ) { final IPath fileWorkspacePath = storage . getFirst ( ) . getFullPath ( ) ; final IJavaProject javaProject = JavaCore . create ( storage . getSecond ( ) ) ; return extractProjectPath ( fileWorkspacePath , javaProject ) ; } } return null ; }
Replies the expected package for the given model .