Refactor

Discussions related to Visual Prolog
User avatar
Jan de Lint
VIP Member
Posts: 77
Joined: 6 Mar 2000 0:01

Refactor

Unread post by Jan de Lint » 16 Dec 2014 8:53

How can the new option 'Refactor' in the IDE be used?
Most of the time the sub options remain grey.
Thanks,
]an

User avatar
Thomas Linder Puls
VIP Member
Posts: 1175
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls » 19 Dec 2014 9:35

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.
Regards Thomas Linder Puls
PDC

Peter Muraya
VIP Member
Posts: 147
Joined: 5 Dec 2012 7:29

Refactoring

Unread post by Peter Muraya » 24 Feb 2015 10:11

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.
Mutall Data Management Technical Support

Post Reply