Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
264,400 | boolean () { return getDeployment().getStatus() == DeploymentStatus.DEPLOYED; } | isDeployed |
264,401 | String () { return getDeployment().getName(); } | getDeploymentName |
264,402 | JComponent () { DeploymentLogManagerImpl logManager = getLogManager(); return logManager != null && logManager.isMainHandlerVisible() ? logManager.getMainLoggingHandler().getConsole().getComponent() : null; } | getComponent |
264,403 | DeploymentLogManagerImpl () { return (DeploymentLogManagerImpl)myConnection.getLogManager(myProject, getDeployment()); } | getLogManager |
264,404 | String () { return myServerNode.getName() + ";deployment" + getDeployment().getName(); } | getId |
264,405 | String () { return getId() + ";main-log"; } | getLogId |
264,406 | void (List<? super AbstractTreeNode<?>> children) { ServerConnection<?> connection = getConnection(); if (connection == null) { return; } for (Deployment deployment : connection.getDeployments()) { DeploymentRuntime parent = deployment.getParentRuntime(); if (parent != null && parent == getDeployment().getRuntime()) { ... | collectDeploymentChildren |
264,407 | void (List<? super AbstractTreeNode<?>> children) { ServerConnection<?> connection = getConnection(); if (connection == null) { return; } DeploymentLogManagerImpl logManager = (DeploymentLogManagerImpl)connection.getLogManager(myProject, getDeployment()); if (logManager != null) { for (LoggingHandlerBase loggingCompone... | collectLogChildren |
264,408 | void (@NotNull PresentationData presentation) { Deployment deployment = getDeployment(); presentation.setIcon(deployment.getStatus().getIcon()); presentation.setPresentableText(deployment.getPresentableName()); presentation.setTooltip(deployment.getStatusText()); } | update |
264,409 | void (@NotNull PresentationData presentation) { presentation.setIcon(AllIcons.Debugger.Console); presentation.setPresentableText(getLogName()); } | update |
264,410 | String () { return getValue().getPresentableName(); } | getLogName |
264,411 | JComponent () { return getValue().getComponent(); } | getComponent |
264,412 | String () { return myDeploymentNode.getId() + ";log:" + getLogName(); } | getLogId |
264,413 | void (@NotNull AnActionEvent e) { DeploymentNode node = getDeploymentTarget(e); boolean visible = node != null && node.isDeployActionVisible() && node.isDebugActionVisible(); e.getPresentation().setVisible(visible); e.getPresentation().setEnabled(visible && node.isDeployActionEnabled()); } | update |
264,414 | void (@NotNull AnActionEvent e) { DeploymentNode node = getDeploymentTarget(e); if (node != null) { node.deployWithDebug(); } } | actionPerformed |
264,415 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
264,416 | void (@NotNull AnActionEvent e) { ServersTreeStructure.RemoteServerNode node = getRemoteServerTarget(e); boolean visible = node != null; e.getPresentation().setVisible(visible); e.getPresentation().setEnabled(visible && node.isConnected()); } | update |
264,417 | void (@NotNull AnActionEvent e) { ServersTreeStructure.RemoteServerNode node = getRemoteServerTarget(e); ServerConnection<?> connection = node == null ? null : ServerConnectionManager.getInstance().getConnection(node.getValue()); if (connection != null) { connection.disconnect(); } } | actionPerformed |
264,418 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
264,419 | void (@NotNull AnActionEvent e) { DeploymentNode node = getDeploymentTarget(e); boolean visible = node != null; e.getPresentation().setVisible(visible); e.getPresentation().setEnabled(visible && node.isUndeployActionEnabled()); } | update |
264,420 | void (@NotNull AnActionEvent e) { DeploymentNode node = getDeploymentTarget(e); if (node != null) { node.undeploy(); } } | actionPerformed |
264,421 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
264,422 | void (@NotNull AnActionEvent e) { ServersTreeStructure.DeploymentNodeImpl node = getTarget(e, ServersTreeStructure.DeploymentNodeImpl.class); e.getPresentation().setEnabledAndVisible(node != null && node.isEditConfigurationActionVisible()); } | update |
264,423 | void (@NotNull AnActionEvent e) { ServersTreeStructure.DeploymentNodeImpl node = getTarget(e, ServersTreeStructure.DeploymentNodeImpl.class); if (node != null) { node.editConfiguration(); } } | actionPerformed |
264,424 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
264,425 | void (@NotNull AnActionEvent e) { e.getPresentation().setEnabledAndVisible(getRemoteServerTarget(e) != null); } | update |
264,426 | void (@NotNull AnActionEvent e) { ServersTreeStructure.RemoteServerNode node = getRemoteServerTarget(e); if (node != null) { node.deploy(e); } } | actionPerformed |
264,427 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
264,428 | void (@NotNull AnActionEvent e) { e.getPresentation().setEnabledAndVisible(getRemoteServerTarget(e) != null); } | update |
264,429 | void (@NotNull AnActionEvent e) { ServersTreeStructure.RemoteServerNode node = getRemoteServerTarget(e); if (node != null) { node.editConfiguration(); } } | actionPerformed |
264,430 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
264,431 | void (@NotNull AnActionEvent e) { DeploymentNode node = getDeploymentTarget(e); Presentation presentation = e.getPresentation(); boolean visible = node != null && node.isDeployActionVisible(); presentation.setVisible(visible); presentation.setEnabled(visible && node.isDeployActionEnabled()); if (node != null && node.is... | update |
264,432 | void (@NotNull AnActionEvent e) { DeploymentNode node = getDeploymentTarget(e); if (node != null) { node.deploy(); } } | actionPerformed |
264,433 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
264,434 | void (@NotNull AnActionEvent e) { ServersTreeStructure.RemoteServerNode node = getRemoteServerTarget(e); boolean visible = node != null; e.getPresentation().setVisible(visible); e.getPresentation().setEnabled(visible && !node.isConnected()); } | update |
264,435 | void (@NotNull AnActionEvent e) { ServersTreeStructure.RemoteServerNode node = getRemoteServerTarget(e); if (node != null) { ServerConnectionManager.getInstance().getOrCreateConnection(node.getValue()).connect(EmptyRunnable.INSTANCE); } } | actionPerformed |
264,436 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
264,437 | void (@NotNull AnActionEvent e) { ServersTreeStructure.RemoteServerNode node = getRemoteServerTarget(e); e.getPresentation().setEnabledAndVisible(node != null && node.getServer().getType().createDebugConnector() != null); } | update |
264,438 | void (@NotNull AnActionEvent e) { ServersTreeStructure.RemoteServerNode node = getRemoteServerTarget(e); if (node != null) { node.deployWithDebug(e); } } | actionPerformed |
264,439 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
264,440 | void (@NotNull AnActionEvent e) { if (e.getPlace().equals(ActionPlaces.ACTION_SEARCH)) { e.getPresentation().setText(CloudBundle.messagePointer("new.cloud.connection.configurable.title", myServerType.getPresentableName())); } else { e.getPresentation().setText(myServerType.getPresentableName()); } } | update |
264,441 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
264,442 | void (@NotNull AnActionEvent e) { Project project = e.getProject(); if (project == null) return; addNewRemoteServer(project, myServerType, DefaultRemoteServersServiceViewContributor.class); } | actionPerformed |
264,443 | State () { State result = new State(); for (Map.Entry<String, List<File>> entry : myFiles.entrySet()) { DownloadedLibraryState libraryState = new DownloadedLibraryState(); libraryState.myId = entry.getKey(); for (File file : entry.getValue()) { libraryState.myPaths.add(FileUtil.toSystemIndependentName(file.getAbsoluteP... | getState |
264,444 | void (@NotNull State state) { myFiles = new HashMap<>(); for (DownloadedLibraryState libraryState : state.myLibraries) { List<File> files = new ArrayList<>(); for (String path : libraryState.myPaths) { files.add(new File(path)); } myFiles.put(libraryState.myId, files); } } | loadState |
264,445 | List<File> (ClientLibraryDescription description) { List<File> files = myFiles.get(description.getId()); if (files == null) { return Collections.emptyList(); } List<File> existentFiles = new ArrayList<>(); for (File file : files) { if (file.exists()) { existentFiles.add(file); } } return existentFiles; } | getExistentFiles |
264,446 | File (ClientLibraryDescription description) { return new File(PathManager.getSystemPath(), "remote-server-libraries/" + description.getId()); } | getStoreDirectory |
264,447 | JComponent () { if (!isTreeInitialized) { initTree(); isTreeInitialized = true; } return super.createComponent(); } | createComponent |
264,448 | String () { final String typeNames = StringUtil.join(getDisplayedServerTypes(), ServerType::getPresentableName, ", "); if (typeNames.length() > 0) { return CloudBundle.message("clouds.configure.empty.selection.string", typeNames); } return null; } | getEmptySelectionString |
264,449 | RemoteServerListConfigurable (@NotNull ServerType<?> type) { return createConfigurable(type, null); } | createConfigurable |
264,450 | RemoteServerListConfigurable (@NotNull ServerType<?> type, @Nullable String nameToSelect) { return new RemoteServerListConfigurable(RemoteServersManager.getInstance(), type, nameToSelect); } | createConfigurable |
264,451 | String () { ServerType<?> singleServerType = getSingleServerType(); return singleServerType == null ? CloudBundle.message("configurable.display.name.clouds") : singleServerType.getPresentableName(); } | getDisplayName |
264,452 | void () { myRoot.removeAllChildren(); for (RemoteServer<?> server : getServers()) { addServerNode(server, false); } super.reset(); if (myInitialSelectedName != null) { selectNodeInTree(myInitialSelectedName); } } | reset |
264,453 | MyNode (RemoteServer<?> server, boolean isNew) { MyNode node = new MyNode(new SingleRemoteServerConfigurable(server, TREE_UPDATER, isNew)); addNode(node, myRoot); return node; } | addServerNode |
264,454 | String () { return ID; } | getId |
264,455 | Runnable (final String option) { return () -> Objects.requireNonNull(SpeedSearchSupply.getSupply(myTree, true)).findAndSelectElement(option); } | enableSearch |
264,456 | void () { super.initTree(); TreeSpeedSearch.installOn(myTree, true, treePath -> ((MyNode)treePath.getLastPathComponent()).getDisplayName()); } | initTree |
264,457 | void () { Set<RemoteServer<?>> servers = new HashSet<>(); for (NamedConfigurable<RemoteServer<?>> configurable : getConfiguredServers()) { servers.add(configurable.getEditableObject()); } List<RemoteServer<?>> toDelete = new ArrayList<>(); for (RemoteServer<?> server : getServers()) { if (!servers.contains(server)) { t... | processRemovedItems |
264,458 | ArrayList<AnAction> (boolean fromPopup) { ArrayList<AnAction> actions = new ArrayList<>(); ServerType<?> singleServerType = getSingleServerType(); if (singleServerType == null) { actions.add(new AddRemoteServerGroup()); } else { actions.add(new AddRemoteServerAction(singleServerType, IconUtil.getAddIcon())); } actions.... | createActions |
264,459 | boolean (Object editableObject) { return true; } | wasObjectStored |
264,460 | String () { String result = super.getHelpTopic(); if (result == null) { ServerType<?> singleServerType = getSingleServerType(); if (singleServerType != null) { result = singleServerType.getHelpTopic(); } } return result != null ? result : "reference.settings.clouds"; } | getHelpTopic |
264,461 | void () { Object selectedObject = getSelectedObject(); myLastSelectedServer = selectedObject instanceof RemoteServer<?> ? (RemoteServer)selectedObject : null; super.disposeUIResources(); } | disposeUIResources |
264,462 | void () { super.reInitWholePanelIfNeeded(); if (myWholePanel.getBorder() == null) { myWholePanel.setBorder(JBUI.Borders.emptyLeft(10)); } } | reInitWholePanelIfNeeded |
264,463 | ActionGroup () { return this; } | getActionGroup |
264,464 | void (@NotNull AnActionEvent e) { String name = UniqueNameGenerator.generateUniqueName(myServerType.getPresentableName(), s -> { for (NamedConfigurable<RemoteServer<?>> configurable : getConfiguredServers()) { if (configurable.getDisplayName().equals(s)) { return false; } } return true; }); MyNode node = addServerNode(... | actionPerformed |
264,465 | boolean () { List<ServerType<?>> serverTypes = getServerTypesIncludedInList(); return !serverTypes.isEmpty(); } | canCreateConfigurable |
264,466 | Configurable () { return new RemoteServerListConfigurable(RemoteServersManager.getInstance(), getServerTypesIncludedInList(), null); } | createConfigurable |
264,467 | JComponent () { return myDelegate.createComponent(); } | createComponent |
264,468 | boolean () { return myDelegate.isModified(); } | isModified |
264,469 | void () { myDelegate.reset(); } | reset |
264,470 | void (@NotNull ServerType addedType, @NotNull PluginDescriptor pluginDescriptor) { List<RemoteServerState> nowKnownStates = ContainerUtil.filter(myUnknownServers, next -> addedType.getId().equals(next.myTypeId)); nowKnownStates.forEach(nextState -> { myUnknownServers.remove(nextState); addServer(createConfiguration(add... | extensionAdded |
264,471 | void (@NotNull ServerType removedType, @NotNull PluginDescriptor pluginDescriptor) { @SuppressWarnings("unchecked") List<RemoteServer<?>> removedServers = getServers(removedType); removedServers.forEach(nextServer -> { RemoteServerState nextState = createServerState(nextServer); removeServer(nextServer); myUnknownServe... | extensionRemoved |
264,472 | void (RemoteServer<?> server) { myServers.add(server); ApplicationManager.getApplication().getMessageBus().syncPublisher(RemoteServerListener.TOPIC).serverAdded(server); } | addServer |
264,473 | void (RemoteServer<?> server) { myServers.remove(server); ApplicationManager.getApplication().getMessageBus().syncPublisher(RemoteServerListener.TOPIC).serverRemoved(server); } | removeServer |
264,474 | RemoteServersManagerState () { RemoteServersManagerState state = new RemoteServersManagerState(); for (RemoteServer<?> server : myServers) { state.myServers.add(createServerState(server)); } state.myServers.addAll(myUnknownServers); return state; } | getState |
264,475 | void (@NotNull RemoteServersManagerState state) { myUnknownServers.clear(); myServers.clear(); List<CloudConfigurationBase<?>> needsMigration = new LinkedList<>(); for (RemoteServerState server : state.myServers) { ServerType<?> type = findServerType(server.myTypeId); if (type == null) { myUnknownServers.add(server); }... | loadState |
264,476 | RemoteServerState (@NotNull RemoteServer<?> server) { RemoteServerState serverState = new RemoteServerState(); serverState.myName = server.getName(); serverState.myTypeId = server.getType().getId(); serverState.myConfiguration = XmlSerializer.serialize(server.getConfiguration().getSerializer().getState(), myDefaultValu... | createServerState |
264,477 | String () { return myName; } | getName |
264,478 | ServerType<C> () { return myType; } | getType |
264,479 | C () { return myConfiguration; } | getConfiguration |
264,480 | void (String name) { myName = name; } | setName |
264,481 | void (@NotNull SearchableOptionProcessor processor) { for (ServerType<?> serverType : ServerType.EP_NAME.getExtensionList()) { String typeName = serverType.getPresentableName(); processor.addOptions(typeName, null, typeName + " cloud type", RemoteServerListConfigurable.ID, null, false); for (RemoteServer<?> server : Re... | processOptions |
264,482 | boolean () { if (!myConfigurable.canCheckConnection()) return false; boolean modified = myConfigurable.isModified(); boolean result = modified || myAppliedButNeedsCheck; if (result) { myAppliedButNeedsCheck = false; setConnectionStatus(false, false, ""); myConnectionTester = null; if (modified) { try { myConfigurable.a... | wasChanged |
264,483 | void () { setConnectionStatus(false, false, CloudBundle.message("cloud.status.connecting")); myConnectionTester = new ConnectionTester(); myConnectionTester.testConnection(); } | run |
264,484 | void (boolean error, boolean connected, @NlsContexts.Label String text) { myConnected = connected; setConnectionStatusText(error, text); } | setConnectionStatus |
264,485 | void (boolean error, @NlsContexts.Label String text) { myConnectionStatusLabel.setText(UIUtil.toHtml(text)); myConnectionStatusLabel.setVisible(StringUtil.isNotEmpty(text)); } | setConnectionStatusText |
264,486 | String () { return myServer.getName(); } | getBannerSlogan |
264,487 | JComponent () { mySettingsPanel.add(BorderLayout.CENTER, myConfigurable.createComponent()); return myMainPanel; } | createOptionsPanel |
264,488 | String () { return myServerName; } | getDisplayName |
264,489 | String () { return myServer.getType().getHelpTopic(); } | getHelpTopic |
264,490 | void (String name) { myServerName = name; } | setDisplayName |
264,491 | boolean () { return myNew || myConfigurable.isModified() || myInnerApplied || !myServerName.equals(myServer.getName()); } | isModified |
264,492 | void () { myConfigurable.reset(); } | reset |
264,493 | void () { myConfigurable.disposeUIResources(); Disposer.dispose(myRunner); } | disposeUIResources |
264,494 | Icon (boolean expanded) { return myServer.getType().getIcon(); } | getIcon |
264,495 | void () { myTester.testConnection(this::testFinished); } | testConnection |
264,496 | void (boolean connected, @NotNull String connectionStatus) { UIUtil.invokeLaterIfNeeded(() -> { if (myConnectionTester == this) { setConnectionStatus(!connected, connected, connected ? CloudBundle.message("cloud.status.connection.successful") : CloudBundle.message("cloud.status.cannot.connect", connectionStatus)); } })... | testFinished |
264,497 | void (@NotNull Callback callback) { final ServerConnection connection = ServerConnectionManager.getInstance().createTemporaryConnection(myServer); final AtomicReference<Boolean> connectedRef = new AtomicReference<>(null); final Semaphore semaphore = new Semaphore(); semaphore.down(); //noinspection unchecked connection... | testConnection |
264,498 | void (@NotNull ServerRuntimeInstance serverRuntimeInstance) { connectedRef.set(true); semaphore.up(); connection.disconnect(); } | connected |
264,499 | void (@NotNull String errorMessage) { connectedRef.set(false); semaphore.up(); } | errorOccurred |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.