Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
248,000 | void (CredentialsEditor editor, Object credentials) { editor.init(credentials); } | processEx |
248,001 | void (RemoteSdkAdditionalData data) { myHelpersPathField.setText(data.getHelpersPath()); if (!StringUtil.isEmpty(data.getHelpersPath())) { setTempFilesPathVisible(true); } } | setTempFilesPath |
248,002 | void (boolean visible) { myHelpersPathField.setVisible(visible); myHelpersPathLabel.setVisible(visible); myTempFilesPathVisible = visible; } | setTempFilesPathVisible |
248,003 | void (boolean visible) { myInterpreterPathField.setVisible(visible); myInterpreterPathLabel.setVisible(visible); } | setInterpreterPathVisible |
248,004 | String () { return myInterpreterPathField.getText().trim(); } | getInterpreterPath |
248,005 | String () { return myHelpersPathField.getText(); } | getTempFilesPath |
248,006 | void (RemoteSdkCredentials data) { myHelpersPathField.setText(data.getHelpersPath()); } | updateModifiedValues |
248,007 | void (@NlsSafe String helpersPath) { myHelpersPathField.setText(helpersPath); } | updateHelpersPath |
248,008 | boolean (@NotNull CredentialsType<?> connectionType) { return myCredentialsType2Handler.get(connectionType).getRadioButton().isSelected(); // TODO: may encapsutate } | isSdkInConsistentState |
248,009 | void () { // Disposable is the marker interface for CreateRemoteSdkForm } | dispose |
248,010 | Disposable () { return this; } | getDisposable |
248,011 | BundleAccessor () { return myBundleAccessor; } | getBundleAccessor |
248,012 | JPanel () { return myPanel; } | getContentComponent |
248,013 | JBRadioButton () { return myTypeButton; } | getRadioButton |
248,014 | void (@Nullable String interpreterPath) { } | setInterpreterPath |
248,015 | void () { } | onSelected |
248,016 | boolean () { return false; } | isBrowsingAvailable |
248,017 | CredentialsEditor () { return myEditor; } | getEditor |
248,018 | void () { myConnectionType = myType; myEditor.onSelected(); } | onSelected |
248,019 | JPanel () { return myPanel; } | getContentComponent |
248,020 | JBRadioButton () { return myRadioButton; } | getRadioButton |
248,021 | void (@Nullable String interpreterPath) { myInterpreterPath = interpreterPath; } | setInterpreterPath |
248,022 | boolean () { return myType instanceof PathsBrowserDialogProvider; } | isBrowsingAvailable |
248,023 | CredentialsCase[] (CredentialsCase... cases) { List<CredentialsCase> exCases = new ArrayList<>(); for (TypeHandler typeHandler : myCredentialsType2Handler.values()) { final TypeHandlerEx handlerEx = ObjectUtils.tryCast(typeHandler, TypeHandlerEx.class); if (handlerEx != null) { exCases.add(new CredentialsCase() { @Over... | collectCases |
248,024 | CredentialsType () { return handlerEx.getType(); } | getType |
248,025 | void (Object credentials) { processEx(handlerEx.getEditor(), credentials); } | process |
248,026 | RemoteSdkEditorContainer () { return myParentContainer; } | getParentContainer |
248,027 | StatusPanel () { return myStatusPanel; } | getStatusPanel |
248,028 | boolean () { return false; } | isSshSudoSupported |
248,029 | boolean (@NotNull CredentialsType type) { return myCredentialsType2Handler.containsKey(type) && !myUnsupportedConnectionTypes.contains(type); } | isConnectionTypeSupported |
248,030 | Dimension (Container parent) { synchronized (parent.getTreeLock()) { Insets insets = parent.getInsets(); int ncomponents = parent.getComponentCount(); int w = 0; int h = 0; for (int i = 0; i < ncomponents; i++) { Component comp = parent.getComponent(i); if (comp.isVisible()) { Dimension d = comp.getPreferredSize(); if ... | preferredLayoutSize |
248,031 | Dimension (Container parent) { synchronized (parent.getTreeLock()) { Insets insets = parent.getInsets(); int ncomponents = parent.getComponentCount(); int w = 0; int h = 0; for (int i = 0; i < ncomponents; i++) { Component comp = parent.getComponent(i); if (comp.isVisible()) { Dimension d = comp.getMinimumSize(); if (d... | minimumLayoutSize |
248,032 | void (CredentialsType credentialsType) { for (Map.Entry<CredentialsType, TypeHandler> type2handler : myCredentialsType2Handler.entrySet()) { if (type2handler.getKey() == credentialsType) { type2handler.getValue().getRadioButton().setSelected(true); break; } } radioSelected(true); } | selectType |
248,033 | void (@NotNull CredentialsEditor<?> editor) { if (editor instanceof FormWithAlignableLabelsColumn) { for (JBLabel label : ((FormWithAlignableLabelsColumn)editor).getLabelsColumn()) { label.addAncestorListener(myLabelsColumnTracker); label.addComponentListener(myLabelsColumnTracker); } } } | trackEditorLabelsColumn |
248,034 | void (ComponentEvent e) { /* do nothing */ } | componentResized |
248,035 | void (ComponentEvent e) { /* do nothing */ } | componentMoved |
248,036 | void (ComponentEvent e) { onEvent(e.getComponent()); } | componentShown |
248,037 | void (ComponentEvent e) { onEvent(e.getComponent()); } | componentHidden |
248,038 | void (AncestorEvent event) { onEvent(event.getComponent()); } | ancestorAdded |
248,039 | void (AncestorEvent event) { onEvent(event.getComponent()); } | ancestorRemoved |
248,040 | void (AncestorEvent event) { onEvent(event.getComponent()); } | ancestorMoved |
248,041 | void (@Nullable Component component) { if (component == null) return; if (component instanceof JBLabel) { if (component.isShowing()) { onLabelShowing((JBLabel)component); } else { onLabelHidden((JBLabel)component); } } } | onEvent |
248,042 | void (@NotNull JBLabel component) { if (myVisibleLabelsColumn.add(component)) { alignForm(); } } | onLabelShowing |
248,043 | void (@NotNull JBLabel component) { if (myVisibleLabelsColumn.remove(component)) { alignForm(); } } | onLabelHidden |
248,044 | void () { myInterpreterPathLabel.setAnchor(null); if (myAnchoredLabel != null) { myAnchoredLabel.setAnchor(null); myAnchoredLabel = null; } if (!myVisibleLabelsColumn.isEmpty()) { JBLabel labelWithMaxWidth = Collections.max(myVisibleLabelsColumn, Comparator.comparingInt(o -> o.getPreferredSize().width)); if (myInterpre... | alignForm |
248,045 | void (@NlsSafe @NotNull String interpreterPath) { myInterpreterPathField.setText(interpreterPath); } | setInterpreterPath |
248,046 | void (@NotNull CredentialsType<?> credentialsType) { getPropertiesComponent().setValue(getCredentialsTypePersistenceKey(), credentialsType.getName()); } | saveSelectedRadio |
248,047 | PropertiesComponent () { return myProject == null ? PropertiesComponent.getInstance() : PropertiesComponent.getInstance(myProject); } | getPropertiesComponent |
248,048 | void (@NotNull Executor executor, final @NotNull ResultConsumer<? super V> consumer) { myFuture.addListener(() -> { try { final V result = myFuture.get(); consumer.onSuccess(result); } catch (ExecutionException e) { consumer.onFailure(e.getCause()); } catch (Throwable throwable) { consumer.onFailure(throwable); } }, ex... | addConsumer |
248,049 | boolean (boolean mayInterruptIfRunning) { return myFuture.cancel(mayInterruptIfRunning); } | cancel |
248,050 | boolean () { return myFuture.isCancelled(); } | isCancelled |
248,051 | boolean () { return myFuture.isDone(); } | isDone |
248,052 | void (V value) { if (!myFuture.set(value)) { throw new Error("already set"); } } | set |
248,053 | void (@NotNull Throwable t) { if (!myFuture.setException(t)) { throw new Error("already excepted"); } } | setException |
248,054 | boolean (@NotNull ProgressIndicator progress) { progress = ProgressWrapper.unwrapAll(progress); ProgressIndicator existing = ProgressIndicatorProvider.getGlobalProgressIndicator(); while (existing != null) { if (existing == progress) return true; if (!(existing instanceof WrappedProgressIndicator)) return false; existi... | isAlreadyUnder |
248,055 | Job<Void> (@NotNull Runnable action, @Nullable Consumer<? super Future<?>> onDoneCallback) { VoidForkJoinTask task = new VoidForkJoinTask(action, onDoneCallback); task.submit(); return task; } | submitToJobThread |
248,056 | Void () { return null; } | getRawResult |
248,057 | void (Void value) { } | setRawResult |
248,058 | boolean () { myStatus = Status.STARTED; try { myAction.run(); complete(null); // complete manually before calling callback } catch (Throwable throwable) { myStatus = Status.EXECUTED; completeExceptionally(throwable); } finally { myStatus = Status.EXECUTED; if (myOnDoneCallback != null) { myOnDoneCallback.accept(this); ... | exec |
248,059 | void () { ForkJoinPool.commonPool().execute(myForkJoinTask); } | submit |
248,060 | boolean () { boolean wasCancelled = myForkJoinTask.isCancelled(); // must be before status check Status status = myStatus; return status == Status.EXECUTED || status == null && wasCancelled; } | isDone |
248,061 | boolean () { return myForkJoinTask.isCancelled(); } | isCanceled |
248,062 | void () { myForkJoinTask.cancel(true); } | cancel |
248,063 | Boolean () { boolean[] result = new boolean[1]; ProgressManager.getInstance().executeProcessUnderProgress(() -> { try { T element = myFirstTask; while (true) { if (element == null) element = failedToProcess.poll(); if (element == null) element = things.take(); if (element == tombStone) { things.put(tombStone); // retur... | call |
248,064 | void () { try { firstTask.get().call(); } catch (Exception e) { completeExceptionally(e); } } | compute |
248,065 | Boolean () { return futureResult.get(); } | getRawResult |
248,066 | Boolean () { boolean[] result = new boolean[1]; try { ProgressManager.getInstance().executeProcessUnderProgress(() -> { try { T element = myFirstTask; while (true) { if (element == null) element = things.take(); if (element == tombStone) { things.put(tombStone); // return just popped tombStone to the 'things' queue for... | call |
248,067 | boolean (boolean mayInterruptIfRunning) { progressIndicator.cancel(); return super.cancel(mayInterruptIfRunning); } | cancel |
248,068 | void () { try (AccessToken ignored = ThreadContext.installThreadContext(threadContext, true)) { if (failFastOnAcquireReadAction) { ((ApplicationImpl)ApplicationManager.getApplication()).executeByImpatientReader(()-> wrapInReadActionAndIndicator(this::execAndForkSubTasks)); } else { wrapInReadActionAndIndicator(this::ex... | compute |
248,069 | void (final @NotNull Runnable process) { Runnable toRun = runInReadAction ? () -> { if (!ApplicationManagerEx.getApplicationEx().tryRunReadAction(process)) { failedSubTasks.add(this); doComplete(throwable); } } : process; ProgressManager progressManager = ProgressManager.getInstance(); ProgressIndicator existing = prog... | wrapInReadActionAndIndicator |
248,070 | Throwable (Throwable throwable1, Throwable throwable2) { Throwable result; if (throwable1 == null) { result = throwable2; } else if (throwable2 == null) { result = throwable1; } else { // any exception wins over PCE because the latter can be induced by canceled indicator because of the former result = throwable1 instan... | moreImportant |
248,071 | void (Throwable throwable) { ApplierCompleter<T> a = this; ApplierCompleter<T> child = a; while (true) { // update parent.throwable in a thread safe way Throwable oldThrowable; Throwable newThrowable; do { oldThrowable = a.throwable; newThrowable = moreImportant(oldThrowable, throwable); } while (oldThrowable != newThr... | doComplete |
248,072 | void () { if (!progressIndicator.isCanceled()) { progressIndicator.cancel(); } } | cancelProgress |
248,073 | boolean (VirtualFile file, @NotNull String frameworkId) { return frameworkId.equals(getFrameworkIdOfBuildFile(file)); } | belongsToFramework |
248,074 | void (VirtualFile file, String frameworkId, boolean value) { //belongs to other framework - do not override! String existingFrameworkId = getFrameworkIdOfBuildFile(file); if (!StringUtil.isEmpty(existingFrameworkId) && !frameworkId.equals(existingFrameworkId)) { return; } if (value) {//write framework forceBuildFile(fi... | forceFileToFramework |
248,075 | void (VirtualFile file, @Nullable String value) { if (file instanceof NewVirtualFile) { try (DataOutputStream os = FRAMEWORK_FILE_ATTRIBUTE.writeFileAttribute(file)) { IOUtil.writeString(StringUtil.notNullize(value), os); } catch (IOException e) { LOG.error(e); } } else { file.putUserData(FRAMEWORK_FILE_MARKER, value);... | forceBuildFile |
248,076 | void (Component comp, Object constraints) { } | addLayoutComponent |
248,077 | float (Container target) { return 0.5f; } | getLayoutAlignmentX |
248,078 | float (Container target) { return 0.5f; } | getLayoutAlignmentY |
248,079 | void (Container target) { } | invalidateLayout |
248,080 | void (String name, Component comp) { } | addLayoutComponent |
248,081 | void (Component comp) { } | removeLayoutComponent |
248,082 | Dimension (Container target) { return new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE); } | maximumLayoutSize |
248,083 | Dimension (Container parent) { return layoutSize(parent, myVertical, component -> component.getPreferredSize()); } | preferredLayoutSize |
248,084 | Dimension (Container parent) { return layoutSize(parent, myVertical, component -> component.getMinimumSize()); } | minimumLayoutSize |
248,085 | Dimension (Container parent, boolean vertical, Function<? super Component, ? extends Dimension> getSize) { int[] extraSize = new int[2]; JComponent jParent = (JComponent)parent; getSize(jParent, LightToolWindow.LEFT_MIN_KEY, vertical, extraSize); getSize(jParent, LightToolWindow.RIGHT_MIN_KEY, vertical, extraSize); Com... | layoutSize |
248,086 | void (JComponent jParent, String key, boolean vertical, int[] size) { if (jParent.getClientProperty(key) != null) { size[vertical ? 1 : 0] += LightToolWindow.MINIMIZE_WIDTH; } } | getSize |
248,087 | void (Container parent) { if (myVertical) { layoutVContainer(parent); } else { layoutHContainer(parent); } } | layoutContainer |
248,088 | void (Container parent) { int leftWidth = 0; int rightWidth = 0; JComponent jParent = (JComponent)parent; JComponent left = (JComponent)jParent.getClientProperty(LightToolWindow.LEFT_MIN_KEY); if (left != null) { leftWidth = LightToolWindow.MINIMIZE_WIDTH; } JComponent right = (JComponent)jParent.getClientProperty(Ligh... | layoutHContainer |
248,089 | void (Container parent) { int bottomHeight = 0; JComponent jParent = (JComponent)parent; JComponent bottom = (JComponent)jParent.getClientProperty(LightToolWindow.RIGHT_MIN_KEY); if (bottom != null) { bottomHeight = LightToolWindow.MINIMIZE_WIDTH; } int width = parent.getWidth(); int height = parent.getHeight() - botto... | layoutVContainer |
248,090 | void () { myConnection = myProject.getMessageBus().connect(); myConnection.subscribe(FileEditorManagerListener.FILE_EDITOR_MANAGER, new FileEditorManagerListener() { @Override public void fileOpened(@NotNull FileEditorManager source, @NotNull VirtualFile file) { bindToDesigner(getActiveDesigner()); } @Override public v... | initListeners |
248,091 | void (@NotNull FileEditorManager source, @NotNull VirtualFile file) { bindToDesigner(getActiveDesigner()); } | fileOpened |
248,092 | void (@NotNull FileEditorManager source, @NotNull VirtualFile file) { ApplicationManager.getApplication().invokeLater(() -> bindToDesigner(getActiveDesigner())); } | fileClosed |
248,093 | void (@NotNull FileEditorManagerEvent event) { bindToDesigner(getDesigner(event.getNewEditor())); } | selectionChanged |
248,094 | void () { myConnection.disconnect(); myConnection = null; } | removeListeners |
248,095 | void (final DesignerEditorPanelFacade designer) { myWindowQueue.cancelAllUpdates(); myWindowQueue.queue(new Update("update") { @Override public void run() { if (myToolWindow == null) { if (designer == null) { return; } initToolWindow(); } updateToolWindow(designer); } }); } | bindToDesigner |
248,096 | void () { if (myToolWindow == null) { if (designer == null) { return; } initToolWindow(); } updateToolWindow(designer); } | run |
248,097 | void () { ToolWindowEx toolWindow = (ToolWindowEx)myToolWindow; toolWindow.setAdditionalGearActions(new DefaultActionGroup(createGearActions())); } | initGearActions |
248,098 | AnAction () { DefaultActionGroup group = DefaultActionGroup.createPopupGroup(IdeBundle.messagePointer("popup.title.in.editor.mode")); group.add(createToggleAction(ToolWindowAnchor.LEFT)); group.add(createToggleAction(ToolWindowAnchor.RIGHT)); group.add(createToggleAction(null)); return group; } | createGearActions |
248,099 | void (@NotNull DesignerEditorPanelFacade designer) { if (isEditorMode()) { myCreateAction.accept(designer); } } | bind |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.