Code Monkey home page Code Monkey logo

javafxpropertyhelpernbplugin's People

Contributors

kunstmusik avatar naoghuman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

javafxpropertyhelpernbplugin's Issues

Position and name from action in menu 'Insert Code...'

Hi Rob

about the position from the action in the popup 'Insert Code..'. I see that the order is:

  • ...
  • Getter...
  • Setter...
  • Getter and Setter...
  • ...

I think that the natural order from the new action in the popup were directly after the action 'Getter and Setter...'.

What the name from the action concerns:
When you open the menu in a JavaFX application you can see the actions

  • ...
  • Add Property...
  • Add Java FX Property...
  • ...

at bottom. With the 'Add Java FX Property...' you can create new properties and then the 3 methods from the variable. So I think a better naming were 'Java FX Getter and Setter...'.

  • 'Java FX' both FX uppercase :) its the trademark from JavaFX. Normaly there is no empty space between 'Java' and 'FX', but NetBeans write the space in 'Add Java FX Property...'.
  • The word 'Props' I have remove, because the action dont create the property.
  • The action will be create 1 Setter and 2 Getter.
  • 'Getter and Setter...' will follow the naming convention in NetBeans.

So what do you think about it? I have prepared my fork when you will have a look.

Greetings
Peter

Double functionality for getter and setter

Hi Rob,
I have done a litte analyse in reference for generic generation and seen that with the plugin the functionality for the generation from the getter and setter is doubled.

The plugin add the functionality for generating getter and setters immediatly with the new action 'JavaFx Getter and Setter...', but also the standard functionalities in the actions 'Getter..., Setter... and Getter and Setter...' in the popup 'Generate' will generate JavaFx getter and setter after the selection from JavaFx properties in the 'Generate Getter (and Setter) panel' (when also the generated sourcecode dont follow the JavaFX Naming Convention and the third method is missing).

So what I see to solve this problem is

  • We can remove the standard actions from NetBeans and extend the new action from the plugin so that it also can generate normal Java properties.
  • We can extend the standard actions from NetBeans so that they can also generate JavaFX properties which follow the JavaFX Naming Convention and add the third method. But then we dont need the new action.
  • Its also possible to extend the standard action and the new action but this solution I guess is not so clean (double work).

For the second solution I have the idea to extend the 'Generate Getter (and Setter) panel'. At top then there is the JTree 'Select Java fields for generate...' and below a new JTree 'Select JavaFX fields for generate...'. What also speak for the solution with the extension from the standard actions is

  • that the standard actions have the selection panel
  • the standard actions can generate generic methods

Compatibility with 8.2

In netbeans 8.2 the pluggin does not appear in the pluggins downloads...

This would be very handy.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.