- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {ScheduledThreadPoolExecutor s =
new ScheduledThreadPoolExecutor(corePoolSize)
ThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
String str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
- Smart code suggestions by Codota
}
public int toDocumentLineNumber(int y_coordinate) { if (fDelegate instanceof IVerticalRulerInfo) ((IVerticalRulerInfo) fDelegate).toDocumentLineNumber(y_coordinate); return -1; }
public int toDocumentLineNumber(int y_coordinate) { if (fDelegate instanceof IVerticalRulerInfo) ((IVerticalRulerInfo) fDelegate).toDocumentLineNumber(y_coordinate); return -1; } }
@Override public int toDocumentLineNumber(int y_coordinate) { if (fDelegate instanceof IVerticalRulerInfo) return ((IVerticalRulerInfo)fDelegate).toDocumentLineNumber(y_coordinate); return -1; } }
/** * Returns the line of interest deduced from the mouse hover event. * * @param event a mouse hover event that triggered hovering * @return the document model line number on which the hover event occurred or <code>-1</code> if there is no event * @since 3.0 */ private int getHoverLine(MouseEvent event) { return event == null ? -1 : fVerticalRulerInfo.toDocumentLineNumber(event.y); }
/** * Returns the line of interest deduced from the mouse hover event. * * @param event a mouse hover event that triggered hovering * @return the document model line number on which the hover event occurred or <code>-1</code> if there is no event * @since 3.0 */ private int getHoverLine(MouseEvent event) { return event == null ? -1 : fVerticalRulerInfo.toDocumentLineNumber(event.y); }
@Override public int toDocumentLineNumber(int y_coordinate) { if (fDelegate instanceof IVerticalRulerInfo) return ((IVerticalRulerInfo)fDelegate).toDocumentLineNumber(y_coordinate); return -1; }
@Override protected void computeInformation() { Point location= getHoverEventLocation(); int line= getVerticalRulerInfo().toDocumentLineNumber(location.y); IAnnotationHover hover= getAnnotationHover(); IInformationControlCreator controlCreator= null; if (hover instanceof IAnnotationHoverExtension) controlCreator= ((IAnnotationHoverExtension)hover).getHoverControlCreator(); setCustomInformationControlCreator(controlCreator); setInformation(hover.getHoverInfo(getSourceViewer(), line), computeArea(location.y)); }
@Override protected void computeInformation() { Point location= getHoverEventLocation(); int line= getVerticalRulerInfo().toDocumentLineNumber(location.y); IAnnotationHover hover= getAnnotationHover(); IInformationControlCreator controlCreator= null; if (hover instanceof IAnnotationHoverExtension) controlCreator= ((IAnnotationHoverExtension)hover).getHoverControlCreator(); setCustomInformationControlCreator(controlCreator); setInformation(hover.getHoverInfo(getSourceViewer(), line), computeArea(location.y)); }