Skip to content
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

Describe IDE integration for netbeans and eclipse #439

Open
manuel-mauky opened this issue Sep 19, 2016 · 6 comments
Open

Describe IDE integration for netbeans and eclipse #439

manuel-mauky opened this issue Sep 19, 2016 · 6 comments

Comments

@manuel-mauky
Copy link
Collaborator

At the moment we have a wiki article on how to improve usage of mvvmFX with IntelliJ IDEA by creating file templates.
We should add sections for netbeans and eclipse too with similar functionality.

@Warkdev
Copy link

Warkdev commented Mar 12, 2017

Hello, I'm using mvvmFX for few times now for personal project and I must say it's a great value to get such framework into the JavaFX world :)

I'm currently using some very basic features (the classical MvvM framework, commands, resources and scope). I've coupled it with dagger 2 too for my business logic.

It's true that the main pain I have is to generate each time the boiler plate code for each new view. This "issue" would be a good one to me :)

@manuel-mauky
Copy link
Collaborator Author

Hi warkdev,
thanks for the positive feedback. :-)

As I'm only using IntelliJ IDEA for Java development I'm not able to provide the documentation for netbeans or eclipse. Which IDE are you using? Maybe you could provide information of how this could be accomplished in your IDE? For inspiration here is the wiki page on IntelliJ: https://github.com/sialcasa/mvvmFX/wiki/IDE-integration

There is the possibility to have "file templates" that can be used on "New"->"Java-File" dialog. I'm sure something similar is possible with netbeans and eclipse too.

By the way: I'm also interested in your experience of using dagger 2 with mvvmFX. I would be happy to know how you have integrated the both. This information could be added to the "dependency injection" section in the wiki or maybe even in a separate "mvvmfx-dagger" maven module similar to the ones for CDI, Guice and EasyDI.

@Warkdev
Copy link

Warkdev commented Mar 13, 2017

Hello,
I do use Netbeans and as I'm doing this on my free-time, I've never investigated much how to do it. I've found some info here and there but never really tried. I could try to find this and report you how I did achieve it.

I'm using Dagger 2 to provide:

  • MapStruct Mapper classes
  • My own Business logic (JPA/DAO/Services)
  • FXML Main Stage for dialog helper

I'm not sure what you want to ask in this context, I still let MVVMFX provides scopes, resources, context, view model. :-)

@manuel-mauky
Copy link
Collaborator Author

No problem if you can't find the time to investigate this.

For the dagger part:
Do you connect dagger to mvvmFX?
We have the MvvmFX.setCustomDependencyInjector method that you can use to integrate your own dependency injection framework. As an example you can see this here for EasyDI.
You have to provide a function that for a given type returns an instance of this type.
Did you use that method?

@Warkdev
Copy link

Warkdev commented Mar 13, 2017

Hello, no I don't connect dagger 2 to mvvmFX as you're proposing. I think your framework is managing well DI so I don't see the added-value immediatly (although while writing this mail, I could see some).

What I'm currently doing is defining a global graph component in my Main class. That graph is public static and I've an AppComponent that provides inject method for every types of class I have. So, in almost all cases, my first statement in the "public void initialize()" method is "MainApp.component.inject(this)".

@manuel-mauky
Copy link
Collaborator Author

Ok. If you integrate it some time in the future, we would be interested in your feedback. I think we should stop the dagger topic here or move it into it's own thread/issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants