Having the proper Eclipse Java editor instead of the old style editor was introduced in 8.5.1, but there was one huge annoyance. When you edited a Java file, you had to save that, but then also remember to save the agent as well. Cue plenty of swearing and head scratching when your change wasn’t showing up.
Well in 8.5.2 there is a new preference setting which allows the agent to be automatically saved when you save the Java file:
Just check the “Autosave Java design element on save of individual Java sources” box to make your Java coding a lot less annoying.
Hi Matt White,
Thank you for the nice tip.
thanks,
Sreedhar.
Why is that a preference? Shouldn't that just be the way it works? What other side effect are we agreeing to be burnt by when ticking the box?
My understanding of it is that every time the agent is saved the entire set of classes is recompiled, so if it's a big agent then it could, in theory, take a while to save. But I personally agree with you that this is how it should have worked all along.
at last, nice find
Are you or anyone else finding problems with this option.
I have found in particular when saving script libs that sometimes (cant identify any pattern) that although the source is saved the Java class files dont get recompiled (i.e. the old code is still the code that executes even though the source has changed.)
Why do you have the refactoring preference turned off?
@Lars,
That's just the default settings. It was turned on almost immeditately after I took that screenshot!
Matt