public void actionPerformed(ActionEvent evt, JTextComponent target) { if (target != null) { getSupport().showFindDialog(new KeyEventBlocker(target, false)); } }
public void actionPerformed(ActionEvent evt, JTextComponent target) { if (target != null) { ExtUtilities.getExtEditorUI(target).hidePopupMenu(); Completion cpl = ExtUtilities.getExtEditorUI(target).getCompletion(); if (cpl != null) { cpl.setPaneVisible(false); } } } }
/** Immediately sets Content of javadoc withou popup delay * @param content String representation of the displayed text. * In the case of current implementation it is an HTML document * Can be <code>null</code> in this case javaDoc popup will be hidden */ public void setContent(String content){ if (content == null){ setJavaDocVisible(false); return; } getJavaDocView().setContent(content); }
/** * Get the token-position preceeding the given one. Use the same bias like * the given position has. */ public FormatTokenPosition getPreviousPosition(FormatTokenPosition pos) { return getPreviousPosition(pos.getToken(), pos.getOffset(), pos.getBias()); }
/** Get the next successive token-position after the given one. * Use the same bias like the given position has. */ public FormatTokenPosition getNextPosition(FormatTokenPosition pos) { return getNextPosition(pos.getToken(), pos.getOffset(), pos.getBias()); }
/** Get the token-position preceeding the given one. * @param bias bias that the returned position will have. */ public FormatTokenPosition getNextPosition(FormatTokenPosition pos, Position.Bias bias) { return getNextPosition(pos.getToken(), pos.getOffset(), bias); }
public boolean isCommentOrWhitespace(int startPos, int endPos) throws BadLocationException { CommentOrWhitespaceTP tp= new CommentOrWhitespaceTP(getCommentTokens()); tokenizeText(tp, startPos, endPos, true); return !tp.nonEmpty; }
/** Returns javadoc pane */ public JavaDocPane getJavaDocPane(){ if (javadoc == null) { Completion c = extEditorUI.getCompletion(); if (c!=null){ javadoc = c.getJavaDocPane(); } } return javadoc; }
public static CompletionJavaDoc getCompletionJavaDoc(JTextComponent target) { ExtEditorUI extEditorUI = getExtEditorUI(target); if (extEditorUI != null) { return extEditorUI.getCompletionJavaDoc(); } return null; }
public void actionPerformed(ActionEvent evt, JTextComponent target) { if (target != null) { Completion completion = ExtUtilities.getCompletion(target); if (completion != null) { completion.setPaneVisible(true); } } }
public void actionPerformed(ActionEvent evt, JTextComponent target) { if (target != null) { new GotoDialogSupport().showGotoDialog(new KeyEventBlocker(target, false)); } }
private void clearJavadocContent(){ CompletionJavaDoc cjd = extEditorUI.getCompletionJavaDoc(); if (cjd!=null){ cjd.clearContent(); } }
public void actionPerformed(ActionEvent evt, JTextComponent target) { if (target != null) { getSupport().showFindDialog(); } }
/** Sets completion pane visiblility */ public void setCompletionVisible(boolean visible){ completion.setVisible(visible); setVisible(visible); }
/** Reset the result of the last valid completion query. This * is done for example after the document was modified. */ public synchronized final void invalidateLastResult() { currentTask().cancel(); lastResult = null; caretPos = -1; }
/** Read some part of the file into the begining of bytes array * and reset offset to zero. */ public void read(int len) throws IOException { checkBytesSize(len); da.read(bytes, 0, len); offset = 0; }
/** Get the token-position preceeding the given one. Use the same * bias like the given position has. */ public FormatTokenPosition getPreviousPosition(FormatTokenPosition pos) { return getPreviousPosition(pos.getToken(), pos.getOffset(), pos.getBias()); }
/** * Get the token-position preceeding the given one. * * @param bias * bias that the returned position will have. */ public FormatTokenPosition getNextPosition(FormatTokenPosition pos, Position.Bias bias) { return getNextPosition(pos.getToken(), pos.getOffset(), bias); }
/** Returns javadoc pane */ public JavaDocPane getJavaDocPane(){ if (javadoc == null) { Completion c = extEditorUI.getCompletion(); if (c!=null){ javadoc = c.getJavaDocPane(); } } return javadoc; }