creating "read only" code lines in Net Beans

Discussion in 'Java' started by Ken Kafieh, Jun 6, 2004.

  1. Ken Kafieh

    Ken Kafieh Guest

    Does anyone know how to do this?

    Whenever you create a form in Net Beans and then manually edit the code, you
    may have noticed that most of automatically generated code is shaded in
    light blue, and it cannot be modified in the Net Beans editor. Does anyone
    know of a way that we can mark our own code as read only like this? This
    would be especially useful when used in a template.


    -Ken
     
    Ken Kafieh, Jun 6, 2004
    #1
    1. Advertising

  2. Ken Kafieh

    Flip Guest

    > light blue, and it cannot be modified in the Net Beans editor. Does
    anyone
    My guess is there is an object behind the code and in conjunction with the
    IDE, it enforces read only properties on those lines. I personally don't
    know of any way to do this and make it IDE specific. What I'm getting at is
    you might want to take a look at the editor object in Net Beans and see what
    data structure it's using and the methods in there. JB doesn't have
    something like this at the moment.

    What happens when you save the file to the filesystem? Is the file in a
    native .java format? Can you run a javac on it outside of NetBeans? If you
    can, see if there is any special formatting in there that NetBeans would be
    using to interpret special blocks of code was read only. If the code you're
    looking at is in an xml format, then you might want to look for a
    corresponding NetBeans xslt? Or at the editor methods again.

    Good luck.
     
    Flip, Jun 7, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Torsten Schmeissel
    Replies:
    0
    Views:
    439
    Torsten Schmeissel
    Apr 29, 2005
  2. keithb
    Replies:
    2
    Views:
    8,068
    keithb
    Jun 7, 2006
  3. Replies:
    1
    Views:
    456
    Manish Pandit
    Sep 28, 2006
  4. Phillip Vong

    VS2005 - Run Code only in Read Only mode.

    Phillip Vong, Apr 6, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    348
    Phillip Vong
    Apr 6, 2007
  5. S. Robert James
    Replies:
    2
    Views:
    113
    S. Robert James
    Mar 22, 2007
Loading...

Share This Page