> I am currently refactorng ugly GUI builder code which
> places all the GUI
> elements in the class as fields, and initialises them
> there.

This much resembles the way in which JBuilder generates code for the GUI. Interesting, 
I had exactly the same idea a week ago when I was editing the GUI code, generated by 
the JBuilder. I wanted to move some class variables into the method scope.

"Inline field" would be a confusing name for such an action. I thought of something 
like "Move to a local (or method) scope".

> Inline Field User Story:
> I want to be able to inline a field.
> 1. The field must only be referenced in one method,
> either in the
> constructor or a method called only from the
> constructor
> 2. the field will be inlined to the point just before
> it is first used.
> 
> Note that if the 'constructor only' requirement is
> not enforced some
> semantics may change after the refactoring - I
> wouldn't mind this but it
> might not be a Good Thing :-)

I believe I understand this "constructor" concern, but I would like to (perhaps 
optionally) relax to:
1. The field must only be referenced in one method, which is located in the same class.


_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-features

Reply via email to