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); }
public void disposeConsoleTab() { getProject() .getModelAccess() .executeCommand( new Runnable() { public void run() { if (myEditor != null) { myEditor.dispose(); } TemporaryModels.getInstance().dispose(myModel); } }); myHighlighter.removeAdditionalEditorComponent(myEditor); }
public void disposeComponent() { myHighlighter.removeChecker(myChecker); myChecker.dispose(); }
public void initComponent() { myChecker = new BookmarksHighlighter(this); myHighlighter.addChecker(myChecker); }