-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consistency check for text fields #11939
Comments
Hi, I’d like to try working on this issue—could you please assign it to me? |
@ShunL12324 was first - sorry @lllllllittlesun |
Welcome to the vibrant world of open-source development with JabRef! Newcomers, we're excited to have you on board. Start by exploring our Contributing guidelines, and don't forget to check out our workspace setup guidelines to get started smoothly. In case you encounter failing tests during development, please check our developer FAQs! Having any questions or issues? Feel free to ask here on GitHub. Need help setting up your local workspace? Join the conversation on JabRef's Gitter chat. And don't hesitate to open a (draft) pull request early on to show the direction it is heading towards. This way, you will receive valuable feedback. Happy coding! 🚀 |
Remember this is a rather hard one isse! |
The current implementation makes this JUnit test difficult. The check for "whether all instances of X receive a field with matching properties ( A potentially better approach might be to first check if the class includes the field Does this sound like the right direction? |
I quickly checked. The names are different - maybe check for class only TBH, I do not know how to check. The class to check is org.jabref.gui.fieldeditors.FieldEditors. Maybe, only the if block at Maybe, it is enough to add some JavaDoc to org.jabref.model.entry.field.FieldProperty#MULTILINE_TEXT and |
I also tried to analyze every class that implements |
Follow-up to #11886.
There should be an automatic checker (JUnit) test case. JabRef has
org.jabref.model.entry.field.FieldProperty#MULTILINE_TEXT
. All of these fields should be offered asTextArea
, all others (!) asTextField
I think, this is a hard one, but much to learn.
The "only" way is maybe to use Refaster template recipes and check if OpenRewrite would change anything.
Maybe, this also does not work and one would need to use JavaParser to check the constructor at
org.jabref.gui.fieldeditors.FieldEditorFX
, whether allnew X
get afield
passed matching theX
(X instanceof TextArea <=> fieldProperties.contains(MULTILINE_TEXT)
)The text was updated successfully, but these errors were encountered: