public void run () { CloneableTopComponent editor = openCloneableTopComponent(); editor.requestActive(); } });
public void run () { CloneableTopComponent editor = openCloneableTopComponent(); editor.requestActive(); } });
/** Shows the line. * @param kind one of SHOW_XXX constants. * @column the column of this line which should be selected */ public void show (int kind, int column) { CloneableEditorSupport support = pos.getCloneableEditorSupport(); if (kind == SHOW_TRY_SHOW && !support.isDocumentLoaded ()) return; CloneableEditorSupport.Pane editor = support.openAt(pos, column); if (kind == SHOW_GOTO) { editor.getComponent ().requestActive(); } }
/** Shows the line. * @param kind one of SHOW_XXX constants. * @column the column of this line which should be selected */ public void show (int kind, int column) { CloneableEditorSupport support = pos.getCloneableEditorSupport(); if (kind == SHOW_TRY_SHOW && !support.isDocumentLoaded ()) return; CloneableEditorSupport.Pane editor = support.openAt(pos, column); if (kind == SHOW_GOTO) { editor.getComponent ().requestActive(); } }
@Deprecated public void show(int kind, int column) { CloneableEditorSupport support = pos.getCloneableEditorSupport(); if ((kind == SHOW_TRY_SHOW) && !support.isDocumentLoaded()) { return; } CloneableEditorSupport.Pane editor; if (kind == SHOW_REUSE || kind == SHOW_REUSE_NEW) { editor = support.openReuse(pos, column, kind); } else { editor = support.openAt(pos, column); if (kind == SHOW_TOFRONT) editor.getComponent().toFront(); } if (kind != SHOW_TRY_SHOW && kind != SHOW_SHOW) { editor.getComponent().requestActive(); } }
@Override public void show(ShowOpenType openType, ShowVisibilityType visibilityType, int column) { CloneableEditorSupport support = pos.getCloneableEditorSupport(); if ((openType == ShowOpenType.NONE) && !support.isDocumentLoaded()) { return; } CloneableEditorSupport.Pane editor = null; if ((openType == ShowOpenType.REUSE) || (openType == ShowOpenType.REUSE_NEW)) { editor = support.openReuse(pos, column, openType); } else if ((openType == ShowOpenType.OPEN) || (openType == ShowOpenType.NONE)) { //For ShowOpenType.NONE if editor is not yet opened method returns above editor = support.openAt(pos, column); } if (editor != null) { if (visibilityType == ShowVisibilityType.FRONT) { editor.getComponent().requestVisible(); editor.getComponent().toFront(); } else if (visibilityType == ShowVisibilityType.FOCUS) { editor.getComponent().requestActive(); } } }