예제 #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;
 }