コード例 #1
0
 @NotNull
 @Override
 protected ProcessBackedConsoleExecuteActionHandler createExecuteActionHandler() {
   myConsoleExecuteActionHandler =
       new PydevConsoleExecuteActionHandler(
           getConsoleView(), getProcessHandler(), myPydevConsoleCommunication);
   myConsoleExecuteActionHandler.setEnabled(false);
   myHistoryController =
       new ConsoleHistoryController(
           myConsoleType.getTypeId(),
           "",
           getLanguageConsole(),
           myConsoleExecuteActionHandler.getConsoleHistoryModel());
   myHistoryController.install();
   return myConsoleExecuteActionHandler;
 }
コード例 #2
0
 private void enableConsoleExecuteAction() {
   myConsoleExecuteActionHandler.setEnabled(true);
 }
コード例 #3
0
 private boolean isIndentSubstring(String text) {
   int indentSize = myConsoleExecuteActionHandler.getPythonIndent();
   return text.length() >= indentSize
       && CharMatcher.WHITESPACE.matchesAllOf(text.substring(text.length() - indentSize));
 }