How to push-up a variable - its grayed out?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to push-up a variable - its grayed out?

TimM-3
Is there some special way to "push-up" an instance variable into a
superclass - the refactoring option on the class is grayed out. And hiliting
an instance variable has no conext menu for refactoring?

Tim


Reply | Threaded
Open this post in threaded view
|

Re: How to push-up a variable - its grayed out?

Blair McGlashan
"TimM" <[hidden email]> wrote in message
news:[hidden email]...
> Is there some special way to "push-up" an instance variable into a
> superclass - the refactoring option on the class is grayed out. And
> hiliting an instance variable has no conext menu for refactoring?

You need to click on the superclass into which you wish to "pull up" the
variable, and then use the class context menu. There probably ought to be
something on the variables pane to do this, as although it doesn't operate
on any of the items you see in the list, intuitively one expects to find the
command there.

The class definition pane is really just a hangover from the original
Smalltalk environments. There is no intelligent behaviour assoicated with
it. It could be done, but really it would make sense to display the
information in another way than as a class definition expression using
strings.

Regards

Blair