Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » JavaEditor and read-only file
JavaEditor and read-only file [message #289836] Thu, 11 August 2005 12:56 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
>
>
>
Previous Topic:How to make a content outline
Next Topic:Build with PDE Build
Goto Forum:
  


Current Time: Mon Sep 23 18:05:59 GMT 2024

Powered by FUDForum. Page generated in 0.02684 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top