First time here? Check out the FAQ!
1

Select items to refactor
 

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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Steve Ingram's avatar
11
Steve Ingram
asked 6 years ago
Wingware Support's avatar
4.2k
Wingware Support
updated 6 years ago

Comments

see more comments

1 Answer

0

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...

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Wingware Support's avatar
4.2k
Wingware Support
answered 6 years ago
Wingware Admin's avatar
255
Wingware Admin
updated 6 years ago
link

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's avatar Steve Ingram (6 years ago)
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's avatar piscvau (5 years ago)
see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)