Add code generation for property/getter/setter methods for JavaFX properties
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Description
JavaFX has its own naming convention for working with [properties](https://docs.oracle.com/javafx/2/binding/jfxpub-binding.htm). For example, for string property
```
private StringProperty test = new SimpleStringProperty();
```
the following methods are required:
```
public StringProperty testProperty() {
return this.test;
}
public String getTest() {
return this.test.get();
}
public void setTest(String test) {
this.test.set(test);
}
```
As it is seen getters and setter are different from standard Java getters and setters. Besides, the type of them must be resolved from property (for example, from `ReadOnlyObjectWrapper`).
Currently NB doesn't support code generation for JavaFX properties (ALT+INS) so I suggest to add it.
### Use case/motivation
It is very boring to write these methods manually for JavaFX projects.
### Related issues
_No response_
### Are you willing to submit a pull request?
No
Contributor guide
Research direction
Start with the JavaFX property naming convention in the linked Oracle documentation and NetBeans' Java code-generation entry point invoked by Alt+Insert. Done means generation supports property(), getter, and setter methods with types resolved from JavaFX properties, including read-only wrappers; no files or tests are named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- developer-experience
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100