Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
57,200
boolean () { return myProperties.isEnabledSigning(); }
isEnabledSigning
57,201
List<JavaFxManifestAttribute> () { return myProperties.getCustomManifestAttributes(); }
getCustomManifestAttributes
57,202
void () { final ProjectFileIndex index = ProjectRootManager.getInstance(myProject).getFileIndex(); if (!isValidPath(myPanel.myLinuxIconPath, index, "Linux")) return; if (!isValidPath(myPanel.myMacIconPath, index, "Mac")) return; if (!isValidPath(myPanel.myWindowsIconPath, index, "Windows")) return; super.doOKAction(); ...
doOKAction
57,203
JavaFxApplicationIcons () { JavaFxApplicationIcons icons = new JavaFxApplicationIcons(); icons.setLinuxIcon(JavaFxArtifactPropertiesEditor.getSystemIndependentPath(myPanel.myLinuxIconPath)); icons.setMacIcon(JavaFxArtifactPropertiesEditor.getSystemIndependentPath(myPanel.myMacIconPath)); icons.setWindowsIcon(JavaFxArti...
getIcons
57,204
boolean (TextFieldWithBrowseButton withBrowseButton, ProjectFileIndex index, String osName) { final String text = withBrowseButton.getText(); if (StringUtil.isEmptyOrSpaces(text)) return true; final VirtualFile virtualFile = VfsUtil.findFileByIoFile(new File(text.trim()), false); if (virtualFile == null || !virtualFile...
isValidPath
57,205
void (TextFieldWithBrowseButton withBrowseButton, String extension, Project project) { withBrowseButton.addBrowseFolderListener(JavaFXBundle.message("javafx.application.icons.select.icon.file.title"), JavaFXBundle.message("javafx.application.icons.select.icon.file.description",extension), project, FileChooserDescriptor...
addBrowseListener
57,206
void (ActionEvent e) { UIUtil.setEnabled(myPanel.myKeysPanel, !myPanel.mySelfSignedRadioButton.isSelected(), true); }
actionPerformed
57,207
void () { if (myPanel.mySignedByKeyRadioButton.isSelected()) { if (StringUtil.isEmptyOrSpaces(myPanel.myAliasTF.getText())) { Messages.showErrorDialog(myPanel.myWholePanel, JavaFXBundle.message("javafx.certificates.dialog.alias.should.be.non.empty.error")); return; } final String keystore = myPanel.myKeystore.getText()...
doOKAction
57,208
GlobalSearchScope () { return GlobalSearchScope.projectScope(getProject()); }
getScope
57,209
boolean (PsiClass aClass) { return InheritanceUtil.isInheritor(aClass, myApplicationClass); }
isAccepted
57,210
PsiClass (String className) { Set<Module> modules = ReadAction.compute(() -> ArtifactUtil.getModulesIncludedInArtifacts(Collections.singletonList(myArtifact), getProject())); for (Module module : modules) { PsiClass aClass = JavaExecutionUtil.findMainClass(getProject(), className, GlobalSearchScope.moduleScope(module))...
findClass
57,211
JavaFxApplicationClassBrowser (Project project, Artifact artifact) { return new JavaFxApplicationClassBrowser(project, JavaFXBundle.message("dialog.title.choose.application.class"), "javafx.application.Application", artifact); }
appClassBrowser
57,212
JavaFxApplicationClassBrowser (Project project, Artifact artifact) { return new JavaFxApplicationClassBrowser(project, JavaFXBundle.message("dialog.title.choose.preloader.class"), "javafx.application.Preloader", artifact); }
preloaderClassBrowser
57,213
JavaFxApplicationArtifactType () { return EP_NAME.findExtension(JavaFxApplicationArtifactType.class); }
getInstance
57,214
Icon () { return AllIcons.Nodes.Artifact; }
getIcon
57,215
void (@NotNull CompositePackagingElement<?> rootElement, @NotNull Artifact artifact, @NotNull ArtifactProblemsHolder manager) { final Project project = manager.getContext().getProject(); final Sdk sdk = JavaFxArtifactProperties.getFxCompatibleSdk(artifact, project); if (sdk != null && !new File(sdk.getHomePath() + "/li...
checkRootElement
57,216
String () { if (myModules.size() == 1) { return JavaFXBundle.message("action.from.modules.artifact.text", myModules.get(0).getName()); } return JavaFXBundle.message("action.from.module.artifact.text"); }
getPresentableName
57,217
NewArtifactConfiguration () { Module module = null; if (myModules.size() == 1) { module = myModules.get(0); } else { final ChooseModulesDialog dialog = new ChooseModulesDialog(myModules.get(0).getProject(), myModules, JavaFXBundle.message("dialog.title.select.module.for.artifact"), JavaFXBundle.message( "label.selected...
createArtifact
57,218
void (ActionEvent e) { myDialog = new JavaFxEditCertificatesDialog(myWholePanel, myProperties, project); myDialog.show(); }
actionPerformed
57,219
void (ActionEvent e) { myEditSignCertificateButton.setEnabled(myEnableSigningCB.isSelected()); }
actionPerformed
57,220
String () { return JavaFXBundle.message("java.fx.artifacts.tab.name"); }
getTabName
57,221
boolean () { if (isModified(myProperties.getTitle(), myTitleTF)) return true; if (isModified(myProperties.getVendor(), myVendorTF)) return true; if (isModified(myProperties.getDescription(), myDescriptionEditorPane)) return true; if (isModified(myProperties.getWidth(), myWidthTF)) return true; if (isModified(myProperti...
isModified
57,222
boolean (final String title, JTextComponent tf) { return !Comparing.strEqual(title, tf.getText().trim()); }
isModified
57,223
boolean (final String title, TextFieldWithBrowseButton tf) { return !Comparing.strEqual(title, tf.getText().trim()); }
isModified
57,224
boolean (final String title, String value) { return !Comparing.strEqual(title, value); }
isModified
57,225
void () { myProperties.setTitle(myTitleTF.getText()); myProperties.setVendor(myVendorTF.getText()); myProperties.setDescription(myDescriptionEditorPane.getText()); myProperties.setAppClass(myAppClass.getText()); myProperties.setVersion(myVersionTF.getText()); myProperties.setWidth(myWidthTF.getText()); myProperties.set...
apply
57,226
void () { setText(myTitleTF, myProperties.getTitle()); setText(myVendorTF, myProperties.getVendor()); setText(myDescriptionEditorPane, myProperties.getDescription()); setText(myWidthTF, myProperties.getWidth()); setText(myHeightTF, myProperties.getHeight()); setText(myAppClass, myProperties.getAppClass()); setText(myVe...
reset
57,227
void (TextFieldWithBrowseButton tf, final String title) { if (title != null) { tf.setText(title.trim()); } }
setText
57,228
void (JTextComponent tf, final String title) { if (title != null) { tf.setText(title.trim()); } }
setText
57,229
void () { if (myDialog != null) { myDialog.myPanel = null; } }
disposeUIResources
57,230
String (TextFieldWithBrowseButton withBrowseButton) { final String text = withBrowseButton.getText(); if (StringUtil.isEmptyOrSpaces(text)) return null; return FileUtil.toSystemIndependentName(text.trim()); }
getSystemIndependentPath
57,231
void (TextFieldWithBrowseButton withBrowseButton, String path) { withBrowseButton.setText(path != null ? FileUtil.toSystemDependentName(path.trim()) : ""); }
setSystemDependentPath
57,232
void () { myTable.stopEditing(); super.doOKAction(); }
doOKAction
57,233
ListTableModel () { final ColumnInfo name = new ElementsColumnInfoBase<JavaFxManifestAttribute>(JavaFXBundle.message( "column.name.artifact.manifest.property.name")) { @Override public @Nullable String valueOf(JavaFxManifestAttribute attribute) { return attribute.getName(); } @Override public boolean isCellEditable(Jav...
createListModel
57,234
boolean (JavaFxManifestAttribute attr) { return true; }
isCellEditable
57,235
void (JavaFxManifestAttribute attr, String value) { attr.setName(value); }
setValue
57,236
String (JavaFxManifestAttribute attr) { return attr.getValue(); }
valueOf
57,237
boolean (JavaFxManifestAttribute attr) { return true; }
isCellEditable
57,238
void (JavaFxManifestAttribute attr, String s) { attr.setValue(s); }
setValue
57,239
JavaFxManifestAttribute () { return new JavaFxManifestAttribute("", ""); }
createElement
57,240
boolean (JavaFxManifestAttribute element) { return StringUtil.isEmpty(element.getName()) && StringUtil.isEmpty(element.getValue()); }
isEmpty
57,241
JavaFxManifestAttribute (JavaFxManifestAttribute attribute) { return new JavaFxManifestAttribute(attribute.getName(), attribute.getValue()); }
cloneElement
57,242
boolean (JavaFxManifestAttribute selection) { return true; }
canDeleteElement
57,243
List<JavaFxManifestAttribute> () { return getElements(); }
getAttrs
57,244
boolean (@NotNull ArtifactType type) { return type instanceof JavaFxApplicationArtifactType; }
isAvailableFor
57,245
JavaFxArtifactPropertiesProvider () { return EP_NAME.findExtension(JavaFxArtifactPropertiesProvider.class); }
getInstance
57,246
boolean (@NotNull ArtifactType type) { return type instanceof JavaFxPreloaderArtifactType; }
isAvailableFor
57,247
JavaFxPreloaderArtifactPropertiesProvider () { return EP_NAME.findExtension(JavaFxPreloaderArtifactPropertiesProvider.class); }
getInstance
57,248
JavaFxPreloaderArtifactType () { return EP_NAME.findExtension(JavaFxPreloaderArtifactType.class); }
getInstance
57,249
Icon () { return AllIcons.Nodes.Artifact; }
getIcon
57,250
ArtifactPropertiesEditor (@NotNull ArtifactEditorContext context) { return new JavaFxPreloaderArtifactPropertiesEditor(this, context.getProject(), context.getArtifact()); }
createEditor
57,251
void (@NotNull JavaFxPreloaderArtifactProperties state) { XmlSerializerUtil.copyBean(state, this); }
loadState
57,252
String () { return myPreloaderClass; }
getPreloaderClass
57,253
void (String preloaderClass) { myPreloaderClass = preloaderClass; }
setPreloaderClass
57,254
String () { return JavaFXBundle.message("javafx.preloader.tab.name"); }
getTabName
57,255
boolean () { return !Comparing.strEqual(myPreloaderTf.getText(), myProperties.getPreloaderClass()); }
isModified
57,256
void () { myProperties.setPreloaderClass(myPreloaderTf.getText()); }
apply
57,257
void () { myPreloaderTf.setText(myProperties.getPreloaderClass()); }
reset
57,258
Icon () { return AllIcons.Nodes.Artifact; }
getIcon
57,259
void (@NotNull CompositePackagingElement<?> rootElement, @NotNull Artifact artifact, @NotNull ArtifactProblemsHolder manager) { final Project project = manager.getContext().getProject(); final Sdk sdk = getJPackageCompatibleSdk(artifact, project); if (sdk == null) { manager.registerError(JavaFXBundle.message("needs.at....
checkRootElement
57,260
Sdk (Artifact artifact, Project project) { final Set<Module> modules = ReadAction.compute(() -> ArtifactUtil.getModulesIncludedInArtifacts(Collections.singletonList(artifact), project)); if (modules.isEmpty()) { return null; } for (Module module : modules) { final Sdk sdk = ModuleRootManager.getInstance(module).getSdk(...
getJPackageCompatibleSdk
57,261
String () { if (myModules.size() == 1) { return JavaFXBundle.message("action.from.modules.artifact.text", myModules.get(0).getName()); } return JavaFXBundle.message("action.from.module.artifact.text"); }
getPresentableName
57,262
NewArtifactConfiguration () { final Module module; if (myModules.size() == 1) { module = myModules.get(0); } else { final ChooseModulesDialog dialog = new ChooseModulesDialog(myModules.get(0).getProject(), myModules, JavaFXBundle.message("dialog.title.select.module.for.artifact"), JavaFXBundle.message( "label.selected....
createArtifact
57,263
ArtifactPropertiesEditor (@NotNull ArtifactEditorContext context) { return new JPackageArtifactPropertiesEditor(this, context.getProject()); }
createEditor
57,264
void (@NotNull JPackageArtifactProperties state) { XmlSerializerUtil.copyBean(state, this); }
loadState
57,265
boolean (@NotNull ArtifactType type) { return type instanceof JPackageArtifactType; }
isAvailableFor
57,266
boolean () { if (isModified(myProperties.mainClass, myMainClass.getTextField())) return true; if (isModified(myProperties.version, myVersion)) return true; if (isModified(myProperties.copyright, myCopyright)) return true; if (isModified(myProperties.vendor, myVendor)) return true; if (isModified(myProperties.descriptio...
isModified
57,267
boolean (final String title, JTextComponent tf) { return !Comparing.strEqual(title, tf.getText().trim()); }
isModified
57,268
void () { myProperties.mainClass = myMainClass.getText(); myProperties.version = myVersion.getText(); myProperties.copyright = myCopyright.getText(); myProperties.vendor = myVendor.getText(); myProperties.description = myDescription.getText(); myProperties.verbose = myVerbose.isSelected(); }
apply
57,269
void () { myFixture.configureByFile(getTestName(false) + ".java"); performRename("newName"); myFixture.checkResultByFile(getTestName(false) + "_after.java"); }
testPropertyRename
57,270
void () { myFixture.configureByFile(getTestName(false) + ".java"); performDelete(); myFixture.checkResultByFile(getTestName(false) + "_after.java"); }
testPropertyDelete
57,271
void (String newName) { PsiElement element = TargetElementUtil.findTargetElement(myFixture.getEditor(), TargetElementUtil .ELEMENT_NAME_ACCEPTED | TargetElementUtil.REFERENCED_ELEMENT_ACCEPTED); RenameRefactoring refactoring = RefactoringFactory.getInstance(getProject()).createRename(element, newName, false, false); re...
performRename
57,272
void () { final PsiElement psiElement = TargetElementUtil .findTargetElement(myFixture.getEditor(), TargetElementUtil.ELEMENT_NAME_ACCEPTED | TargetElementUtil.REFERENCED_ELEMENT_ACCEPTED); assertNotNull("No element found in text:\n" + myFixture.getFile().getText(), psiElement); SafeDeleteHandler.invoke(getProject(), n...
performDelete
57,273
String () { return PluginPathManager.getPluginHomePath("javaFX") + "/testData/fieldRefactoring/"; }
getTestDataPath
57,274
void () { super.setUpModule(); AbstractJavaFXTestCase.addJavaFxJarAsLibrary(getModule()); }
setUpModule
57,275
String () { return PluginPathManager.getPluginHomePath("javaFX") + "/testData"; }
getTestDataPath
57,276
void () { configureByFiles(null, getTestName(false) + ".java"); final IntentionAction intentionAction = getIntentionAction(); // no artifact, no fxml, no javafx.* imports: the intention shouldn't be available assertNull(intentionAction); }
testArtifactPresenceFieldToProperty
57,277
void () { final VirtualFile sourceRootDir = configureByFiles(null, getTestName(false) + ".java"); IntentionAction intentionAction = getIntentionAction(); assertNull(intentionAction); final Ref<VirtualFile> fileRef = new Ref<>(); ApplicationManager.getApplication().runWriteAction(() -> { try { VirtualFile file = sourceR...
testAddRemoveFxmlFile
57,278
boolean () { return false; }
isArtifactNeeded
57,279
void () { super.setUpModule(); AbstractJavaFXTestCase.addJavaFxJarAsLibrary(getModule()); if (isArtifactNeeded()) { ArtifactManager.getInstance(getProject()).addArtifact("fake-javafx", JavaFxApplicationArtifactType.getInstance(), null); } }
setUpModule
57,280
IntentionAction () { final List<HighlightInfo> infos = doHighlighting(); final Editor editor = getEditor(); final PsiFile file = getFile(); return findIntentionAction(infos, JavaFXBundle.message("intention.family.name.convert.to.javafx.property"), editor, file); }
getIntentionAction
57,281
boolean () { return true; }
isArtifactNeeded
57,282
String () { return PluginPathManager.getPluginHomePath("javaFX") + "/testData/intentions/fieldToProperty/"; }
getTestDataPath
57,283
void () { myFixture.enableInspections(new JavaFxRedundantPropertyValueInspection()); }
enableInspections
57,284
void () { checkQuickFixNotAvailable("alignment"); }
testModifiedAttribute
57,285
void () { doLaunchQuickfixTest("alignment"); }
testImmediateAttribute
57,286
void () { doLaunchQuickfixTest("maxHeight"); }
testInheritedAttribute
57,287
void () { checkQuickFixNotAvailable("alignment"); }
testModifiedTag
57,288
void () { doLaunchQuickfixTest("alignment"); }
testImmediateTag
57,289
void () { doLaunchQuickfixTest("maxHeight"); }
testInheritedTag
57,290
void () { doTestHighlighting(); }
testAttributeHighlighting
57,291
void () { doTestHighlighting(); }
testTagHighlighting
57,292
void () { myFixture.configureByFiles(getTestName(true) + ".fxml"); myFixture.checkHighlighting(); }
doTestHighlighting
57,293
String () { return PluginPathManager.getPluginHomePath("javaFX") + "/testData/inspections/redundantValue/"; }
getTestDataPath
57,294
String (String tagName) { if (getTestName(false).endsWith("Attribute")) { return "Remove attribute " + tagName; } return "Remove tag " + tagName; }
getHint
57,295
void (@NotNull Module module, @NotNull ModifiableRootModel model, @NotNull ContentEntry contentEntry) { AbstractJavaFXTestCase.addJavaFxJarAsLibrary(model); PsiTestUtil.addLibrary(model, "javafx", PluginPathManager.getPluginHomePath("javaFX") + "/testData", "groovy-1.8.0.jar"); super.configureModule(module, model, cont...
configureModule
57,296
LightProjectDescriptor () { return JAVA_FX_WITH_GROOVY_DESCRIPTOR; }
getProjectDescriptor
57,297
void () { String inputName = getTestName(false); String extension = ".java"; String actionName = "Create method"; String path = PlatformTestUtil.lowercaseFirstLetter(inputName, true) + ".fxml"; myFixture.configureByFiles(path, inputName + extension); IntentionAction intention = myFixture.findSingleIntention(actionName)...
testCreateControllerMethodEmptyName
57,298
void () { doTest("Create method 'bar'", ".java"); }
testCreateControllerMethod
57,299
void () { doTest("Create method 'bar'", ".groovy"); }
testCreateControllerMethodInGroovy