Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark the selection in the captured code snippet #317

Closed
reprogrammer opened this issue Aug 27, 2011 · 3 comments
Closed

Mark the selection in the captured code snippet #317

reprogrammer opened this issue Aug 27, 2011 · 3 comments
Assignees

Comments

@reprogrammer
Copy link
Collaborator

Sometimes refactorings are unavailable or report problems due to wrong selections. Therefore, it's interesting to study the selections. CodingSpectator captures both structural and textual selections (See issues #163 and #170). It stores the offsets of the textual selections relative to the captured code snippet. I suggest that we change the CSV file generator to add a column that contains the string corresponding to the offsets of the textual selections relative to the captured code snippet.

@vazexqi
Copy link
Owner

vazexqi commented Aug 27, 2011

I'm using the selection column in #312. Is that different? What does the selection column report then?

@reprogrammer
Copy link
Collaborator Author

I had forgot the "selection-text" attribute. Thanks for reminding me. The "selection-text" attribute computes the string of the selection. However, the length of the selection is usually zero because most of the time the user just needs to place the cursor inside the right program element. The beginning offset of the attribute "selection-in-code-snippet" would help us determine the cursor position when the selection is empty. What is the best way to present where the user has placed the cursor?

@reprogrammer
Copy link
Collaborator Author

I think it would be nice to make the generator of the final CSV file add a column that contains the code snippets and their containing selections.

reprogrammer added a commit that referenced this issue Sep 4, 2011
Made the CSV generator add a column containing code snippets that are marked up with selections.

This commit belongs to issue #317.
reprogrammer added a commit that referenced this issue Sep 5, 2011
This commit belongs to issue #317.
reprogrammer added a commit that referenced this issue Sep 6, 2011
reprogrammer added a commit that referenced this issue Sep 7, 2011
reprogrammer added a commit that referenced this issue Sep 7, 2011
@ghost ghost assigned reprogrammer Sep 15, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants