Skip to content

Make positionCaret package-private#415

Merged
JordanMartinez merged 1 commit intoFXMisc:masterfrom
JordanMartinez:positionCaret
Jan 16, 2017
Merged

Make positionCaret package-private#415
JordanMartinez merged 1 commit intoFXMisc:masterfrom
JordanMartinez:positionCaret

Conversation

@JordanMartinez
Copy link
Copy Markdown
Contributor

Since this may have value beyond what I know for code editors and the like, I have to ask: why did you originally implement this method? Is making this method package private desirable? AFAIK, we're only doing that because many confused moveTo's functionality for positionCaret, since the latter implies that more so than the former.
In my opinion, it would be better to rename moveTo to include "caret" in it (moveCaretTo? moveCaret? caretTo?) and rename positionCaret to include more explanatory details (positionCaretDisconnectedly? positionCaretSeparately?).

@JordanMartinez
Copy link
Copy Markdown
Contributor Author

For now, I'm going to merge this. We can always expose it later on as a better-named method.

@JordanMartinez JordanMartinez merged commit 84bf47f into FXMisc:master Jan 16, 2017
@JordanMartinez JordanMartinez deleted the positionCaret branch January 16, 2017 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant