Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
56,500
ObjectProperty<ControllerInExpression> () { return controller; }
controllerProperty
56,501
ControllerInExpression () { return controller.get(); }
getController
56,502
void (ControllerInExpression controller) { this.controller.set(controller); }
setController
56,503
void () { }
sayHelloWorld
56,504
void (SortEvent<TableView> tableViewSortEvent) { }
onSort
56,505
StringProperty () { return strProp; }
strPropProperty
56,506
String () { return strProp.get(); }
getStrProp
56,507
void (StringProperty strProp) { this.strProp = strProp; }
setStrProp
56,508
IntegerProperty () { return intProp; }
intPropProperty
56,509
int () { return intProp.get(); }
getIntProp
56,510
void (int intProp) { this.intProp.set(intProp); }
setIntProp
56,511
DoubleProperty () { return doubleProp; }
doublePropProperty
56,512
double () { return doubleProp.get(); }
getDoubleProp
56,513
void (double doubleProp) { this.doubleProp.set(doubleProp); }
setDoubleProp
56,514
String () { return "222.2"; }
toString
56,515
void (String[] args) { launch(args); }
main
56,516
void (ActionEvent e) { System.out.println(e); }
onAction
56,517
void (ActionEvent e) { System.out.println(e); }
onAction
56,518
void () { System.out.println(resources); System.out.println(location); }
initialize
56,519
Button () { return button; }
getButton
56,520
void (Button button) { this.button = button; }
setButton
56,521
Label () { return label; }
getLabel
56,522
void (Label label) { this.label = label; }
setLabel
56,523
void () { MyController controller = new MyController(); FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("injectedController.fxml")); fxmlLoader.setRoot(this); fxmlLoader.setController(controller); try { fxmlLoader.load(); } catch (IOException exception) { throw new RuntimeException(exception); } }
loaderCreation
56,524
void () { if (myProject.isDisposed()) { return; } Thread.currentThread().setUncaughtExceptionHandler(SceneBuilderImpl::logUncaughtException); myEditorController = new EditorController(); updateCustomLibrary(); JavaFXPlatformHelper.setupJFXPanel(myPanel, myEditorController); loadFile(); myListener = JavaFXPlatformHelper...
create
56,525
void () { final URLClassLoader oldClassLoader = myClassLoader; myClassLoader = createProjectContentClassLoader(myProject, myParentClassLoader); JavaFXPlatformHelper.setDefaultClassLoader(myClassLoader); if (oldClassLoader != null) { try { oldClassLoader.close(); } catch (IOException e) { LOG.info(e); } } final List<Jav...
updateCustomLibrary
56,526
String (@NotNull PsiClass psiClass) { final VirtualFile vFile = PsiUtilCore.getVirtualFile(psiClass); if (vFile == null) return null; final Module module = ProjectRootManager.getInstance(myProject).getFileIndex().getModuleForFile(vFile); if (module != null) { return module.getName(); } else { final OrderEntry entry = L...
getComponentModuleName
56,527
JComponent () { return myPanel; }
getPanel
56,528
boolean () { if (myCustomComponents == null) return false; final Collection<JavaFXPlatformHelper.CustomComponent> customComponents = DumbService.getInstance(myProject) .runReadActionInSmartMode(this::collectCustomComponents); if (!new HashSet<>(myCustomComponents).equals(new HashSet<>(customComponents))) { return false...
reload
56,529
void () { JavaFXPlatformHelper.javafxInvokeLater(this::closeImpl); }
close
56,530
void () { JavaFXPlatformHelper.removeListeners(myEditorController, myListener, mySelectionListener); myEditorController = null; try { if (myClassLoader != null) { JavaFXPlatformHelper.setDefaultClassLoader(myParentClassLoader); myClassLoader.close(); myClassLoader = null; } } catch (IOException e) { LOG.info(e); } myCu...
closeImpl
56,531
void () { mySkipChanges = true; try { String fxmlText = FXOMDocument.readContentFromURL(myFileURL); String editorFxmlText = myEditorController.getFxmlText(); if (Objects.equals(fxmlText, editorFxmlText)) return; myEditorController.setFxmlTextAndLocation(fxmlText, myFileURL); restoreSelection(mySelectionState); } catch ...
loadFile
56,532
List<List<SelectionNode>> () { AbstractSelectionGroup group = myEditorController.getSelection().getGroup(); if (group instanceof ObjectSelectionGroup) { Set<FXOMObject> items = ((ObjectSelectionGroup)group).getItems(); List<List<SelectionNode>> state = new ArrayList<>(); for (FXOMObject item : items) { List<SelectionNo...
getSelectionState
56,533
void (List<List<SelectionNode>> state) { if (state == null) return; Collection<FXOMObject> newSelection = new ArrayList<>(); FXOMObject rootComponent = myEditorController.getFxomDocument().getFxomRoot(); for (List<SelectionNode> path : state) { FXOMObject component = getSelectedComponent(rootComponent, path, 0); if (co...
restoreSelection
56,534
void (Thread t, Throwable e) { if (!(e instanceof ControlFlowException)) { LOG.info("Uncaught exception in JavaFX " + t, e); } }
logUncaughtException
56,535
boolean (PsiClass psiClass) { final VirtualFile file = PsiUtilCore.getVirtualFile(psiClass); if (file == null) return false; final List<OrderEntry> entries = ProjectRootManager.getInstance(psiClass.getProject()).getFileIndex().getOrderEntriesForFile(file); return entries.stream().anyMatch(entry -> entry instanceof JdkO...
isBuiltInComponent
56,536
boolean (@NotNull PsiClass aClass, @Nullable LanguageLevel targetLevel) { if (targetLevel == null) return true; final Project project = aClass.getProject(); final VirtualFile vFile = PsiUtilCore.getVirtualFile(aClass); if (vFile == null) return true; Module module = ProjectRootManager.getInstance(project).getFileIndex(...
isCompatibleLanguageLevel
56,537
URLClassLoader (Project project, @NotNull ClassLoader parentClassLoader) { final List<String> pathList = ReadAction.compute(() -> OrderEnumerator.orderEntries(project).productionOnly().withoutSdk().recursively() .getPathsList().getPathList()); final List<URL> classpathUrls = new ArrayList<>(); for (String path : pathLi...
createProjectContentClassLoader
56,538
FXOMObject (FXOMObject component, List<SelectionNode> path, int step) { if (step >= path.size()) return null; SelectionNode node = new SelectionNode(component); if (node.equals(path.get(step))) { if (step == path.size() - 1) return component; List<FXOMObject> children = getChildComponents(component); if (children.isEmp...
getSelectedComponent
56,539
List<FXOMObject> (FXOMObject component) { if (component instanceof FXOMInstance) { Map<PropertyName, FXOMProperty> properties = ((FXOMInstance)component).getProperties(); FXOMProperty value = properties.get(ourChildrenPropertyName); if (value instanceof FXOMPropertyC) { return ((FXOMPropertyC)value).getValues(); } } re...
getChildComponents
56,540
void (String key, String nsPrefix, String nsURI, String value, String type) { if (rootTagProcessed.get()) return; if (key != null && value != null && StringUtil.isEmpty(nsPrefix)) { attributes.put(key, value); } }
addAttribute
56,541
void (String name, String nsPrefix, String nsURI) { rootTagProcessed.set(true); }
elementAttributesProcessed
56,542
void (String name, String nsPrefix, String nsURI, String systemID, int lineNr) { if (rootTagProcessed.get()) return; for (String imported : imports) { if (imported.equals(name) || imported.endsWith("." + name)) { refQualifiedName.set(imported); break; } if (imported.endsWith(".*")) { String className = imported.substri...
startElement
56,543
boolean (Object o) { if (this == o) return true; if (!(o instanceof SelectionNode node)) return false; return indexInParent == node.indexInParent && Objects.equals(qualifiedName, node.qualifiedName); }
equals
56,544
int () { return Objects.hash(qualifiedName, indexInParent); }
hashCode
56,545
String () { return indexInParent + ":" + qualifiedName; }
toString
56,546
JpsJavaFxArtifactProperties (List<ArtifactPropertiesState> stateList) { final JpsJavaFxArtifactProperties.MyState properties = doLoadProperties(stateList); return properties != null ? new JpsJavaFxArtifactProperties(properties) : new JpsJavaFxArtifactProperties(); }
loadProperties
56,547
ArtifactPropertiesState (List<ArtifactPropertiesState> stateList) { for (ArtifactPropertiesState state : stateList) { if ("javafx-properties".equals(state.getId())) { return state; } } return null; }
findApplicationProperties
56,548
String () { return myArtifact.getName(); }
getArtifactName
56,549
String () { return myArtifact.getOutputPath(); }
getArtifactOutputPath
56,550
String () { for (JpsPackagingElement element : myArtifact.getRootElement().getChildren()) { if (element instanceof JpsArchivePackagingElement) { return myArtifact.getOutputFilePath() + File.separator + ((JpsArchivePackagingElement)element).getArchiveName(); } } return myArtifact.getOutputFilePath(); }
getArtifactOutputFilePath
56,551
String () { return myProperties.myState.getAppClass(); }
getAppClass
56,552
String () { return myProperties.myState.getTitle(); }
getTitle
56,553
String () { return myProperties.myState.getVendor(); }
getVendor
56,554
String () { return myProperties.myState.getDescription(); }
getDescription
56,555
String () { return myProperties.myState.getVersion(); }
getVersion
56,556
JavaFxApplicationIcons () { return myProperties.myState.getIcons(); }
getIcons
56,557
String () { return myProperties.myState.getWidth(); }
getWidth
56,558
String () { return myProperties.myState.getHeight(); }
getHeight
56,559
void (@Nls String message) { myCompileContext.processMessage(new CompilerMessage(JavaFXJpsBundle.message("java.fx.packager"), BuildMessage.Kind.ERROR, message)); }
registerJavaFxPackagerError
56,560
void (@Nls String message) { myCompileContext.processMessage(new CompilerMessage(JavaFXJpsBundle.message("java.fx.packager"), BuildMessage.Kind.INFO, message)); }
registerJavaFxPackagerInfo
56,561
String () { return myProperties.myState.getHtmlTemplateFile(); }
getHtmlTemplateFile
56,562
String () { return myProperties.myState.getHtmlPlaceholderId(); }
getHtmlPlaceholderId
56,563
String () { return myProperties.myState.getHtmlParamFile(); }
getHtmlParamFile
56,564
String () { return myProperties.myState.getParamFile(); }
getParamFile
56,565
String () { return myProperties.myState.getUpdateMode(); }
getUpdateMode
56,566
String () { return myProperties.myState.getKeypass(); }
getKeypass
56,567
String () { return myProperties.myState.getStorepass(); }
getStorepass
56,568
String () { return myProperties.myState.getKeystore(); }
getKeystore
56,569
String () { return myProperties.myState.getAlias(); }
getAlias
56,570
boolean () { return myProperties.myState.isSelfSigning(); }
isSelfSigning
56,571
boolean () { return myProperties.myState.isEnabledSigning(); }
isEnabledSigning
56,572
String () { final JpsArtifact artifact = getPreloaderArtifact(); if (artifact != null) { final JpsJavaFxPreloaderArtifactProperties artifactProperties = (JpsJavaFxPreloaderArtifactProperties)artifact.getProperties(); return artifactProperties.getPreloaderClass(); } return null; }
getPreloaderClass
56,573
String () { final JpsArtifact artifact = getPreloaderArtifact(); if (artifact != null) { return ((JpsArchivePackagingElement)artifact.getRootElement()).getArchiveName(); } return null; }
getPreloaderJar
56,574
boolean () { return myProperties.myState.isConvertCss2Bin(); }
convertCss2Bin
56,575
List<JavaFxManifestAttribute> () { return myProperties.myState.getCustomManifestAttributes(); }
getCustomManifestAttributes
56,576
JpsArtifact () { for (JpsPackagingElement element : myArtifact.getRootElement().getChildren()) { if (element instanceof JpsArtifactOutputPackagingElement) { final JpsArtifact artifact = ((JpsArtifactOutputPackagingElement)element).getArtifactReference().resolve(); if (artifact != null && artifact.getArtifactType() inst...
getPreloaderArtifact
56,577
void (MyState state) { myState.setAppClass(state.myAppClass); myState.setTitle(state.myTitle); myState.setVendor(state.myVendor); myState.setDescription(state.myDescription); myState.setVersion(state.myVersion); myState.setWidth(state.myWidth); myState.setHeight(state.myHeight); myState.setHtmlTemplateFile(state.myHtml...
copyState
56,578
JpsJavaFxArtifactProperties () { return new JpsJavaFxArtifactProperties(myState); }
createCopy
56,579
void (@NotNull JpsJavaFxArtifactProperties modified) { copyState(modified.myState); }
applyChanges
56,580
String () { return myTitle; }
getTitle
56,581
void (String title) { myTitle = title; }
setTitle
56,582
String () { return myVendor; }
getVendor
56,583
void (String vendor) { myVendor = vendor; }
setVendor
56,584
String () { return myDescription; }
getDescription
56,585
void (String description) { myDescription = description; }
setDescription
56,586
String () { return myVersion; }
getVersion
56,587
void (String version) { myVersion = version; }
setVersion
56,588
JavaFxApplicationIcons () { return myIcons; }
getIcons
56,589
void (JavaFxApplicationIcons icons) { myIcons = icons; }
setIcons
56,590
String () { return myAppClass; }
getAppClass
56,591
void (String appClass) { myAppClass = appClass; }
setAppClass
56,592
String () { return myWidth; }
getWidth
56,593
String () { return myHeight; }
getHeight
56,594
void (String width) { myWidth = width; }
setWidth
56,595
void (String height) { myHeight = height; }
setHeight
56,596
String () { return myHtmlTemplateFile; }
getHtmlTemplateFile
56,597
void (String htmlTemplateFile) { myHtmlTemplateFile = htmlTemplateFile; }
setHtmlTemplateFile
56,598
String () { return myHtmlPlaceholderId; }
getHtmlPlaceholderId
56,599
void (String htmlPlaceholderId) { myHtmlPlaceholderId = htmlPlaceholderId; }
setHtmlPlaceholderId