Change parsing rules for the jdt editor [message #76220] |
Tue, 15 July 2003 15:17  |
Eclipse User |
|
|
|
Hello group. I'd like to change the parsing rules for the exist jdt editor.
The idea is that for certain java files, the user will not be able to edit
lines 0 to 30 in file. User will see them, but they will be read only. Is
there way to change exist jdt plug in to do so ?
Many thanks,
Asaf
|
|
|
|
Re: Change parsing rules for the jdt editor [message #76633 is a reply to message #76572] |
Wed, 16 July 2003 06:28  |
Eclipse User |
|
|
|
Hi Dani, thanks for answering my question.
What I don't understand is that if I write my own editor plugin for *.java
files,
How will it react corret with the JDT plugin componants.
For example: if I new field in the java source, I will not see it in the
package explorer and so on.
1. Can I extends the JDT editor into the new editor extension ?
2. What is "new read-only partition" ? how can it be achive in the new class
that if possibly extends the JavaEditor ?
Many thanks Dani.
Asaf
"Daniel Megert" <daniel.megert@gmx.net> wrote in message
news:bf31hq$koq$1@eclipse.org...
> Asaf wrote:
>
> >Hello group. I'd like to change the parsing rules for the exist jdt
editor.
> >The idea is that for certain java files, the user will not be able to
edit
> >lines 0 to 30 in file. User will see them, but they will be read only.
Is
> >there way to change exist jdt plug in to do so ?
> >Many thanks,
> >Asaf
> >
> >
> >
> You have to write your own editor (plug-in). The easiest to achieve this
> is probably by introducing a new read-only partition.
>
> Dani
>
|
|
|
Powered by
FUDForum. Page generated in 0.02391 seconds