Ejemplo n.º 1
0
  protected void initConsoleTab(@Nullable final String history) {
    getProject()
        .getModelAccess()
        .executeCommand(
            new Runnable() {
              public void run() {
                createConsoleModel();
                addBuiltInImports();
                loadHistory(history);
                createEditor();
                myFileEditor = new ConsoleFileEditor(myEditor);
              }
            });

    this.setLayout(new BorderLayout());

    DefaultActionGroup group = new DefaultActionGroup();
    registerActions(group);
    ActionToolbar toolbar =
        ActionManager.getInstance().createActionToolbar(ActionPlaces.UNKNOWN, group, false);
    JPanel toolbarComponent = new JPanel(new BorderLayout());
    toolbarComponent.add(toolbar.getComponent(), BorderLayout.CENTER);

    this.add(toolbarComponent, BorderLayout.WEST);
    this.add(myEditor.getExternalComponent(), BorderLayout.CENTER);

    myHighlighter = check_6q36mf_a0o0ic(myTool.getProject());
    myHighlighter.addAdditionalEditorComponent(myEditor);
  }
Ejemplo n.º 2
0
 public void disposeConsoleTab() {
   getProject()
       .getModelAccess()
       .executeCommand(
           new Runnable() {
             public void run() {
               if (myEditor != null) {
                 myEditor.dispose();
               }
               TemporaryModels.getInstance().dispose(myModel);
             }
           });
   myHighlighter.removeAdditionalEditorComponent(myEditor);
 }
Ejemplo n.º 3
0
 public void disposeComponent() {
   myHighlighter.removeChecker(myChecker);
   myChecker.dispose();
 }
Ejemplo n.º 4
0
 public void initComponent() {
   myChecker = new BookmarksHighlighter(this);
   myHighlighter.addChecker(myChecker);
 }