Page 1 of 1

Refactor

Posted: 16 Dec 2014 8:53
by Jan de Lint
How can the new option 'Refactor' in the IDE be used?
Most of the time the sub options remain grey.
Thanks,
]an

Posted: 19 Dec 2014 9:35
by Thomas Linder Puls
Sorry, for taking so long time to respond, I was going to write a little wiki page about it, but one thing took the other and suddenly I had forgot all about it.

In short: most of the actions require that you select a suitable node in the project tree.

I suggest that you play with them to see what they do, however don't do anything without having a backup of your project.

See also Optimal Set of Includes Directives.

Refactoring

Posted: 24 Feb 2015 10:11
by Peter Muraya
Am I missing something about the Refactor option on the IDE? It simply renames the .pack file currently being pointed at -- which I find unsatisfactory. The nodes on my IDE tree usually correspond to some class, say xx. I expected that renaming such a node to, say yy, will lead to the following actions that I always have to do manually:-
  • 1) Rename the folder from xx to yy
    2) Rename the xx.i, xx.cl and xx.pro files in that folder to match yy
    3) Update the corresponding names of interface, class and implementation
    4) Replace xx with yy wherever it is used to define properties, predicates, etc.
etc.