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

Open Type Editor from Instance Viewer #988

Merged

Conversation

alliuqemal
Copy link

  • added "Open Type in Editor" on popup menu of typed and untyped subapps
  • updated OpenTypeHandler to support opening typed subapps
  • open with breadcrumb when opening untyped subapp inside typed subapp

@alliuqemal alliuqemal force-pushed the feature/type-editor-menu branch from 78c9f2c to 050c8f6 Compare January 23, 2025 15:35
Copy link

github-actions bot commented Jan 23, 2025

Test Results

   111 files  ±0     111 suites  ±0   48s ⏱️ ±0s
29 177 tests ±0  29 177 ✅ ±0  0 💤 ±0  0 ❌ ±0 
29 178 runs  ±0  29 178 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit fb13580. ± Comparison against base commit 0774b7f.

♻️ This comment has been updated with latest results.

if (obj instanceof final EditPart ep) {
obj = ep.getModel();
}

final LibraryElement type = switch (obj) {
final EObject type = switch (obj) {
Copy link
Contributor

Choose a reason for hiding this comment

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

rename to eObject, its not always a type

return null;
}

}
private static EObject getTypeFromFbn(final FBNetwork fbn) {
Copy link
Contributor

Choose a reason for hiding this comment

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

rename to getEObjectForOpening

if (element.eContainer() instanceof final TypedSubApp tsa) {
subAppNames.add(tsa.getName());

return getUntypedSubApp(subAppNames.reversed(), tsa.getType());
Copy link
Contributor

Choose a reason for hiding this comment

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

rename to :
getMatchingSubappFromType

@oberlehner
Copy link
Contributor

Please rename the marked elements to increase code readability.
The test in UI works perfectly fine :-)

@alliuqemal alliuqemal force-pushed the feature/type-editor-menu branch from 050c8f6 to fb13580 Compare January 27, 2025 07:50
@oberlehner oberlehner merged commit b44e713 into eclipse-4diac:develop Jan 27, 2025
4 checks passed
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.

2 participants