public static Reader getDSLContent ( String ruleSource , IResource input ) throws CoreException { String dslFileName = findDSLConfigName ( ruleSource , input ) ; if ( dslFileName == null ) { return null ; } IResource res = findDSLResource ( input , dslFileName ) ; if ( res instanceof IFile ) { IFile dslConf = ( IFile ) res ; if ( dslConf . exists ( ) ) { return new InputStreamReader ( dslConf . getContents ( ) ) ; } } return null ; }
Get a reader to the DSL contents