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

Capella project explorer doesn't refresh new requirements after closing/reopening a session #78

Open
eclipse-capella-bot opened this issue Jan 6, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@eclipse-capella-bot
Copy link

Capella 1.2.1
Requirements add-on 0.9.1

  • create new capella project
  • link it to the Capella Requirements VP (Viewpoint Manager)
  • right-click the "Logical Architecture" folder, and use "add capella element" then "Capella Module"
  • right-click the new module, "Add Capella Element", "Requirement"

The requirement appears in the tree (module is automatically expanded)

  • right-click again and add another requirement

The requirement appears automatically without saving the model

  • right-click the aird file and use "close"

session is closed, and the tree is automatically collapsed

  • double click the aird file to reopen a session
  • expand the tree down to the capella module
  • right-click, add capella element, Requirement

If the module is not expanded beforehand, it is automatically expanded and the requirement appears. If the module had already been expanded, the requirement won't appear. Whatever the case, any subsequent requirement you try to add in that module will not appear in the tree.

After this, you can create another capella module wherever in the tree, add a new requirement to it : the first requirement will show automatically, but any subsequent ones won't (basically, only newly expanded modules will show a requirement)

This only fails for Requirements (at least, that's the only one I detected).

🆔 ECLIPSE-555386 / POLARSYS-2182 👷 laurent.goubet 📅 2018-09-12 🔎 1.2.1

@eclipse-capella-bot eclipse-capella-bot added the enhancement New feature or request label Jan 6, 2021
@eclipse-capella-bot
Copy link
Author

nathalie.lepine commented on 2018-09-18

It seems that org.polarsys.capella.vp.requirements.Requirements.provider.CapellaRequirementsItemProviderDecoratorAdapterFactory does not inherit from org.polarsys.capella.core.data.gen.edit.decorators.CustomDecoratorAdapterFactory that clears itemProviderDecorators cache correctly.

public void dispose() {
super.dispose();

//[ECLIPSE-520102](https://github.com/search?q=ECLIPSE-520102&type=Issues)
itemProviderDecorators.clear();

...
}

See patch in attachment.

nathalie.lepine commented on 2018-09-18

Attachment: 2182.patch
OutOfMemoryError in Synchronizer.runAsyncMessages

laurent.goubet commented on 2018-09-24

The same bug happens when closing and reopening the capella model explorer instead of closing and reopening a session. The root cause is likely the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant