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

Generate View For Elements - "Add all available connections" mystery option #585

Closed
Phillipus opened this issue Feb 26, 2020 · 5 comments
Closed

Comments

@Phillipus
Copy link
Member

When using the "Generate View For..." feature selecting "Add all available connections" doesn't seem to do anything.

These are the line in the code (GenerateViewCommand.java):

// Don't add connections that are not connected to the main elements if option is set
if(!fAddAllConnections && !(fSelectedElements.contains(elementSource)) && !(fSelectedElements.contains(elementTarget))) {
   continue;
}

There might be a mistake in that one line so it should be:

if(!fAddAllConnections && !(fSelectedElements.contains(elementSource) && fSelectedElements.contains(elementTarget)))

But, to be honest, I can't remember why we would want such an option. Maybe it could be removed.

See https://forum.archimatetool.com/index.php?topic=799

@Phillipus
Copy link
Member Author

It does do something if you select different elements for the "Generate View" command.

For example, given this:

1

If you select elements A and D and do a "Generate View" with the option deselected you get:

2

If you select elements A and D with the option selected you get:

1

@jbsarrodie
Copy link
Member

I don't understand because:

  1. I sometime use this option
  2. As far as I can tell, it works

@Phillipus
Copy link
Member Author

@jbsarrodie Yes, it does. I just couldn't remember...

@jbsarrodie
Copy link
Member

When in doubt, ask an Archi user you know ;-)

@Phillipus
Copy link
Member Author

alt text

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

No branches or pull requests

2 participants