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

Extra diagram item tests #309

Merged
merged 30 commits into from May 9, 2020
Merged

Extra diagram item tests #309

merged 30 commits into from May 9, 2020

Conversation

amolenaar
Copy link
Member

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Documentation content changes

What is the new behavior?

I created some tests that capture general rules.

It turned out DependencyItem and ImplementationItem should show a name and be editable.

NB. This PR builds on top of #305 .

Does this PR introduce a breaking change?

  • Yes
  • No

@danyeaw danyeaw added the chore Maintenance related PR label May 9, 2020
@danyeaw danyeaw added this to the 1.3 milestone May 9, 2020
Use Python3 dict protocol compliant methods.
Canvas items now always store references (no extra reference parameter).
Still assumes the model will not change underneath.
They're caught on Elementfactory level and it will allow us to paste
propertly.
Association should be copied along with its memberEnds.
So component paste action will set all properties right.
Now `cls.ownedAttribute[:].name` is typed.
Tis way elements do not get "lost" when they do not have a namespace
attached.

Note that some elements are NamedElement's, yet are not added to the
right package. Those are left as is.
Now the trio is complete.
They differentiate mainly on "kind" attribute.
Pseudostate was the odd one out. Fixed in previous commit.
The Named interface is used to tell the inline editor that the
name of the element can be changed.
@amolenaar amolenaar merged commit a386843 into master May 9, 2020
@amolenaar amolenaar deleted the extra-diagramitem-tests branch May 9, 2020 21:16
@amolenaar amolenaar mentioned this pull request May 9, 2020
17 tasks
@danyeaw danyeaw modified the milestones: 1.3, 2.0 Jul 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Maintenance related PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants