Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-ui-dev] Re: OOPSLA *2001* "Implementing Refactoring Support..." paper/article request

we are willing to provide some better documentation of the refactoring
support internals.

for now, here's some more detailed overview:

when a refactoring action is selected, the refactoring object is created
a method checkActivation is called to see if the refactoring can be
activated on the currect selection
then, if all is fine, the action shows up in the menu

if  the user select s the menu item the action is run (by calling the 'run'
method)
the refactoring wizard comes up to collect infrormation from the user (like
the new for a class)
checkInput is then called to check the remaining preconditions
if that fails, the ErrorWizardPage is shown
if it succeeds,
method createChange is called and the PreviewWizardPage comes up (the one
that shows the diff between the current state and the refactored state)

the user pressed finish, and the change is performed (IChnage.perform(...))

hope that helps a bit
a.





Back to the top