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

Remove middleman: ESD is the model now, not STAModel #463

Merged
merged 3 commits into from
Mar 23, 2017
Merged

Remove middleman: ESD is the model now, not STAModel #463

merged 3 commits into from
Mar 23, 2017

Conversation

JordanMartinez
Copy link
Contributor

When the skin was removed, STAModel was created to separate model concerns from view concerns. However, this was before EditableStyledDocument became a public interface. Now that ESD is a public interface, STAModel does nothing more than delegate method calls to that object and handle positions of things within the document (caretPosition, caretColumn, selectedText, etc.)

As of now, this build currently fails because STAModelTest can not create a STAModel. This can be resolved by using TestFX to create an area and then run the tests.
Even so, since #333 should be done, these tests shouldn't matter.

However, I believe more of the model-related things should still be stored in EditableStyledDocument (e.g., the SuspendableVals for various things [text, paragraphs, etc.]) as these values only need to be stored in one object, not stored in each view. I still need to do this.

@JordanMartinez
Copy link
Contributor Author

The two issues above have now been addressed

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