Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » collapse/expand java elements
collapse/expand java elements [message #299566] Mon, 20 February 2006 11:52 Go to next message
Eclipse UserFriend
Originally posted by: jkazakov.abisoft.spb.ru

Hi people,
I have next situation: I need to wrap some user defined code by additional
java code (like class definition, imports and so on)

//wraper section begin

//user should not change content of import section
import something...
import something...

class a {

void init(){
//user should not change content of this method
}
//wraper section end

//here is some user defined code


//wraper section begin
}
//wraper section end

The first idea is to use folding. I have read info about folding in JDT's
JavaEditor but it is still not clear for me how to prevent user from
exapanding specific section.

Is there any way to protect specific part of code from user change?
Re: collapse/expand java elements [message #299574 is a reply to message #299566] Mon, 20 February 2006 12:39 Go to previous message
Eclipse UserFriend
Originally posted by: daniel.megert.eclipse.org

Yarik wrote:

> Hi people,
> I have next situation: I need to wrap some user defined code by
> additional java code (like class definition, imports and so on)
> //wraper section begin
>
> //user should not change content of import section
> import something...
> import something...
>
> class a {
>
> void init(){
> //user should not change content of this method
> }
> //wraper section end
>
> //here is some user defined code
>
>
> //wraper section begin
> }
> //wraper section end
>
> The first idea is to use folding. I have read info about folding in
> JDT's JavaEditor but it is still not clear for me how to prevent user
> from exapanding specific section.
>
> Is there any way to protect specific part of code from user change?

This has been asked quite often. I suggest to search the archive.

Dani
Previous Topic:How to make a User Library extend a variable
Next Topic:Error log view support
Goto Forum:
  


Current Time: Tue Jul 22 19:49:29 EDT 2025

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

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

Back to the top