Skip to content

2306 ge properties for refined elements#2316

Merged
philip-alldredge merged 6 commits into
masterfrom
2306_ge_properties_for_refined_elements
May 8, 2020
Merged

2306 ge properties for refined elements#2316
philip-alldredge merged 6 commits into
masterfrom
2306_ge_properties_for_refined_elements

Conversation

@RyanMcilnay
Copy link
Copy Markdown
Contributor

Closes #2306.

@philip-alldredge
Copy link
Copy Markdown
Contributor

@RyanMcilnay can you explain what this fixes? The issue isn't very clear about what the problem is.

@RyanMcilnay
Copy link
Copy Markdown
Contributor Author

@philip-alldredge Fixed based on your comments.

sc = sc.getRefined();
}

final Subcomponent sc = (Subcomponent) AadlHelper.getRootRefinedElement(ne);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll try to ignore problems like the fact getTypeOptionsInformation does something different from its name IMHO, which are outside the scope of this issue, I don't believe this fix is what we want.

I'm having trouble understanding why the original code gets the refined element at the start. It would seem that the if statement should be removed. The compatible subcomponent should be based on the containing classifier of the subcomponent(even if it is refined) and if a AbstractSubcomponent is being refined, then it should be changeable to anything.

In short, please avoid getting the refined subcomponent at the start and test.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RyanMcilnay sorry I added the last comment after you made changes. I should of taken my own advise and used the review feature.

@RyanMcilnay
Copy link
Copy Markdown
Contributor Author

@philip-alldredge Changes made based on comments are done.

@philip-alldredge philip-alldredge merged commit 8b94119 into master May 8, 2020
@philip-alldredge philip-alldredge deleted the 2306_ge_properties_for_refined_elements branch May 8, 2020 14:19
@lwrage lwrage removed this from the 2.8.0 milestone Jun 17, 2020
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.

Graphical editor AADL properties section of refined elements doesn't work

3 participants