@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(); } }
ce.getComponent().putClientProperty(PROP_PANE, ce); ce.getComponent().setReference(allEditors); CloneableTopComponent ctc = ce.getComponent(); if (reuse && displayMsgOpened) { CloneableTopComponent last = lastReusable.get();
ce.getComponent().putClientProperty(PROP_PANE, ce); ce.getComponent().setReference(allEditors); ce.getComponent ().open();
ce.getComponent().putClientProperty(PROP_PANE, ce); ce.getComponent().setReference(allEditors); ce.getComponent ().open();
@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(); } } }
/** Prepares document, creates and initializes * new <code>CloneableEditor</code> component. * Typically do not override this method. * For creating your own <code>CloneableEditor</code> type component * override {@link #createCloneableEditor} method. * * @return the {@link CloneableEditor} for this support */ protected CloneableTopComponent createCloneableTopComponent () { // initializes the document if not initialized prepareDocument (); Pane pane = createPane (); pane.getComponent().putClientProperty(PROP_PANE, pane); return pane.getComponent (); }
/** Prepares document, creates and initializes * new <code>CloneableEditor</code> component. * Typically do not override this method. * For creating your own <code>CloneableEditor</code> type component * override {@link #createCloneableEditor} method. * * @return the {@link CloneableEditor} for this support */ protected CloneableTopComponent createCloneableTopComponent () { // initializes the document if not initialized prepareDocument (); Pane pane = createPane (); pane.getComponent().putClientProperty(PROP_PANE, pane); return pane.getComponent (); }
/** Prepares document, creates and initializes * new <code>CloneableEditor</code> component. * Typically do not override this method. * For creating your own <code>CloneableEditor</code> type component * override {@link #createCloneableEditor} method. * * @return the {@link CloneableEditor} for this support */ protected CloneableTopComponent createCloneableTopComponent() { // initializes the document if not initialized prepareDocument(); Pane pane = createPane(); pane.getComponent().putClientProperty(PROP_PANE, pane); return pane.getComponent(); }
public CloneableTopComponent getComponent () { JComponent view = getView (); return view instanceof CloneableEditorSupport.Pane ? ((CloneableEditorSupport.Pane) view).getComponent () : null; }
/** 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(); } }