Editing templates
Not really a serious bug if it can be called that, but here goes...
I have several classes open
Make a new class from a template
Realized I didn't like how the template was done so I opened the Java file
in system/templates and modified and saved it
When I go back to try editing the newly created class, every thing I try to
do to the new class is instead done to another open class
Closing all the files and opening them again restores normal behaviour
Build 1067, NT, JDK 1.3
--
"Manners are a sensitive awareness of the feelings of others. If you have
that awareness, you have good manners, no matter what fork you use." (Emily
Price Post)
www.quase.ualberta.ca/yip
# 1
Jason Che-han Yip wrote:
> I have several classes open
> Make a new class from a template
> Realized I didn't like how the template was done so I opened the Java file
> in system/templates and modified and saved it
> When I go back to try editing the newly created class, every thing I try to
> do to the new class is instead done to another open class
> Closing all the files and opening them again restores normal behaviour
As far as I know this has nothing to do with the template, rather there
is just a problem sometimes with window focus...the IDE is displaying
one editor tab but in fact another gets keyboard focus. This happens
occasionally, I am not sure what causes it (focus handling is
notoriously difficult to control precisely in Java though). If you can
figure out exact steps to reproduce it, that would be very helpful in a
bug report on http://www.netbeans.org/bugs.html (please include exact
details of OS and JDK).
Thanks,
-Jesse
--
Jesse Glick<mailto:Jesse.Glick@netbeans.com>
NetBeans, Open APIs <http://www.netbeans.org/>
tel (+4202) 3300-9161 Sun Micro x49161 Praha CR
To unsubscribe, e-mail: www-nbusers-unsubscribe@netbeans.org
For additional commands, e-mail: www-nbusers-help@netbeans.org
# 2
"Jesse Glick" <Jesse.Glick@netbeans.com> wrote in message
news:39B4C642.D96AC298@netbeans.com...
> Jason Che-han Yip wrote:
> > I have several classes open
> > Make a new class from a template
> > Realized I didn't like how the template was done so I opened the Java
file
> > in system/templates and modified and saved it
> > When I go back to try editing the newly created class, every thing I try
to
> > do to the new class is instead done to another open class
> > Closing all the files and opening them again restores normal behaviour
>
> As far as I know this has nothing to do with the template, rather there
> is just a problem sometimes with window focus...the IDE is displaying
> one editor tab but in fact another gets keyboard focus. This happens
> occasionally, I am not sure what causes it (focus handling is
> notoriously difficult to control precisely in Java though). If you can
> figure out exact steps to reproduce it, that would be very helpful in a
> bug report on http://www.netbeans.org/bugs.html (please include exact
> details of OS and JDK).
Messing with templates was the only time I've ever seen this behaviour.
I'll keep an eye out for it in other cases. In any case, the above case is
repeatable so I'll write it up.