Skip to content

Commit

Permalink
Add some additional instruction in the Flutter Outline message
Browse files Browse the repository at this point in the history
This is a follow-up on flutter#7779
  • Loading branch information
jwren committed Nov 18, 2024
1 parent d9c5787 commit 57796cd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion flutter-idea/src/io/flutter/preview/PreviewView.java
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,11 @@ public void initToolWindow(@NotNull ToolWindow toolWindow) {
text.setBorder(BorderFactory.createEmptyBorder(20, 20, 20, 20));
text.setCharacterAttributes(
StyleContext.getDefaultStyleContext().addAttribute(SimpleAttributeSet.EMPTY, StyleConstants.Foreground, new Color(234, 57, 35)), false);
text.setText("The Flutter Outline window is being removed soon. Use the Structure view instead: View -> Tool Windows -> Structure");
text.setText("""
The Flutter Outline window is being removed soon. Use the Structure view instead: View -> Tool Windows -> Structure\
The refactorings in the Outline view can be found in the editor as Context Actions ⌥⏎ (macOS) / Alt+Enter (Windows/Linux)\s""");
text.setFont(UIManager.getFont("Label.font").deriveFont(Font.BOLD));
warning.add(text);
contentManager.getComponent().add(warning);
Expand Down

0 comments on commit 57796cd

Please sign in to comment.