Skip to content

Commit 8a903c8

Browse files
authored
Change ContentFactory.SERVICE.getInstance() to ContentFactory.getInstance() (flutter#6948) (flutter#6947)
See this for some additional context: https://youtrack.jetbrains.com/issue/IDEA-299177/NoSuchMethodError-when-calling-com.intellij.ui.content.ContentFactory.getInstance
1 parent 937170c commit 8a903c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

flutter-idea/src/io/flutter/console/FlutterConsole.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ static FlutterConsole create(@NotNull Project project, @Nullable Module module)
5858
panel.setContent(view.getComponent());
5959

6060
final String title = module != null ? "[" + module.getName() + "] Flutter" : "Flutter";
61-
final Content content = ContentFactory.SERVICE.getInstance().createContent(panel.getComponent(), title, true);
61+
final Content content = ContentFactory.getInstance().createContent(panel.getComponent(), title, true);
6262
Disposer.register(content, view);
6363

6464
return new FlutterConsole(view, content, project, module);

flutter-idea/src/io/flutter/preview/PreviewView.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public void loadState(@NotNull PreviewViewState state) {
186186
}
187187

188188
public void initToolWindow(@NotNull ToolWindow toolWindow) {
189-
final ContentFactory contentFactory = ContentFactory.SERVICE.getInstance();
189+
final ContentFactory contentFactory = ContentFactory.getInstance();
190190
final ContentManager contentManager = toolWindow.getContentManager();
191191

192192
final Content content = contentFactory.createContent(null, null, false);

0 commit comments

Comments
 (0)