Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
244,200 | int () { int targetTimeout = DEFAULT_TIMEOUT_MS; try { targetTimeout = Advapi32Util.registryGetIntValue(WinReg.HKEY_CURRENT_USER, "Control Panel\\Desktop", "ForegroundLockTimeout"); if (LOG.isDebugEnabled()) { LOG.debug("ForegroundLockTimeout read from registry: " + targetTimeout); } } catch (Exception e) { LOG.warn("E... | readRegistryTimeoutValue |
244,201 | int () { int currentTimeout = DEFAULT_TIMEOUT_MS; try { WinDef.UINTByReference result = new WinDef.UINTByReference(); if (User32Ex.INSTANCE.SystemParametersInfo(new WinDef.UINT(0x2000 /* SPI_GETFOREGROUNDLOCKTIMEOUT */), new WinDef.UINT(), result, new WinDef.UINT())) { currentTimeout = result.getValue().intValue(); if ... | readCurrentTimeoutValue |
244,202 | boolean (int value) { try { if (User32Ex.INSTANCE.SystemParametersInfo(new WinDef.UINT(0x2001 /* SPI_SETFOREGROUNDLOCKTIMEOUT */), new WinDef.UINT(), new WinDef.UINT(value), new WinDef.UINT())) { LOG.info("Foreground lock timeout set to " + value); return true; } else { LOG.debug("Failed to set foreground lock timeout ... | writeCurrentTimeoutValue |
244,203 | void (AWTEvent event) { if (myUpdateScheduled != null) { if (LOG.isDebugEnabled()) { LOG.debug("Detected user interaction, trying to update focus stealing status to '" + myUpdateScheduled + "'"); } doUpdate(myUpdateScheduled); } } | eventDispatched |
244,204 | void () { synchronized (myLock) { myDisposed = true; myLibNotify.notify_uninit(); } } | appClosing |
244,205 | void (@NotNull String name, @NotNull String title, @NotNull String description) { ApplicationManager.getApplication().executeOnPooledThread(() -> { synchronized (myLock) { if (!myDisposed) { Pointer notification = myLibNotify.notify_notification_new(title, description, myIcon); myLibNotify.notify_notification_show(noti... | notify |
244,206 | void (@NotNull CheckboxTreeListener listener) { myEventDispatcher.addListener(listener); } | addCheckboxTreeListener |
244,207 | HintHint (boolean awtTooltip) { myAwtTooltip = awtTooltip; return this; } | setAwtTooltip |
244,208 | HintHint (boolean mayCenter) { myMayCenterTooltip = mayCenter; return this; } | setMayCenterPosition |
244,209 | boolean () { return myMayCenterTooltip; } | isMayCenterTooltip |
244,210 | HintHint (Balloon.Position position) { myPreferredPosition = position; return this; } | setPreferredPosition |
244,211 | boolean () { return myAwtTooltip; } | isAwtTooltip |
244,212 | boolean () { return myForcePopup; } | isPopupForced |
244,213 | HintHint (boolean forcePopup) { myForcePopup = forcePopup; return this; } | setForcePopup |
244,214 | Component () { return myOriginalComponent; } | getOriginalComponent |
244,215 | Point () { return myOriginalPoint; } | getOriginalPoint |
244,216 | RelativePoint () { return new RelativePoint(getOriginalComponent(), getOriginalPoint()); } | getTargetPoint |
244,217 | Border () { return myComponentBorder; } | getComponentBorder |
244,218 | void (@Nullable Border border) { myComponentBorder = border; } | setComponentBorder |
244,219 | Color () { return myTextFg != null ? myTextFg : getTooltipManager().getTextForeground(myAwtTooltip); } | getTextForeground |
244,220 | Color () { return myTextBg != null ? myTextBg : getTooltipManager().getTextBackground(myAwtTooltip); } | getTextBackground |
244,221 | Color () { return getTooltipManager().getLinkForeground(myAwtTooltip); } | getLinkForeground |
244,222 | boolean () { return getTooltipManager().isOwnBorderAllowed(myAwtTooltip); } | isOwnBorderAllowed |
244,223 | Color () { return myBorderColor != null ? myBorderColor : JBUI.CurrentTheme.Tooltip.borderColor(); } | getBorderColor |
244,224 | boolean () { return myBorderColor != null; } | isBorderColorSet |
244,225 | Insets () { return myBorderInsets; } | getBorderInsets |
244,226 | boolean () { return getTooltipManager().isOpaqueAllowed(myAwtTooltip); } | isOpaqueAllowed |
244,227 | Font () { return myFont != null ? myFont : getTooltipManager().getTextFont(myAwtTooltip); } | getTextFont |
244,228 | Icon () { return myStatusIcon; } | getStatusIcon |
244,229 | String () { return getTooltipManager().getUlImg(myAwtTooltip); } | getUlImg |
244,230 | boolean () { return myContentActive; } | isContentActive |
244,231 | boolean () { return myExplicitClose; } | isExplicitClose |
244,232 | HintHint (boolean active) { myContentActive = active; return this; } | setContentActive |
244,233 | HintHint (boolean highlighter) { myQuickHint = highlighter; return this; } | setHighlighterType |
244,234 | boolean () { return myQuickHint; } | isHighlighterType |
244,235 | IdeTooltipManager () { return IdeTooltipManager.getInstance(); } | getTooltipManager |
244,236 | void (Component c, boolean includeChildren) { if (includeChildren) { for (Component component : UIUtil.uiTraverser(c)) { doInit(component); } } else { doInit(c); } } | initStyle |
244,237 | void (Component c) { c.setForeground(getTextForeground()); c.setBackground(getTextBackground()); c.setFont(getTextFont()); if (c instanceof JComponent jc) { jc.setOpaque(isOpaqueAllowed()); jc.setBorder(isOwnBorderAllowed() ? BorderFactory.createCompoundBorder(BorderFactory.createLineBorder(Color.black), BorderFactory.... | doInit |
244,238 | void (JComponent component) { myTextFg = component.getForeground(); myTextBg = component.getBackground(); myFont = component.getFont(); boolean setDefaultStatus = true; HintUtil.HintLabel label = UIUtil.findComponentOfType(component, HintUtil.HintLabel.class); if (label != null) { HintHint componentHintLabel = label.ge... | initStyleFrom |
244,239 | HintHint (Color textFg) { myTextFg = textFg; return this; } | setTextFg |
244,240 | HintHint (Color textBg) { myTextBg = textBg; return this; } | setTextBg |
244,241 | HintHint (Font font) { myFont = font; return this; } | setFont |
244,242 | HintHint (Color borderColor) { myBorderColor = borderColor; return this; } | setBorderColor |
244,243 | HintHint (Insets insets) { myBorderInsets = insets; return this; } | setBorderInsets |
244,244 | int () { return myCalloutShift; } | getCalloutShift |
244,245 | HintHint (int calloutShift) { myCalloutShift = calloutShift; return this; } | setCalloutShift |
244,246 | HintHint (boolean explicitClose) { myExplicitClose = explicitClose; return this; } | setExplicitClose |
244,247 | HintHint (int x, int y) { myPositionChangeX = x; myPositionChangeY = y; return this; } | setPositionChangeShift |
244,248 | HintHint (@NotNull Status status) { if (ExperimentalUI.isNewUI()) { applyStatus(status); } return this; } | setStatus |
244,249 | HintHint (@NotNull Status status, @NotNull Insets borderInsets) { if (ExperimentalUI.isNewUI()) { applyStatus(status); myBorderInsets = borderInsets; } return this; } | setStatus |
244,250 | HintHint (@NotNull Status status) { myTextFg = status.foreground; myTextBg = status.background; myBorderColor = status.border; myStatusIcon = status.icon; myBorderInsets = JBUI.insets(12, 12, 14, 12); myComponentBorder = JBUI.Borders.empty(); return this; } | applyStatus |
244,251 | int () { return myPositionChangeX; } | getPositionChangeX |
244,252 | int () { return myPositionChangeY; } | getPositionChangeY |
244,253 | boolean () { return myShowImmediately; } | isShowImmediately |
244,254 | HintHint (boolean showImmediately) { myShowImmediately = showImmediately; return this; } | setShowImmediately |
244,255 | boolean () { return myAnimationEnabled; } | isAnimationEnabled |
244,256 | HintHint (boolean enabled) { myAnimationEnabled = enabled; return this; } | setAnimationEnabled |
244,257 | boolean () { return myRequestFocus; } | isRequestFocus |
244,258 | HintHint (boolean requestFocus) { myRequestFocus = requestFocus; return this; } | setRequestFocus |
244,259 | List<String> () { final List<String> result = restrictions; return result != null? result : Collections.emptyList(); } | getLicenseRestrictionsMessages |
244,260 | boolean () { return isEvaluation; } | isEvaluationLicense |
244,261 | boolean (@NotNull Date releaseDate) { final Date expDate = expirationDate; return isPerpetualForProduct(releaseDate) || (expDate == null || releaseDate.before(expDate)); } | isApplicableForProduct |
244,262 | boolean (@NotNull Date releaseDate) { final Date result = perpetualFallbackDate; return result != null && releaseDate.before(result); } | isPerpetualForProduct |
244,263 | Gson () { return new GsonBuilder().setDateFormat("yyyyMMdd").create(); } | createGson |
244,264 | String () { return createGson().toJson(this); } | toJson |
244,265 | void (boolean value) { isUnusedSignalled = value; } | signalUnused |
244,266 | EditorCustomization () { return INSTANCE; } | getInstance |
244,267 | void (@NotNull EditorEx editor) { /* For the sake of simplicity and consistency, we load the global editor scheme here, although its font is not necessarily monospace. However, if the main editor has not monospaced font, we don't use monospace here either. */ editor.setColorsScheme(EditorColorsManager.getInstance().get... | customize |
244,268 | Document (String value, @Nullable Language language, Project project) { return LanguageTextField.createDocument(value, language, project, this); } | createDocument |
244,269 | void (PsiFile file) { } | customizePsiFile |
244,270 | Document (String value, @Nullable Language language, @Nullable Project project, @NotNull SimpleDocumentCreator documentCreator) { final FileType fileType = language != null ? language.getAssociatedFileType() : null; if (fileType != null) { final Project notNullProject = project != null ? project : ProjectManager.getIns... | createDocument |
244,271 | EditorEx () { EditorEx editor = super.createEditor(); if (myLanguage != null) { FileType fileType = myLanguage.getAssociatedFileType(); editor.setHighlighter(HighlighterFactory.createHighlighter(myProject, fileType)); } editor.setEmbeddedIntoDialogWrapper(true); return editor; } | createEditor |
244,272 | Image () { Icon icon = AppUIUtilKt.loadSmallApplicationIcon(ScaleContext.create(), 16); return ImageUtil.toBufferedImage(IconUtil.toImage(icon)); } | createImage |
244,273 | void (@NotNull String name, @NotNull String title, @NotNull String description) { myTrayIcon.displayMessage(title, description, myType); } | notify |
244,274 | GotItMessage (@NotNull @NlsContexts.PopupContent String title, @NotNull @NlsContexts.PopupContent String message) { return new GotItMessage(title, message); } | createMessage |
244,275 | GotItMessage (Disposable disposable) { myDisposable = disposable; return this; } | setDisposable |
244,276 | GotItMessage (@Nullable Runnable callback) { myCallback = callback; return this; } | setCallback |
244,277 | GotItMessage (@Nullable HyperlinkListener hyperlinkListener) { myHyperlinkListener = hyperlinkListener; return this; } | setHyperlinkListener |
244,278 | GotItMessage (boolean showCallout) { myShowCallout = showCallout; return this; } | setShowCallout |
244,279 | void (@NotNull RelativePoint point, @NotNull Balloon.Position position) { show(new PositionTracker.Static<>(point), position); } | show |
244,280 | void (@NotNull PositionTracker<Balloon> tracker, @NotNull Balloon.Position position) { if (myDisposable != null && Disposer.isDisposed(myDisposable)) { return; } final GotItPanel panel = new GotItPanel(); panel.myTitle.setText(myTitle); panel.myMessage.setText(myMessage); if (myHyperlinkListener != null) { panel.myMess... | show |
244,281 | void (MouseEvent e) { balloon.hide(); if (myCallback != null) { myCallback.run(); } } | mouseClicked |
244,282 | RecentsManager (@NotNull Project project) { return project.getService(RecentsManager.class); } | getInstance |
244,283 | void (@NotNull String key, String recentEntry) { LinkedList<String> recents = myMap.get(key); if (recents == null) { recents = new LinkedList<>(); myMap.put(key, recents); } add(recents, recentEntry); } | registerRecentEntry |
244,284 | void (final LinkedList<? super String> recentEntries, final String newEntry) { final int oldIndex = recentEntries.indexOf(newEntry); if (oldIndex >= 0) { recentEntries.remove(oldIndex); } else if (recentEntries.size() == myRecentsNumberToKeep) { recentEntries.removeLast(); } recentEntries.addFirst(newEntry); } | add |
244,285 | void (@NotNull Element element) { myMap.clear(); for (Element keyElement : element.getChildren(KEY_ELEMENT_NAME)) { LinkedList<String> recents = new LinkedList<>(); for (Element aChildren : keyElement.getChildren(RECENT_ELEMENT_NAME)) { recents.addLast(aChildren.getAttributeValue(NAME_ATTR)); } myMap.put(keyElement.get... | loadState |
244,286 | Element () { Element element = new Element("state"); for (Map.Entry<String, LinkedList<String>> entry : myMap.entrySet()) { Element keyElement = new Element(KEY_ELEMENT_NAME); keyElement.setAttribute(NAME_ATTR, entry.getKey()); for (String recent : entry.getValue()) { keyElement.addContent(new Element(RECENT_ELEMENT_NA... | getState |
244,287 | void (final int recentsNumberToKeep) { myRecentsNumberToKeep = recentsNumberToKeep; } | setRecentsNumberToKeep |
244,288 | String (EditorComboBox component) { return component.getText(); } | getText |
244,289 | void (EditorComboBox component, @NotNull String text) { component.setText(text); } | setText |
244,290 | void (ActionEvent e) { final Editor editor = myEditorField != null ? myEditorField.getEditor() : null; if (editor != null) { editor.getSelectionModel().removeSelection(); } } | actionPerformed |
244,291 | void (boolean b) { myInheritSwingFont = b; setDocument(myDocument); // reinit editor. } | setFontInheritedFromLAF |
244,292 | String () { return myDocument.getText(); } | getText |
244,293 | void (DocumentListener listener) { myDocumentListeners.add(listener); installDocumentListener(); } | addDocumentListener |
244,294 | void (DocumentListener listener) { myDocumentListeners.remove(listener); uninstallDocumentListener(false); } | removeDocumentListener |
244,295 | void (@NotNull DocumentEvent event) { for (DocumentListener documentListener : myDocumentListeners) { documentListener.beforeDocumentChange(event); } } | beforeDocumentChange |
244,296 | void (@NotNull DocumentEvent event) { for (DocumentListener documentListener : myDocumentListeners) { documentListener.documentChanged(event); } } | documentChanged |
244,297 | Project () { return myProject; } | getProject |
244,298 | Document () { return myDocument; } | getDocument |
244,299 | void (Document document) { if (myDocument != null) { uninstallDocumentListener(true); } myDocument = document; installDocumentListener(); if (myEditorField == null) return; myEditorField.setDocument(document); } | setDocument |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.