コード例 #1
0
 @Override
 public void add(@NotNull DockableContent content, RelativePoint dropTarget) {
   if (isTerminalSessionContent(content)) {
     TerminalSessionVirtualFileImpl terminalFile =
         (TerminalSessionVirtualFileImpl) content.getKey();
     myTerminalWidget.addTab(terminalFile.getName(), terminalFile.getTerminal());
     terminalFile.getTerminal().setNextProvider(myTerminalWidget);
   }
 }
コード例 #2
0
 private boolean isTerminalSessionContent(DockableContent content) {
   return content.getKey() instanceof TerminalSessionVirtualFileImpl;
 }