Skip to content

Commit

Permalink
Application: Compilation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadelessFox committed Mar 1, 2024
1 parent b140fc4 commit 5f8f9d8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,7 @@ private void paintOnboarding(@NotNull Graphics2D g2) {
height += spacing;
}

// To make the text positioned relatively to the center of the window, not the editor stack
final var parent = getParent();
final int deltaX = parent.getWidth() - getWidth();
final int deltaY = parent.getHeight() - getHeight();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,17 @@ public void update(@NotNull JToolBar toolBar) {
}
}

@Nullable
@Override
public MenuItemRegistration findItem(@NotNull String id) {
for (var contribution : contributedItems) {
if (contribution.metadata().id().equals(id)) {
return contribution.metadata();
}
}

return null;
}

@NotNull
private JMenuBar createMenuBar(@NotNull String id, @NotNull DataContext context) {
Expand Down

0 comments on commit 5f8f9d8

Please sign in to comment.