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

Refactor element model #51

Merged
merged 12 commits into from
Jul 28, 2015
Merged

Refactor element model #51

merged 12 commits into from
Jul 28, 2015

Conversation

NickAb
Copy link
Contributor

@NickAb NickAb commented Jul 22, 2015

Moves scattered element logic to single WiniumElement class. Refactor find ocmmands to use virtual root, fix alert command, minor changes.
Fixes #49
Fixes #40


#endregion

internal class ElementsRegistry
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А я назвал ElementStorage. Предлагаю выбрать одно название и сделать одинаково

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Да, одно название будет разумно. Но тут сложным момент. Storage все же подразумевает хранение чего-то, а тут скорее мэппинг элументов, которые есть в дереве интерфейса на ключи. Особенно это важно, учтивая то, что в результате сохраняются слабые ссылки на элементы интерфейса. Т.е. элемент интерфейса может быть спокойно удален, если он больше не нужен основной программе. А вот "хранилище" подразумевает сильные ссылки и все вытекающее.

@skyline-gleb skyline-gleb deleted the refactor-element branch July 28, 2015 05:29
@NickAb NickAb restored the refactor-element branch July 28, 2015 05:42
@NickAb NickAb reopened this Jul 28, 2015
skyline-gleb added a commit that referenced this pull request Jul 28, 2015
@skyline-gleb skyline-gleb merged commit 2306f98 into master Jul 28, 2015
@skyline-gleb skyline-gleb deleted the refactor-element branch July 28, 2015 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants