Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
286,000 | boolean () { return false; } | isSpecificallyModified |
286,001 | boolean () { return true; } | isReadyForApply |
286,002 | boolean () { return true; } | canCreateConfigurable |
286,003 | void (@NotNull Settings settings) { for (SettingsEditor<Settings> myEditor : myEditors) { try { myEditor.resetEditorFrom(settings); } catch (Exception e) { LOG.error(e); } } } | resetEditorFrom |
286,004 | void () { for (SettingsEditor<Settings> editor : myEditors) { editor.removeSettingsEditorListener(myChildSettingsListener); } } | uninstallWatcher |
286,005 | void (JComponent c) { myChildSettingsListener = new SettingsEditorListener<>() { @Override public void stateChanged(@NotNull SettingsEditor<Settings> editor) { fireEditorStateChanged(); if (mySyncController != null && !myIsDisposed) { mySyncController.handleStateChange(editor, CompositeSettingsEditor.this); } } }; for (SettingsEditor<Settings> editor : myEditors) { editor.addSettingsEditorListener(myChildSettingsListener); } } | installWatcher |
286,006 | void (@NotNull SettingsEditor<Settings> editor) { fireEditorStateChanged(); if (mySyncController != null && !myIsDisposed) { mySyncController.handleStateChange(editor, CompositeSettingsEditor.this); } } | stateChanged |
286,007 | JComponent () { CompositeSettingsBuilder<Settings> builder = getBuilder(); myEditors = builder.getEditors(); for (final SettingsEditor<Settings> editor : myEditors) { Disposer.register(this, editor); editor.setOwner(this); } return builder.createCompoundEditor(); } | createEditor |
286,008 | void () { myIsDisposed = true; } | disposeEditor |
286,009 | void (@NotNull SettingsEditor<?> editor, @NotNull Disposable parentDisposable) { if (myIsInSync) { return; } myChangedEditors.add(editor); if (mySyncAlarm == null) { mySyncAlarm = new Alarm(Alarm.ThreadToUse.SWING_THREAD, parentDisposable); } else { mySyncAlarm.cancelAllRequests(); } mySyncAlarm.addRequest(this::sync, 300); } | handleStateChange |
286,010 | void () { myIsInSync = true; try { Settings snapshot = getSnapshot(); for (SettingsEditor<Settings> editor : myEditors) { if (!myChangedEditors.contains(editor)) { editor.resetFrom(snapshot); } } } catch (ConfigurationException ignored) { } finally { myChangedEditors.clear(); myIsInSync = false; } } | sync |
286,011 | void (@Nullable Component component) { } | setLeftComponent |
286,012 | void (boolean start) { } | showProgress |
286,013 | void (boolean hasProject) { } | showProject |
286,014 | boolean (@NotNull JTextField textField, @NotNull String initialValue) { return !StringUtil.equals(textField.getText().trim(), initialValue); } | isFieldModified |
286,015 | boolean (@NotNull JTextField textField, int initialValue, @NotNull UINumericRange range) { try { int currentValue = Integer.parseInt(textField.getText().trim()); return range.fit(currentValue) == currentValue && currentValue != initialValue; } catch (NumberFormatException e) { return false; } } | isFieldModified |
286,016 | boolean (@NotNull JTextField textField, int initialValue) { try { int fieldValue = Integer.parseInt(textField.getText().trim()); return fieldValue != initialValue; } catch (NumberFormatException e) { return false; } } | isFieldModified |
286,017 | boolean (@NotNull JCheckBox checkbox, boolean initialValue) { return checkbox.isSelected() != initialValue; } | isCheckboxModified |
286,018 | ConfigurationException () { myIsHtmlMessage = true; return this; } | withHtmlMessage |
286,019 | HtmlChunk () { String message = getMessage(); return message == null ? HtmlChunk.empty() : myIsHtmlMessage ? HtmlChunk.raw(message) : HtmlChunk.text(message); } | getMessageHtml |
286,020 | void (@Nullable Runnable quickFix) { myQuickFix = quickFix == null ? null : dataContext -> quickFix.run(); } | setQuickFix |
286,021 | void (@Nullable ConfigurationQuickFix quickFix) { myQuickFix = quickFix; } | setQuickFix |
286,022 | ConfigurationQuickFix () { return myQuickFix; } | getConfigurationQuickFix |
286,023 | Configurable () { return myOriginator; } | getOriginator |
286,024 | void (@Nullable Configurable originator) { myOriginator = originator; } | setOriginator |
286,025 | boolean () { return true; } | shouldShowInDumbMode |
286,026 | void (@TabTitle String name, SettingsEditor<T> editor) { Disposer.register(this, editor); myEditors.add(Pair.create(name, editor)); } | addEditor |
286,027 | void (SettingsEditorGroup<T> group) { for (final Pair<String, SettingsEditor<T>> pair : group.myEditors) { Disposer.register(this, pair.second); } myEditors.addAll(group.myEditors); } | addGroup |
286,028 | void (@NotNull T t) {} | resetEditorFrom |
286,029 | JComponent () { throw new UnsupportedOperationException("This method should never be called!"); } | createEditor |
286,030 | JComponent () { return null; } | createComponent |
286,031 | boolean () { return false; } | isModified |
286,032 | void () { myKids = null; } | disposeUIResources |
286,033 | String () { return myConfigurable instanceof SearchableConfigurable ? ((SearchableConfigurable)myConfigurable).getId() : myConfigurable.getClass().getName(); } | getId |
286,034 | Runnable (String option) { return myConfigurable instanceof SearchableConfigurable ? ((SearchableConfigurable)myConfigurable).enableSearch(option) : null; } | enableSearch |
286,035 | String () { return myConfigurable.getDisplayName(); } | getDisplayName |
286,036 | String () { return myConfigurable.getHelpTopic(); } | getHelpTopic |
286,037 | JComponent () { return myConfigurable.createComponent(); } | createComponent |
286,038 | boolean () { return myConfigurable.isModified(); } | isModified |
286,039 | void () { myConfigurable.reset(); } | reset |
286,040 | void () { myConfigurable.disposeUIResources(); } | disposeUIResources |
286,041 | void (@NotNull T s) { myMainEditor.resetFrom(s); for (SettingsEditor<T> extensionEditor : myExtensionEditors) { extensionEditor.resetFrom(s); } } | resetEditorFrom |
286,042 | void (@NotNull SettingsEditor<T> extensionSettingsEditor) { myExtensionEditors.add(extensionSettingsEditor); Disposer.register(this, extensionSettingsEditor); } | addExtensionEditor |
286,043 | JComponent () { JPanel result = new JPanel(); result.setLayout(new GridBagLayout()); JComponent mainEditorComponent = myMainEditor.getComponent(); GridBagConstraints c = new GridBagConstraints(0, 0, 1, 1, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, JBInsets.emptyInsets(), 0, 0); result.add(mainEditorComponent, c); for (int i = 0; i < myExtensionEditors.size(); i++) { c = (GridBagConstraints)c.clone(); c.gridy = i + 1; result.add(myExtensionEditors.get(i).getComponent(), c); } return result; } | createEditor |
286,044 | PluginDescriptor () { return pluginDescriptor; } | getPluginDescriptor |
286,045 | void (@NotNull PluginDescriptor value) { pluginDescriptor = value; } | setPluginDescriptor |
286,046 | boolean () { return !nonDefaultProject || !(myProject != null && myProject.isDefault()); } | isAvailable |
286,047 | ObjectProducer () { try { if (providerClass != null) { ConfigurableProvider provider = instantiateConfigurableProvider(); return provider == null ? new ObjectProducer() : new ProviderProducer(provider); } else if (instanceClass != null) { return new ClassProducer(componentManager, instanceClass, pluginDescriptor); } else if (implementationClass != null) { return new ClassProducer(componentManager, implementationClass, pluginDescriptor); } else { throw new PluginException("configurable class name is not set", pluginDescriptor == null ? null : pluginDescriptor.getPluginId()); } } catch (ProcessCanceledException e) { throw e; } catch (AssertionError | Exception | LinkageError error) { LOG.error(new PluginException(error, pluginDescriptor == null ? null : pluginDescriptor.getPluginId())); } return new ObjectProducer(); } | createProducer |
286,048 | Project () { return myProject; } | getProject |
286,049 | String () { return getDisplayName(); } | toString |
286,050 | boolean () { return producer.get().canCreateElement(); } | canCreateConfigurable |
286,051 | Object () { return null; } | createElement |
286,052 | boolean () { return false; } | canCreateElement |
286,053 | Object () { return myProvider.createConfigurable(); } | createElement |
286,054 | boolean () { return myProvider.canCreateConfigurable(); } | canCreateElement |
286,055 | Object () { try { return componentManager.instantiateClass(className, pluginDescriptor); } catch (ProcessCanceledException exception) { throw exception; } catch (ExtensionNotApplicableException ignore) { return null; } catch (AssertionError | LinkageError | Exception e) { LOG.error("Cannot create configurable", e); } return null; } | createElement |
286,056 | boolean () { return true; } | canCreateElement |
286,057 | JarFileSystem () { return (JarFileSystem)VirtualFileManager.getInstance().getFileSystem(PROTOCOL); } | getInstance |
286,058 | boolean (Object requestor) { return requestor instanceof SafeWriteRequestor && IdeUiService.getInstance().isUseSafeWrite(); } | shouldUseSafeWrite |
286,059 | VirtualFile[] () { throw unsupported(); } | getChildren |
286,060 | VirtualFileSystem () { return myFileSystem; } | getFileSystem |
286,061 | long () { throw unsupported(); } | getLength |
286,062 | String () { throw unsupported(); } | getName |
286,063 | VirtualFile () { throw unsupported(); } | getParent |
286,064 | String () { throw unsupported(); } | getPath |
286,065 | long () { throw unsupported(); } | getTimeStamp |
286,066 | String () { throw unsupported(); } | getUrl |
286,067 | boolean () { throw unsupported(); } | isDirectory |
286,068 | boolean () { throw unsupported(); } | isValid |
286,069 | boolean () { throw unsupported(); } | isWritable |
286,070 | void (boolean asynchronous, boolean recursive, Runnable postRunnable) { throw unsupported(); } | refresh |
286,071 | void (boolean writable) { throw unsupported(); } | setWritable |
286,072 | VirtualFile (Object requestor, @NotNull String name) { throw unsupported(); } | createChildDirectory |
286,073 | VirtualFile (Object requestor, @NotNull String name) { throw unsupported(); } | createChildData |
286,074 | void (Object requestor) { throw unsupported(); } | delete |
286,075 | void (Object requestor, @NotNull VirtualFile newParent) { throw unsupported(); } | move |
286,076 | VirtualFile (Object requestor, @NotNull VirtualFile newParent, @NotNull String copyName) { throw unsupported(); } | copy |
286,077 | void (Charset charset) { throw unsupported(); } | storeCharset |
286,078 | void (Charset charset) { throw unsupported(); } | setCharset |
286,079 | void (Charset charset, @Nullable Runnable whenChanged) { throw unsupported(); } | setCharset |
286,080 | void (Charset charset, @Nullable Runnable whenChanged, boolean fireEventsWhenChanged) { throw unsupported(); } | setCharset |
286,081 | void (byte @NotNull [] content, long newModificationStamp, long newTimeStamp) { throw unsupported(); } | setBinaryContent |
286,082 | void (byte @NotNull [] content, long newModificationStamp, long newTimeStamp, Object requestor) { throw unsupported(); } | setBinaryContent |
286,083 | void (boolean asynchronous, boolean recursive) { throw unsupported(); } | refresh |
286,084 | void (byte @Nullable [] BOM) { throw unsupported(); } | setBOM |
286,085 | void (@Nullable String separator) { throw unsupported(); } | setDetectedLineSeparator |
286,086 | void () { throw unsupported(); } | clearUserData |
286,087 | void (@NotNull KeyFMap map) { throw unsupported(); } | setUserMap |
286,088 | UnsupportedOperationException () { return new UnsupportedOperationException(toString()); } | unsupported |
286,089 | String () { return "VirtualFile.NULL_OBJECT"; } | toString |
286,090 | Frame[] () { if (Boolean.getBoolean("disable.new.spinning.icon")) { return AnimatedIcon.getFrames(DELAY, OLD_ICONS); } return new SpinningProgressIcon().frames; } | getDefaultFrames |
286,091 | Frame[] () { if (Boolean.getBoolean("disable.new.spinning.icon")) { return AnimatedIcon.getFrames(DELAY, OLD_BIG_ICONS); } return bigSpinningProgressIcon().frames; } | getDefaultBigFrames |
286,092 | int () { return icon.getIconWidth(); } | getIconWidth |
286,093 | int () { return icon.getIconHeight(); } | getIconHeight |
286,094 | void (Component c, Graphics g, int x, int y) { assert period > 0 : "unexpected"; long time = (System.currentTimeMillis() - this.time) % period; float alpha = (float)((Math.cos(2 * Math.PI * time / period) + 1) / 2); if (alpha > 0) { if (alpha < 1 && g instanceof Graphics2D) { Graphics2D g2d = (Graphics2D)g.create(); try { g2d.setComposite(AlphaComposite.SrcAtop.derive(alpha)); icon.paintIcon(c, g2d, x, y); } finally { g2d.dispose(); } } else { icon.paintIcon(c, g, x, y); } } } | paintIcon |
286,095 | Frame[] (int delay, Icon @NotNull ... icons) { int length = icons.length; assert length > 0 : "empty array"; Frame[] frames = new Frame[length]; for (int i = 0; i < length; i++) { Icon icon = icons[i]; assert icon != null : "null icon"; frames[i] = new Frame() { @Override public @NotNull Icon getIcon() { return icon; } @Override public int getDelay() { return delay; } }; } return frames; } | getFrames |
286,096 | Icon () { return icon; } | getIcon |
286,097 | int () { return delay; } | getDelay |
286,098 | void (long current) { int next = index + 1; index = next < frames.length ? next : 0; time = current; } | updateFrameAt |
286,099 | Frame[] () { return frames; } | getFrames |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.