Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
286,200 | boolean () { return !isEmpty(myTitle) || !isEmpty(mySubtitle); } | hasTitle |
286,201 | Notification (@Nullable @NotificationTitle String title) { myTitle = StringUtil.notNullize(title); return this; } | setTitle |
286,202 | Notification (@Nullable @NotificationTitle String title, @Nullable @NotificationSubtitle String subtitle) { return setTitle(title).setSubtitle(subtitle); } | setTitle |
286,203 | Notification (@Nullable @NotificationTitle String subtitle) { mySubtitle = subtitle; return this; } | setSubtitle |
286,204 | boolean () { return !isEmpty(myContent); } | hasContent |
286,205 | boolean (@Nullable String text) { return StringUtil.isEmptyOrSpaces(text) || StringUtil.isEmptyOrSpaces(StringUtil.stripHtml(text, false)); } | isEmpty |
286,206 | Notification (@NotificationContent @Nullable String content) { myContent = StringUtil.notNullize(content); return this; } | setContent |
286,207 | Notification (@NotNull NotificationListener listener) { myListener = listener; return this; } | setListener |
286,208 | Notification (@NotNull AnActionEvent e) { return Objects.requireNonNull(e.getData(KEY)); } | get |
286,209 | void (@NotNull Notification notification, @NotNull AnAction action, @Nullable DataContext context) { DataContext dataContext = context != null ? context : CustomizedDataContext.create(DataContext.EMPTY_CONTEXT, dataId -> KEY.is(dataId) ? notification : null); AnActionEvent event = AnActionEvent.createFromAnAction(action, null, ActionPlaces.NOTIFICATION, dataContext); IdeUiService.getInstance().performActionDumbAwareWithCallbacks(action, event); } | fire |
286,210 | void (@NotNull Notification notification, @NotNull JComponent component) { DataManager.registerDataProvider(component, dataId -> KEY.is(dataId) ? notification : null); } | setDataProvider |
286,211 | Notification (@NotNull @LinkLabel String dropDownText) { myDropDownText = dropDownText; return this; } | setDropDownText |
286,212 | CollapseActionsDirection () { return myCollapseDirection; } | getCollapseDirection |
286,213 | Notification (CollapseActionsDirection collapseDirection) { myCollapseDirection = collapseDirection; return this; } | setCollapseDirection |
286,214 | List<AnAction> () { return myActions != null ? myActions : Collections.emptyList(); } | getActions |
286,215 | Notification (@NotNull AnAction action) { (myActions != null ? myActions : (myActions = new ArrayList<>())).add(action); return this; } | addAction |
286,216 | Notification (@NotNull Collection<? extends @NotNull AnAction> actions) { (myActions != null ? myActions : (myActions = new ArrayList<>())).addAll(actions); return this; } | addActions |
286,217 | Notification (AnAction action) { myContextHelpAction = action; return this; } | setContextHelpAction |
286,218 | NotificationType () { return myType; } | getType |
286,219 | boolean () { return myExpired.get(); } | isExpired |
286,220 | void () { if (!myExpired.compareAndSet(false, true)) return; UIUtil.invokeLaterIfNeeded(this::hideBalloon); NotificationsManager.getNotificationsManager().expire(this); if (myWhenExpired != null) { for (Runnable each : myWhenExpired) { each.run(); } } } | expire |
286,221 | Notification (@NotNull Runnable whenExpired) { (myWhenExpired != null ? myWhenExpired : (myWhenExpired = new ArrayList<>())).add(whenExpired); return this; } | whenExpired |
286,222 | void () { hideBalloon(myBalloonRef.getAndSet(null)); } | hideBalloon |
286,223 | void (@Nullable Reference<? extends Balloon> balloonRef) { var balloon = SoftReference.dereference(balloonRef); if (balloon != null) { UIUtil.invokeLaterIfNeeded(balloon::hide); } } | hideBalloon |
286,224 | void (@NotNull Balloon balloon) { var oldBalloon = myBalloonRef.getAndSet(new WeakReference<>(balloon)); hideBalloon(oldBalloon); balloon.addListener(new JBPopupListener() { @Override public void onClosed(@NotNull LightweightWindowEvent event) { myBalloonRef.updateAndGet(prev -> SoftReference.dereference(prev) == balloon ? null : prev); } }); } | setBalloon |
286,225 | void (@NotNull LightweightWindowEvent event) { myBalloonRef.updateAndGet(prev -> SoftReference.dereference(prev) == balloon ? null : prev); } | onClosed |
286,226 | void (@Nullable Project project) { Notifications.Bus.notify(this, project); } | notify |
286,227 | Notification (boolean important) { myImportant = important; return this; } | setImportant |
286,228 | boolean () { return myImportant != null ? myImportant : getListener() != null || myActions != null && !myActions.isEmpty(); } | isImportant |
286,229 | Notification (@Nullable String toolWindowId) { myToolWindowId = toolWindowId; return this; } | setToolWindowId |
286,230 | void () { LOG.assertTrue(hasTitle() || hasContent(), "Notification should have title and/or content; groupId: " + myGroupId); } | assertHasTitleOrContent |
286,231 | String () { return String.format("Notification{id='%s', myGroupId='%s', myType=%s, myTitle='%s', mySubtitle='%s', myContent='%s'}", id, myGroupId, myType, myTitle, mySubtitle, myContent); } | toString |
286,232 | void (@NotNull List<? extends AnAction> actions) { addActions((Collection<? extends AnAction>)actions); } | addActions |
286,233 | void (CollapseActionsDirection collapseDirection) { myCollapseDirection = collapseDirection; } | setCollapseActionsDirection |
286,234 | Path () { return myDelegate; } | getDelegate |
286,235 | FileSystem () { return myFileSystem; } | getFileSystem |
286,236 | boolean () { return myDelegate.isAbsolute(); } | isAbsolute |
286,237 | Path () { return wrap(myDelegate.getRoot()); } | getRoot |
286,238 | Path () { return wrap(myDelegate.getFileName()); } | getFileName |
286,239 | Path () { return wrap(myDelegate.getParent()); } | getParent |
286,240 | int () { return myDelegate.getNameCount(); } | getNameCount |
286,241 | Path (int index) { return wrap(myDelegate.getName(index)); } | getName |
286,242 | Path (int beginIndex, int endIndex) { return wrap(myDelegate.subpath(beginIndex, endIndex)); } | subpath |
286,243 | boolean (Path other) { if (!(other instanceof CorePath))return false; return myDelegate.startsWith(unwrap(other)); } | startsWith |
286,244 | boolean (String other) { return myDelegate.startsWith(other); } | startsWith |
286,245 | boolean (Path other) { if (!(other instanceof CorePath))return false; return myDelegate.endsWith(unwrap(other)); } | endsWith |
286,246 | boolean (String other) { return myDelegate.endsWith(other); } | endsWith |
286,247 | Path () { return wrap(myDelegate.normalize()); } | normalize |
286,248 | Path (Path other) { return wrap(myDelegate.resolve(unwrap(other))); } | resolve |
286,249 | Path (String other) { return wrap(myDelegate.resolve(other)); } | resolve |
286,250 | Path (Path other) { return wrap(myDelegate.resolveSibling(unwrap(other))); } | resolveSibling |
286,251 | Path (String other) { return wrap(myDelegate.resolveSibling(other)); } | resolveSibling |
286,252 | Path (Path other) { return wrap(myDelegate.relativize(unwrap(other))); } | relativize |
286,253 | URI () { return myDelegate.toUri(); } | toUri |
286,254 | Path () { return wrap(myDelegate.toAbsolutePath()); } | toAbsolutePath |
286,255 | File () { return isMountedFS() ? myDelegate.toFile() : new File(myDelegate.toString()); } | toFile |
286,256 | Iterator<Path> () { Iterator<Path> iterator = myDelegate.iterator(); return new Iterator<Path>() { @Override public boolean hasNext() { return iterator.hasNext(); } @Override public Path next() { return wrap(iterator.next()); } }; } | iterator |
286,257 | boolean () { return iterator.hasNext(); } | hasNext |
286,258 | Path () { return wrap(iterator.next()); } | next |
286,259 | int (Path other) { return myDelegate.compareTo(unwrap(other)); } | compareTo |
286,260 | String () { return myDelegate.toString(); } | toString |
286,261 | Path (Path path) { return path == null ? null : CoreRoutingFileSystemProvider.path(myFileSystem, path); } | wrap |
286,262 | void (String mountedDelegateClassName) { ourMountedDelegateClassName = mountedDelegateClassName; } | setMountedDelegateClassName |
286,263 | boolean () { return myDelegate.getClass().getSimpleName().equals(ourMountedDelegateClassName); } | isMountedFS |
286,264 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; CorePath paths = (CorePath)o; return Objects.equals(myDelegate, paths.myDelegate) && Objects.equals(myFileSystem, paths.myFileSystem); } | equals |
286,265 | int () { return Objects.hash(myDelegate, myFileSystem); } | hashCode |
286,266 | FileSystem (URI uri, Map<String, ?> env) { throw new UnsupportedOperationException(); } | newFileSystem |
286,267 | FileSystem (URI uri) { throw new UnsupportedOperationException(); } | getFileSystem |
286,268 | String () { return myFileSystemProvider.getScheme(); } | getScheme |
286,269 | Path (URI uri) { return myFileSystemProvider.getPath(uri); } | getPath |
286,270 | void (@NotNull String filesystemClassName, @Nullable Class<? extends CoreRoutingFileSystemDelegate> routingFilesystemDelegateClass) { myMountedFS = myProvider.createInstance( filesystemClassName, new Class[]{FileSystemProvider.class}, myProvider); if (routingFilesystemDelegateClass != null) { try { myDelegate = routingFilesystemDelegateClass.getConstructor().newInstance(); } catch (Exception e) { throw new RuntimeException(e); } } } | initialize |
286,271 | void (@NotNull String mountedFSPrefix) { ourMountedFSPrefix = mountedFSPrefix; } | setMountedFSPrefix |
286,272 | boolean () { return myMountedFS != null; } | isInitialized |
286,273 | FileSystemProvider () { return myProvider; } | provider |
286,274 | void () { throw new UnsupportedOperationException(); } | close |
286,275 | boolean () { return myLocalFS.isOpen() || myMountedFS != null && myMountedFS.isOpen(); } | isOpen |
286,276 | boolean () { return myLocalFS.isReadOnly() && (myMountedFS == null || myMountedFS.isReadOnly()); } | isReadOnly |
286,277 | String () { return myLocalFS.getSeparator(); } | getSeparator |
286,278 | Iterable<Path> () { Iterable<Path> roots = concat(myLocalFS.getRootDirectories(), myMountedFS == null ? Collections.emptyList() : myMountedFS.getRootDirectories()); return new Iterable<Path>() { @Override public Iterator<Path> iterator() { Iterator<Path> iterator = roots.iterator(); return new Iterator<Path>() { @Override public boolean hasNext() { return iterator.hasNext(); } @Override public Path next() { return CoreRoutingFileSystemProvider.path(CoreRoutingFileSystem.this, iterator.next()); } }; } }; } | getRootDirectories |
286,279 | Iterator<Path> () { Iterator<Path> iterator = roots.iterator(); return new Iterator<Path>() { @Override public boolean hasNext() { return iterator.hasNext(); } @Override public Path next() { return CoreRoutingFileSystemProvider.path(CoreRoutingFileSystem.this, iterator.next()); } }; } | iterator |
286,280 | boolean () { return iterator.hasNext(); } | hasNext |
286,281 | Path () { return CoreRoutingFileSystemProvider.path(CoreRoutingFileSystem.this, iterator.next()); } | next |
286,282 | Iterable<FileStore> () { return concat(myLocalFS.getFileStores(), myMountedFS == null ? Collections.emptyList() : myMountedFS.getFileStores()); } | getFileStores |
286,283 | Set<String> () { Set<String> result = new HashSet<>(myLocalFS.supportedFileAttributeViews()); if (myMountedFS != null) result.addAll(myMountedFS.supportedFileAttributeViews()); return result; } | supportedFileAttributeViews |
286,284 | Path (String first, String... more) { FileSystem fs = myMountedFS != null && isMountedFSFile(first) ? myMountedFS : myLocalFS; Path result = CoreRoutingFileSystemProvider.path(this, fs.getPath(first, more)); CoreRoutingFileSystemDelegate delegate = myDelegate; return delegate == null ? result : delegate.wrap(result); } | getPath |
286,285 | PathMatcher (String syntaxAndPattern) { return myLocalFS.getPathMatcher(syntaxAndPattern); } | getPathMatcher |
286,286 | UserPrincipalLookupService () { return myLocalFS.getUserPrincipalLookupService(); } | getUserPrincipalLookupService |
286,287 | boolean (CorePath path) { if (path.isMountedFS()) return true; CoreRoutingFileSystemDelegate delegate = myDelegate; return delegate != null && delegate.isMountedFSPath(path); } | isMountedFSPath |
286,288 | boolean (String virtualFilePath) { return CoreRoutingFileSystemProvider.normalizePath(virtualFilePath).startsWith(ourMountedFSPrefix); } | isMountedFSFile |
286,289 | Iterator<T> () { return concat.iterator(); } | iterator |
286,290 | void (Permission permission) { if (initialised.compareAndSet(false, true)) { // force early initialization of default file system to avoid `java.lang.ClassLoader#getSystemClassLoader` call during the system class loader instantiation. FileSystems.getDefault(); System.clearProperty("java.security.manager"); System.setSecurityManager(null); } } | checkPermission |
286,291 | FileSystem (URI uri) { return myFileSystem; } | getFileSystem |
286,292 | String () { return getProvider().getScheme(); } | getScheme |
286,293 | FileSystem (URI uri, Map<String, ?> env) { if (env.get(INITIALIZATION_KEY) == Boolean.TRUE) { CoreRoutingFileSystem.setMountedFSPrefix((String)env.get(MOUNTED_FS_PREFIX)); CorePath.setMountedDelegateClassName((String)env.get(PATH_CLASS_NAME)); myProviderClassName = (String)env.get(PROVIDER_CLASS_NAME); if (env.get(INITIALIZATION_MOUNTED_FS_PROVIDER_KEY) == Boolean.TRUE) { synchronized (myLock) { //noinspection unchecked myFileSystem.initialize((String)env.get(FILESYSTEM_CLASS_NAME), (Class<? extends CoreRoutingFileSystemDelegate>)env.get(ROUTING_FILESYSTEM_DELEGATE_CLASS)); getMountedFSProvider(); return null; } } //noinspection unchecked myFileSystem.initialize((String)env.get(FILESYSTEM_CLASS_NAME), (Class<? extends CoreRoutingFileSystemDelegate>)env.get(ROUTING_FILESYSTEM_DELEGATE_CLASS)); return null; } throw new IllegalStateException("File system already exists"); } | newFileSystem |
286,294 | Path (URI uri) { return path(getProvider(uri).getPath(uri)); } | getPath |
286,295 | Iterator<Path> () { Iterator<Path> iterator = stream.iterator(); return new Iterator<Path>() { @Override public boolean hasNext() { return iterator.hasNext(); } @Override public Path next() { return path(iterator.next()); } }; } | iterator |
286,296 | boolean () { return iterator.hasNext(); } | hasNext |
286,297 | Path () { return path(iterator.next()); } | next |
286,298 | byte[] (Path path) { if (isMountedFSPath(path)) { throw new IllegalArgumentException(path.toString()); } String jnuEncoding = System.getProperty("sun.jnu.encoding"); try { return path.toString().getBytes(jnuEncoding); } catch (UnsupportedEncodingException e) { throw new IllegalStateException("sun.jnu.encoding=" + jnuEncoding, e); } } | getSunPathForSocketFile |
286,299 | boolean () { return myFileSystem.isInitialized(); } | isInitialized |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.