title: Opening the file in Read only mode in Eclipse editor
body: <p>Actually I need to open the File in the Editor as Read-only Mode. I was using  </p>
  
  <pre class="lang-java prettyprint-override"><code>IDE.openEditor(IworkbenchPage, Ifile, true); 
  </code></pre>
  
  <p>To open the Editor.I am not aware how to open the file in Read-only mode.can any one have any suggestions please help me.
  Thanks in advance...</p>