Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
258,300
RunConfigurationSingletonPolicy () { return RunConfigurationSingletonPolicy.SINGLE_INSTANCE; }
getSingletonPolicy
258,301
boolean () { return false; }
isEditableInDumbMode
258,302
void (boolean b) { myDoNotStore = b; }
setDoNotStore
258,303
Icon () { return null; }
getIcon
258,304
boolean () { return myDoNotStore; }
isDoNotStore
258,305
ConfigurationFactory () { return myFactory; }
getFactory
258,306
void (@NotNull final String name) { myName = name; }
setName
258,307
Project () { return myProject; }
getProject
258,308
RunConfiguration () { try { return (UnknownRunConfiguration)super.clone(); } catch (CloneNotSupportedException e) { return null; } }
clone
258,309
String () { if (myName == null) { myName = String.format("Unknown%s", myUniqueName.getAndAdd(1)); } return myName; }
getName
258,310
String () { if (myStoredElement != null) { return myStoredElement.getAttributeValue("type"); } return null; }
getConfigurationTypeId
258,311
void (@NotNull final UnknownRunConfiguration s) { }
resetEditorFrom
258,312
void (@NotNull final UnknownRunConfiguration s) { }
applyEditorTo
258,313
JComponent () { return myPanel; }
createEditor
258,314
void () { // to ensure that newly created RC will have modification counter 0 syncModuleName(); getOptions().resetModificationCount(); }
setInitialModuleName
258,315
ModuleBasedConfigurationOptions () { return (ModuleBasedConfigurationOptions)super.getOptions(); }
getOptions
258,316
ConfigurationModule () { return myModule; }
getConfigurationModule
258,317
void (final Module module) { getConfigurationModule().setModule(module); }
setModule
258,318
void (@Nullable String moduleName) { getConfigurationModule().setModuleName(moduleName); }
setModuleName
258,319
void (@NotNull Element element) { getConfigurationModule().readExternal(element); }
readModule
258,320
void (@NotNull Element element) { //if (myModule.getModule() != null) { getConfigurationModule().writeExternal(element); //} }
writeModule
258,321
Collection<Module> () { return Arrays.asList(ModuleManager.getInstance(getProject()).getModules()); }
getAllModules
258,322
ModuleBasedConfiguration () { @SuppressWarnings("unchecked") ModuleBasedConfiguration<ConfigurationModule, T> configuration = (ModuleBasedConfiguration<ConfigurationModule, T>)getFactory().createTemplateConfiguration(getProject()); configuration.setName(getName()); return configuration; }
createInstance
258,323
T () { syncModuleName(); return super.getState(); }
getState
258,324
void (@NotNull T state) { super.loadState(state); myModule.setModuleName(getOptions().getModule()); }
loadState
258,325
void () { getOptions().setModule(myModule.getModuleName()); }
syncModuleName
258,326
ModuleBasedConfiguration () { @SuppressWarnings("unchecked") ModuleBasedConfiguration<ConfigurationModule, T> configuration = (ModuleBasedConfiguration)Objects.requireNonNull(getFactory()) .createTemplateConfiguration(getProject()); configuration.setName(getName()); // AbstractPythonRunConfiguration calls in the constr...
clone
258,327
void (final Module originalModule) { if (canRestoreOriginalModule(originalModule, getModules())) { setModule(originalModule); } }
restoreOriginalModule
258,328
boolean (Module originalModule, Module[] configModules) { if (originalModule == null || configModules.length == 0) { return false; } Deque<Module> queue = new ArrayDeque<>(); queue.addLast(originalModule); Set<Module> modules = new HashSet<>(); while (!queue.isEmpty()) { Module module = queue.removeFirst(); //configMod...
canRestoreOriginalModule
258,329
void () { final RunConfigurationModule configurationModule = getConfigurationModule(); if (configurationModule.getModule() == null) { final Module[] modules = ModuleManager.getInstance(getProject()).getModules(); configurationModule.setModule(modules.length == 1 ? modules[0] : null); } }
onNewConfigurationCreated
258,330
boolean () { return false; }
isModuleDirMacroSupported
258,331
Module () { final Module[] modules = ModuleManager.getInstance(getProject()).getModules(); return modules.length == 1 ? modules[0] : null; }
getDefaultModule
258,332
String () { return getOptions().getProjectPathOnTarget(); }
getProjectPathOnTarget
258,333
void (String path) { getOptions().setProjectPathOnTarget(path); }
setProjectPathOnTarget
258,334
RunProfile (@NotNull RunProfile runProfile) { if (runProfile instanceof WrappingRunConfiguration) { return ((WrappingRunConfiguration<?>)runProfile).getPeer(); } return runProfile; }
unwrapRunProfile
258,335
UnknownConfigurationType () { return INSTANCE; }
getInstance
258,336
RunConfiguration (@NotNull Project project) { return new UnknownRunConfiguration(this, project); }
createTemplateConfiguration
258,337
RunConfigurationSingletonPolicy () { // in any case, you cannot run UnknownConfigurationType return RunConfigurationSingletonPolicy.SINGLE_INSTANCE_ONLY; }
getSingletonPolicy
258,338
String () { return "reference.dialogs.rundebug.Unknown"; }
getHelpTopic
258,339
boolean () { return false; }
isManaged
258,340
String () { return myWorkingDirectory; }
getWorkingDirectory
258,341
void (File path) { setWorkingDirectory(path.getPath()); }
setWorkingDirectory
258,342
void (String path) { myWorkingDirectory = path; }
setWorkingDirectory
258,343
ParametersList () { return myProgramParameters; }
getProgramParametersList
258,344
String (String name, String value) { return myEnv.put(name, value); }
addEnv
258,345
void (final Map<String, String> env) { myEnv = env; }
setEnv
258,346
boolean () { return myPassParentEnvs; }
isPassParentEnvs
258,347
void (final boolean passDefaultEnvs) { myPassParentEnvs = passDefaultEnvs; }
setPassParentEnvs
258,348
void (Map<String, String> envs, boolean passDefault) { if (!envs.isEmpty()) { envs = new HashMap<>(envs); EnvironmentUtil.inlineParentOccurrences(envs); } setEnv(envs); setPassParentEnvs(passDefault); }
setupEnvs
258,349
RunConfigurationOptions () { return ReflectionUtil.newInstance(getOptionsClass()); }
createOptions
258,350
RunConfigurationOptions () { return myOptions; }
getOptions
258,351
void (@NotNull List<BeforeRunTask<?>> value) { myBeforeRunTasks = value; }
setBeforeRunTasks
258,352
ConfigurationFactory () { return myFactory; }
getFactory
258,353
void (String name) { myName = name; }
setName
258,354
Project () { return myProject; }
getProject
258,355
String () { // a lot of clients not ready that name can be null and in most cases it is not convenient - just add more work to handle null value // in any case for run configuration empty name it is the same as null, we don't need to bother clients and use null return StringUtilRt.notNullize(myName); }
getName
258,356
int () { return super.hashCode(); }
hashCode
258,357
boolean (@NotNull ExecutionTarget target) { return true; }
canRunOn
258,358
String () { return getOptions().getProjectPathOnTarget(); }
getProjectPathOnTarget
258,359
void (String path) { getOptions().setProjectPathOnTarget(path); }
setProjectPathOnTarget
258,360
boolean (final Object obj) { return super.equals(obj); }
equals
258,361
RunConfiguration () { //noinspection unchecked RunConfigurationBase<T> result = (RunConfigurationBase<T>)super.clone(); result.myOptions = createOptions(); result.doCopyOptionsFrom(this); return result; }
clone
258,362
void (@NotNull RunConfigurationBase<T> template) { myOptions.copyFrom(template.myOptions); myOptions.resetModificationCount(); myOptions.setAllowRunningInParallel(template.isAllowRunningInParallel()); myBeforeRunTasks = ContainerUtil.copyList(template.myBeforeRunTasks); }
doCopyOptionsFrom
258,363
LogFileOptions (PredefinedLogFile predefinedLogFile) { return null; }
getOptionsForPredefinedLogFile
258,364
void () { getOptions().getPredefinedLogFiles().clear(); }
removeAllPredefinedLogFiles
258,365
void (@NotNull PredefinedLogFile predefinedLogFile) { getOptions().getPredefinedLogFiles().add(predefinedLogFile); }
addPredefinedLogFile
258,366
List<PredefinedLogFile> () { return getOptions().getPredefinedLogFiles(); }
getPredefinedLogFiles
258,367
ArrayList<LogFileOptions> () { ArrayList<LogFileOptions> list = new ArrayList<>(getLogFiles()); for (PredefinedLogFile predefinedLogFile : getOptions().getPredefinedLogFiles()) { final LogFileOptions options = getOptionsForPredefinedLogFile(predefinedLogFile); if (options != null) { list.add(options); } } return list; ...
getAllLogFiles
258,368
List<LogFileOptions> () { return getOptions().getLogFiles(); }
getLogFiles
258,369
void (String file, String alias, boolean checked) { getOptions().getLogFiles().add(new LogFileOptions(alias, file, checked)); }
addLogFile
258,370
void (String file, String alias, boolean checked, boolean skipContent, final boolean showAll) { getOptions().getLogFiles().add(new LogFileOptions(alias, file, checked, skipContent, showAll)); }
addLogFile
258,371
void () { getOptions().getLogFiles().clear(); }
removeAllLogFiles
258,372
void (AdditionalTabComponentManager manager, ProcessHandler startedProcess) { }
createAdditionalTabComponents
258,373
void (LogConsole console) { }
customizeLogConsole
258,374
T () { //noinspection unchecked return (T)getOptions(); }
getState
258,375
void (@NotNull T state) { if (state instanceof Element) { myOptions = XmlSerializer.deserialize((Element)state, getOptionsClass()); } else { myOptions = (RunConfigurationOptions)state; } }
loadState
258,376
void (@NotNull Element element) { XmlSerializer.serializeObjectInto(myOptions, element); }
writeExternal
258,377
List<Option> () { return myOptions.getSelectedOptions(); }
getSelectedOptions
258,378
void (@NotNull List<Option> fragmentIds) { myOptions.setSelectedOptions(fragmentIds); }
setSelectedOptions
258,379
void (@NotNull BaseState state) { myOptions.copyFrom(state, /* isMustBeTheSameType= */false); }
setOptionsFromConfigurationFile
258,380
boolean () { return myOptions.getFileOutput().isSaveOutput(); }
isSaveOutputToFile
258,381
void (boolean redirectOutput) { myOptions.getFileOutput().setSaveOutput(redirectOutput); }
setSaveOutputToFile
258,382
boolean () { return myOptions.isShowConsoleOnStdOut(); }
isShowConsoleOnStdOut
258,383
void (boolean showConsoleOnStdOut) { myOptions.setShowConsoleOnStdOut(showConsoleOnStdOut); }
setShowConsoleOnStdOut
258,384
boolean () { return myOptions.isShowConsoleOnStdErr(); }
isShowConsoleOnStdErr
258,385
void (boolean showConsoleOnStdErr) { myOptions.setShowConsoleOnStdErr(showConsoleOnStdErr); }
setShowConsoleOnStdErr
258,386
void (@NlsSafe String fileOutputPath) { myOptions.getFileOutput().setFileOutputPath(fileOutputPath); }
setFileOutputPath
258,387
boolean () { return true; }
collectOutputFromProcessHandler
258,388
boolean () { return false; }
excludeCompileBeforeLaunchOption
258,389
String () { return getType().getDisplayName() + ": " + getName(); }
toString
258,390
boolean () { return false; }
isNewSerializationUsed
258,391
boolean () { return getOptions().isAllowRunningInParallel(); }
isAllowRunningInParallel
258,392
void (boolean value) { getOptions().setAllowRunningInParallel(value); }
setAllowRunningInParallel
258,393
void () { }
onNewConfigurationCreated
258,394
void () { }
onConfigurationCopied
258,395
RunContentManager (@NotNull Project project) { return project.getService(RunContentManager.class); }
getInstance
258,396
RunContentManager (@NotNull Project project) { return project.getServiceIfCreated(RunContentManager.class); }
getInstanceIfCreated
258,397
Factory (Project project) { return project.getService(Factory.class); }
getInstance
258,398
String () { return String.format("ConsoleViewPlace(%s)", myDescription); }
toString
258,399
RunContentDescriptor (@NotNull ExecutionResult executionResult, @NotNull ExecutionEnvironment environment) { return null; }
showRunContent