JavaEditor and read-only file [message #289836] |
Thu, 11 August 2005 12:56 |
Eclipse User |
|
|
|
Originally posted by: Merle.Evelyne.ordirope.com
Hi,
I'm trying to prevent user from updating read-only Java files in a project.
The read-only files are opened with JavaUI.openInEditor(unit) where unit is
an ICompilationUnit instance (corresponding resource is "foo.java", which is
read-ony).
At the first keyboard entry, i've got a message box (Title Read-only File
Encountered) asking me if i want to make the file writable.
How can i avoid this message box, as i don't want to edit the file, i just
want to read it.
I'm using Eclipse 3.1.
Evelyne
|
|
|
Re: JavaEditor and read-only file [message #290272 is a reply to message #289836] |
Mon, 22 August 2005 15:51 |
Eclipse User |
|
|
|
Originally posted by: daniel.megert.gmx.net
Evelyne Merle wrote:
>Hi,
>
>I'm trying to prevent user from updating read-only Java files in a project.
>The read-only files are opened with JavaUI.openInEditor(unit) where unit is
>an ICompilationUnit instance (corresponding resource is "foo.java", which is
>read-ony).
>At the first keyboard entry, i've got a message box (Title Read-only File
>Encountered) asking me if i want to make the file writable.
>
>How can i avoid this message box, as i don't want to edit the file, i just
>want to read it.
>
>
If you don't edit the file you won't get the dialog box. You can only
prevent this if you write your own editor.
Dani
>I'm using Eclipse 3.1.
>
>Evelyne
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02684 seconds