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

Direct association #2526

Merged
merged 4 commits into from
Jul 22, 2023
Merged

Direct association #2526

merged 4 commits into from
Jul 22, 2023

Conversation

sz332
Copy link
Contributor

@sz332 sz332 commented Jul 22, 2023

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

Direct association between classes and sysml blocks.

  • Bug fix
  • Feature
  • Chore (refactoring, formatting, local variables, other cleanup)
  • Documentation content changes

What is the current behavior?

Currently it is very painful to create a direct (navigable) association. A normal association must be created, then going into properties, finding the tail element, and setting navigability. It takes just too much time.

Issue Number: 2516

What is the new behavior?

A new toolbar button is added enabling the same outcome with a single click.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

I could not find how to properly do the translations so I need some help in that.

@github-actions github-actions bot added the python Pull requests that update Python code label Jul 22, 2023
@amolenaar
Copy link
Member

@sz332 This looks good. Is it ready to merge?

@sz332
Copy link
Contributor Author

sz332 commented Jul 22, 2023

@sz332 This looks good. Is it ready to merge?

It is ready to merge, the one think I don't know how to do is translation. Should I do something, or is it a separate process? If I need to do something, can you please help me to add the necessary translation string?

@amolenaar
Copy link
Member

Translation is something we kick of separately mostly, so we can update all text in one shot.

@amolenaar
Copy link
Member

@sz332 The unit tests fail with a message:

Duplicate toolbox shortcut <Shift>O for ['toolbox-direct-association', 'toolbox-object-node']

I think the keyboard shortcut should be removed from directed-association. It can be None.

@sz332
Copy link
Contributor Author

sz332 commented Jul 22, 2023

@sz332 The unit tests fail with a message:

Duplicate toolbox shortcut <Shift>O for ['toolbox-direct-association', 'toolbox-object-node']

I think the keyboard shortcut should be removed from directed-association. It can be None.

Removed the keyboard shortcuts. Can you try it out? Thanks!

@amolenaar amolenaar merged commit 004ebf0 into gaphor:main Jul 22, 2023
7 checks passed
@sz332 sz332 deleted the direct-association branch July 22, 2023 17:43
@danyeaw danyeaw added feature A new feature and removed python Pull requests that update Python code labels Jul 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants