Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
56,600
String () { return myHtmlParamFile; }
getHtmlParamFile
56,601
String () { return myParamFile; }
getParamFile
56,602
void (String htmlParamFile) { myHtmlParamFile = htmlParamFile; }
setHtmlParamFile
56,603
void (String paramFile) { myParamFile = paramFile; }
setParamFile
56,604
String () { return myUpdateMode; }
getUpdateMode
56,605
void (String updateMode) { myUpdateMode = updateMode; }
setUpdateMode
56,606
boolean () { return myEnabledSigning; }
isEnabledSigning
56,607
void (boolean enabledSigning) { myEnabledSigning = enabledSigning; }
setEnabledSigning
56,608
boolean () { return mySelfSigning; }
isSelfSigning
56,609
void (boolean selfSigning) { mySelfSigning = selfSigning; }
setSelfSigning
56,610
String () { return myAlias; }
getAlias
56,611
void (String alias) { myAlias = alias; }
setAlias
56,612
String () { return myKeystore; }
getKeystore
56,613
void (String keystore) { myKeystore = keystore; }
setKeystore
56,614
String () { return myStorepass; }
getStorepass
56,615
void (String storepass) { myStorepass = storepass; }
setStorepass
56,616
String () { return myKeypass; }
getKeypass
56,617
void (String keypass) { myKeypass = keypass; }
setKeypass
56,618
boolean () { return myConvertCss2Bin; }
isConvertCss2Bin
56,619
void (boolean convertCss2Bin) { myConvertCss2Bin = convertCss2Bin; }
setConvertCss2Bin
56,620
void (JavaFxPackagerConstants.NativeBundles nativeBundle) { myNativeBundle = nativeBundle; }
setNativeBundle
56,621
List<JavaFxManifestAttribute> () { return myCustomManifestAttributes; }
getCustomManifestAttributes
56,622
void (List<JavaFxManifestAttribute> customManifestAttributes) { myCustomManifestAttributes = customManifestAttributes; }
setCustomManifestAttributes
56,623
void (JavaFxPackagerConstants.MsgOutputLevel msgOutputLevel) { myMsgOutputLevel = msgOutputLevel; }
setMsgOutputLevel
56,624
void (MyState state) { myState.setPreloaderClass(state.myPreloaderClass); }
copyState
56,625
JpsJavaFxPreloaderArtifactProperties () { return new JpsJavaFxPreloaderArtifactProperties(myState); }
createCopy
56,626
void (@NotNull JpsJavaFxPreloaderArtifactProperties modified) { copyState(modified.myState); }
applyChanges
56,627
String () { return myState.getPreloaderClass(); }
getPreloaderClass
56,628
String () { return myPreloaderClass; }
getPreloaderClass
56,629
void (String preloaderClass) { myPreloaderClass = preloaderClass; }
setPreloaderClass
56,630
JpsJavaFxPreloaderArtifactProperties (List<ArtifactPropertiesState> stateList) { final JpsJavaFxPreloaderArtifactProperties.MyState properties = doLoadProperties(stateList); return properties != null ? new JpsJavaFxPreloaderArtifactProperties(properties) : new JpsJavaFxPreloaderArtifactProperties(); }
loadProperties
56,631
ArtifactPropertiesState (List<ArtifactPropertiesState> stateList) { for (ArtifactPropertiesState state : stateList) { if ("javafx-preloader-properties".equals(state.getId())) { return state; } } return null; }
findApplicationProperties
56,632
List<JPackageBuildTask> (@NotNull JpsArtifact artifact, @NotNull ArtifactBuildPhase buildPhase) { if (buildPhase != ArtifactBuildPhase.POST_PROCESSING || !(artifact.getArtifactType() instanceof JPackageJpsArtifactType)) { return Collections.emptyList(); } final JpsElement properties = artifact.getProperties(); if (!(pr...
createArtifactBuildTasks
56,633
void () { final Set<JpsSdk<?>> sdks = myCompileContext.getProjectDescriptor().getProjectJavaSdks(); JpsSdk javaSdk = null; for (JpsSdk<?> sdk : sdks) { final JpsSdkType<? extends JpsElement> sdkType = sdk.getSdkType(); if (sdkType instanceof JpsJavaSdkType && JpsJavaSdkType.getJavaVersion(sdk) >= 14) { javaSdk = sdk; b...
start
56,634
void (List<String> commands, @NotNull String key, @Nullable String value) { if (!StringUtil.isEmpty(value)) { commands.add(key); commands.add(value); } }
addOption
56,635
String () { for (JpsPackagingElement element : myArtifact.getRootElement().getChildren()) { if (element instanceof JpsArchivePackagingElement) { return ((JpsArchivePackagingElement)element).getArchiveName(); } } return null; }
getArchiveName
56,636
void (@Nls String message) { myCompileContext.processMessage(new CompilerMessage("jpackage", BuildMessage.Kind.ERROR, message)); }
error
56,637
void (@Nls String message) { myCompileContext.processMessage(new CompilerMessage("jpackage", BuildMessage.Kind.INFO, message)); }
info
56,638
int (List<String> commands) { try { final AtomicInteger exitCode = new AtomicInteger(); final @NlsSafe StringBuilder errorOutput = new StringBuilder(); final List<@NlsSafe String> delayedInfoOutput = new ArrayList<>(); final Process process = new ProcessBuilder(CommandLineUtil.toCommandLine(commands)).start(); BaseOSPr...
startProcess
56,639
void (@NotNull ProcessEvent event) { if (myProperties.verbose) { LOG.info("Started " + commands); } }
startNotified
56,640
void (@NotNull ProcessEvent event) { if (myProperties.verbose) { LOG.info("Terminated " + commands + ", exit code: " + event.getExitCode()); } exitCode.set(event.getExitCode()); }
processTerminated
56,641
void (@NotNull ProcessEvent event, @NotNull Key outputType) { String message = StringUtil.trimTrailing(event.getText()); if (outputType == ProcessOutputTypes.STDERR) { LOG.error(message, (Throwable)null); errorOutput.append(event.getText()); } else { LOG.info(message); if (myProperties.verbose) { info(message); } else ...
onTextAvailable
56,642
void (JPackageArtifactProperties copy) { version = copy.version; copyright = copy.copyright; description = copy.description; vendor = copy.vendor; verbose = copy.verbose; mainClass = copy.mainClass; }
copyState
56,643
JPackageArtifactProperties () { return new JPackageArtifactProperties(this); }
createCopy
56,644
void (@NotNull JPackageArtifactProperties modified) { copyState(modified); }
applyChanges
56,645
JPackageArtifactProperties (List<ArtifactPropertiesState> stateList) { final ArtifactPropertiesState state = findApplicationProperties(stateList); if (state != null) { final Element options = state.getOptions(); if (options != null) { return new JPackageArtifactProperties(XmlSerializer.deserialize(options, JPackageArti...
loadProperties
56,646
ArtifactPropertiesState (List<ArtifactPropertiesState> stateList) { return ContainerUtil.find(stateList, state -> "jpackage-properties".equals(state.getId())); }
findApplicationProperties
56,647
PsiElementVisitor (@NotNull ProblemsHolder holder, boolean isOnTheFly, @NotNull LocalInspectionToolSession session) { if (!JavaFxFileTypeFactory.isFxml(session.getFile())) return PsiElementVisitor.EMPTY_VISITOR; return new XmlElementVisitor() { @Override public void visitXmlAttributeValue(@NotNull XmlAttributeValue xml...
buildVisitor
56,648
void (@NotNull XmlAttributeValue xmlAttributeValue) { super.visitXmlAttributeValue(xmlAttributeValue); final String value = xmlAttributeValue.getValue(); if (value.startsWith("%") && value.length() > 1) { final PsiReference reference = xmlAttributeValue.getReference(); if (reference instanceof PropertyReference) { fina...
visitXmlAttributeValue
56,649
void (@NotNull PsiReferenceRegistrar registrar) { final XmlAttributeValuePattern attributeValueInFxml = XmlPatterns.xmlAttributeValue().inVirtualFile( virtualFile().withExtension(JavaFxFileTypeFactory.FXML_EXTENSION)); registrar.registerReferenceProvider(XmlPatterns.xmlAttributeValue().withValue(string().startsWith("%"...
registerReferenceProviders
56,650
boolean (@NotNull PsiClass clazz) { return !DumbService.isDumb(clazz.getProject()) && InheritanceUtil.isInheritor(clazz, true, JavaFxCommonNames.JAVAFX_APPLICATION_APPLICATION); }
isApplicable
56,651
boolean (@NotNull PsiClass clazz) { return isApplicable(clazz); }
hasMainMethod
56,652
JavaFxSettings () { return ApplicationManager.getApplication().getService(JavaFxSettings.class); }
getInstance
56,653
JavaFxSettings () { return this; }
getState
56,654
void (@NotNull JavaFxSettings object) { XmlSerializerUtil.copyBean(object, this); }
loadState
56,655
void (String pathToSceneBuilder) { myPathToSceneBuilder = pathToSceneBuilder; }
setPathToSceneBuilder
56,656
String[] () { return new String[]{"/dictionaries/javafx.dic"}; }
getBundledDictionaries
56,657
String () { return "preferences.JavaFX"; }
getHelpTopic
56,658
boolean () { return myPanel.isModified(mySettings); }
isModified
56,659
void () { myPanel.reset(mySettings); }
reset
56,660
void () { myPanel = null; }
disposeUIResources
56,661
String () { return getHelpTopic(); }
getId
56,662
FileChooserDescriptor () { final FileChooserDescriptor descriptor = FileChooserDescriptorFactory.createSingleFileOrExecutableAppDescriptor(); descriptor.setTitle(JavaFXBundle.message("javafx.settings.configurable.scene.builder.configuration.title")); descriptor.setDescription(JavaFXBundle.message("javafx.settings.confi...
createSceneBuilderDescriptor
56,663
void (JavaFxSettings settings) { final String pathToSceneBuilder = settings.getPathToSceneBuilder(); if (pathToSceneBuilder != null) { myPathField.setText(FileUtil.toSystemDependentName(pathToSceneBuilder)); } }
reset
56,664
void (JavaFxSettings settings) { settings.setPathToSceneBuilder(FileUtil.toSystemIndependentName(myPathField.getText().trim())); }
apply
56,665
boolean (JavaFxSettings settings) { final String pathToSceneBuilder = settings.getPathToSceneBuilder(); return !Comparing.strEqual(FileUtil.toSystemIndependentName(myPathField.getText().trim()), pathToSceneBuilder != null ? pathToSceneBuilder.trim() : null); }
isModified
56,666
String () { return "IJ_JAVAFX_VERSION"; }
getParameterId
56,667
String () { return null; }
getLabel
56,668
JComponent () { return null; }
getComponent
56,669
String () { return null; }
getValue
56,670
void (String value, ModifiableRootModel model) { JavaSdkVersion version = getSdkVersion(model); if (version != null && version.isAtLeast(JavaSdkVersion.JDK_11)) { Module module = model.getModule(); int preferredVersion = version.ordinal(); ApplicationManager.getApplication().invokeLater(() -> { ExternalLibraryDescripto...
applyResult
56,671
String () { return JavaFXBundle.message("javafx.entry.point.javafx.app"); }
getDisplayName
56,672
boolean (@NotNull RefElement refElement, @NotNull PsiElement psiElement) { return isEntryPoint(psiElement); }
isEntryPoint
56,673
boolean (@NotNull PsiElement psiElement) { if (psiElement instanceof PsiMethod method) { final int paramsCount = method.getParameterList().getParametersCount(); final String methodName = method.getName(); final PsiClass containingClass = method.getContainingClass(); if (paramsCount == 1 && PsiTypes.voidType().equals(me...
isEntryPoint
56,674
boolean () { return ADD_JAVAFX_TO_ENTRIES; }
isSelected
56,675
void (boolean selected) { ADD_JAVAFX_TO_ENTRIES = selected; }
setSelected
56,676
String[] () { return ArrayUtilRt.EMPTY_STRING_ARRAY; }
getIgnoreAnnotations
56,677
boolean (@NotNull Project project, @NotNull VirtualFile file) { return JavaFxFileTypeFactory.isFxml(file); }
isApplicableFor
56,678
ActionHandler (@NotNull Project project, @NotNull VirtualFile file) { return new ActionHandler() { @Override public void handlePanelActionClick(@NotNull EditorNotificationPanel panel, @NotNull HyperlinkEvent event) { doFix(project, file, handler -> handler.handlePanelActionClick(panel, event)); } @Override public void ...
getFixHandler
56,679
void (@NotNull EditorNotificationPanel panel, @NotNull HyperlinkEvent event) { doFix(project, file, handler -> handler.handlePanelActionClick(panel, event)); }
handlePanelActionClick
56,680
void (@NotNull Editor editor, @NotNull PsiFile psiFile) { doFix(project, file, handler -> handler.handleQuickFixClick(editor, psiFile)); }
handleQuickFixClick
56,681
void (@NotNull Project project, @NotNull VirtualFile file, @NotNull Consumer<ActionHandler> action) { final String javaErrorMessage = JavaProjectSdkSetupValidator.INSTANCE.getErrorMessage(project, file); if (javaErrorMessage != null) { action.consume(JavaProjectSdkSetupValidator.INSTANCE.getFixHandler(project, file)); ...
doFix
56,682
boolean (PsiElement psiElement) { return psiElement instanceof PsiModifierListOwner && AnnotationUtil.isAnnotated((PsiModifierListOwner)psiElement, JavaFxCommonNames.JAVAFX_FXML_ANNOTATION, 0); }
value
56,683
PsiElement () { return myFile; }
getDeclaration
56,684
String (PsiElement context) { return null; }
getName
56,685
String () { return null; }
getName
56,686
void (PsiElement element) { XmlDocument document = (XmlDocument) element; myFile = ((XmlFile)document.getContainingFile()); }
init
56,687
void (@NotNull XmlDocument context, @NotNull ValidationHost host) {}
validate
56,688
boolean (final @NotNull XmlFile file) { return JavaFxFileTypeFactory.isFxml(file); }
isAvailable
56,689
XmlFile (@NotNull Module module) { final URL resource = JavaFxSchemaProvider.class.getResource("fx.xsd"); final VirtualFile fileByURL = VfsUtil.findFileByURL(resource); if (fileByURL == null) { LOG.error("xsd not found"); return null; } PsiFile psiFile = PsiManager.getInstance(module.getProject()).findFile(fileByURL); ...
getReference
56,690
ModificationTracker (@NotNull Project project) { return () -> { final ModificationTracker tracker = project.getUserData(KEY); return tracker != null ? tracker.getModificationCount() + 1 : 0; }; }
getModificationTracker
56,691
void (@NotNull List<? extends @NotNull VFileEvent> events) { for (VFileEvent event : events) { checkEvent(event); } }
after
56,692
void (@NotNull VFileEvent event) { if (event instanceof VFileContentChangeEvent) return; if (event instanceof VFilePropertyChangeEvent propertyChangeEvent) { if (VirtualFile.PROP_NAME.equals(propertyChangeEvent.getPropertyName())) { final String oldName = (String)propertyChangeEvent.getOldValue(); final String newName ...
checkEvent
56,693
boolean (@NotNull PsiFile file) { final Project project = file.getProject(); if (hasJavaFxArtifacts(project)) { return true; } return isInJavaFxModule(file); }
isInJavaFxProject
56,694
boolean (@NotNull PsiFile file) { final VirtualFile virtualFile = file.getVirtualFile(); if (virtualFile != null) { final Project project = file.getProject(); final Module fileModule = ModuleUtilCore.findModuleForFile(virtualFile, project); if (fileModule != null) { return getCachedJavaFxModules(project).contains(fileM...
isInJavaFxModule
56,695
Set<Module> (@NotNull Project project) { return CachedValuesManager.getManager(project).getCachedValue(project, () -> { Set<Module> modules = new HashSet<>(); ProjectFileIndex projectFileIndex = ProjectFileIndex.getInstance(project); FileTypeIndex.processFiles(JavaFxFileTypeFactory.getFileType(), file -> { if (JavaFxFi...
getCachedJavaFxModules
56,696
boolean (@NotNull Project project) { return CachedValuesManager.getManager(project).getCachedValue(project, () -> { ArtifactManager artifactManager = ArtifactManager.getInstance(project); Collection<? extends Artifact> artifacts = artifactManager.getArtifactsByType(JavaFxApplicationArtifactType.getInstance()); return C...
hasJavaFxArtifacts
56,697
void (@NotNull Project project) { if (ApplicationManager.getApplication().isUnitTestMode()) { return; } ReadAction.nonBlocking(() -> populateCachedJavaFxModules(project)) .inSmartMode(project) .expireWith(JavaFxDisposable.getInstance(project)) .submit(NonUrgentExecutor.getInstance()); }
runActivity
56,698
void (@NotNull Project project) { if (!project.isDisposed() && project.isOpen()) { hasJavaFxArtifacts(project); getCachedJavaFxModules(project); } }
populateCachedJavaFxModules
56,699
boolean (@NotNull String value) { return NULL_VALUE.equals(StringUtil.trimTrailing(value)); }
isNullValue