1414import com .intellij .execution .ui .RunContentDescriptor ;
1515import com .intellij .execution .ui .RunnerLayoutUi ;
1616import com .intellij .execution .ui .actions .CloseAction ;
17- import com .intellij .execution .ui .layout .PlaceInGrid ;
1817import com .intellij .icons .AllIcons ;
1918import com .intellij .openapi .Disposable ;
2019import com .intellij .openapi .actionSystem .ActionGroup ;
@@ -126,7 +125,7 @@ public void run() {
126125
127126 // Create runner UI layout
128127 final RunnerLayoutUi .Factory factory = RunnerLayoutUi .Factory .getInstance (myProject );
129- final RunnerLayoutUi layoutUi = factory .create ("Tail " , "Tail " , "Tail " , myProject );
128+ final RunnerLayoutUi layoutUi = factory .create ("SQL " , "SQL " , "SQL " , myProject );
130129
131130 final JComponent consolePanel = createConsolePanel (consoleView , actions );
132131 RunContentDescriptor descriptor = new RunContentDescriptor (new RunProfile () {
@@ -149,9 +148,9 @@ public Icon getIcon() {
149148 }, new DefaultExecutionResult (), layoutUi );
150149 descriptor .setExecutionId (System .nanoTime ());
151150 //第二层名称显示
152- final Content content = layoutUi .createContent ("ConsoleContent" , consolePanel , myTitle , AllIcons . Debugger . Console , consolePanel );
151+ final Content content = layoutUi .createContent ("ConsoleContent" , consolePanel , "executable sql statements" , null , null );
153152 content .setCloseable (false );
154- layoutUi .addContent (content , 0 , PlaceInGrid . left , false );
153+ layoutUi .addContent (content );
155154 layoutUi .getOptions ().setLeftToolbar (createActionToolbar (consolePanel , consoleView , layoutUi , descriptor , executor ), "RunnerToolbar" );
156155
157156 Disposer .register (descriptor , this );
0 commit comments