-
Notifications
You must be signed in to change notification settings - Fork 37
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
Open Type Editor from Instance Viewer #988
Conversation
alliuqemal
commented
Jan 23, 2025
- 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
78c9f2c
to
050c8f6
Compare
if (obj instanceof final EditPart ep) { | ||
obj = ep.getModel(); | ||
} | ||
|
||
final LibraryElement type = switch (obj) { | ||
final EObject type = switch (obj) { |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to :
getMatchingSubappFromType
Please rename the marked elements to increase code readability. |
050c8f6
to
fb13580
Compare