Ask Your Question
1

Select items to refactor

asked 2018-05-25 10:35:00 -0600

Steve Ingram gravatar image

updated 2019-03-14 08:25:08 -0600

Hi, a quick question on refactoring. Selecting a symbol to refactor gives you a list of locations with a checkbox next to each one. Sometimes comes up with an unticked check box and question mark next to the symbol indicating Wing thinks it's a possible match only.

Questin is, how to easily tick/untick multiple checkboxes in this list? Takes a while to manually tick/untick matches if there lots of them! I can't see anything in the preference settings. This is all on Windows, Wing Pro 6.11

Cheers,

Steve

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2018-05-25 10:52:00 -0600

updated 2019-03-07 08:14:43 -0600

Wingware Admin gravatar image

The ones with ? are possible matches where Wing could not determine the types of one or both symbols so it doesn't know if it's actually the same symbol.  It looks like there is no way to check all the boxes quickly, which is partly an oversight and partly due to the fact that often this indicates that you should add to your Python Path in Project Properties so Wing can resolve imports or use one of the hints at http://wingware.com/doc/edit/helping-... so Wing can figure out the types.  Often not much is needed to get things to "click" for the analysis engine, and in general things work a lot better once this is done.

That said, I think we should try to make it easier to check items, probably by allowing multi-select in the list and checking on/off all the selected ones, as well as adding check-all-possible.  The issue here is of course that making this too easy can lead to people refactoring incorrectly.   Hence our greater emphasis on getting the analysis to be complete and correct in the first place...

edit flag offensive delete link more

Comments

Thanks very much! Hadn't set the python path, oops! Multi select would be handy like you say, but there's always a balance between making things quick and easy to both break and fix....Cheers,Steve

Steve Ingram gravatar imageSteve Ingram ( 2018-05-25 11:01:00 -0600 )edit
1

Hello I have the same problem of very many cliks for refactoring within the same module. While progressing in the analysis of my application, I feel like changing the name of a symbol which I find not appropriate. As long as this is in the same module, I do not think that python Path would help. Therefore I vote in favor of mutliple select!.....

piscvau gravatar imagepiscvau ( 2019-06-29 02:07:17 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2018-05-25 10:35:00 -0600

Seen: 170 times

Last updated: Jun 29