gephi / gephi-plugins

Repository for Gephi Plugins maintained by the team. Each plugin has it's branch.
269 stars 620 forks source link

Statistics Plugin doesn't show up in the statistics window #213

Closed thorstenhenke closed 2 years ago

thorstenhenke commented 4 years ago

Dear gephi developers,

I am currently trying to develop a plugin that calculates a node level statistic. I carefully read the gephi-plugins README.md and also had a close look at the statistics' related examples in the gephi-plugin-bootcamp.

To get familiar with maven, netbeans and the building process I created a mockup version of my plugin and tried to run in. Although gephi recognizes the plugin and lists it as 'installed' the plugin's method does not show up in the statistics window.

Since I followed the instructions on how to build a package very caerfully and by now my plugin is just a mockup version, I am out of ideas how to solve the problem by myself.

Update When I run the plugin from within netbeans I get the following warining messsage. java.lang.ClassNotFoundException: Will not load classes from default package (IOIndexUI)

Another interesting obersevation is, that I can import my plugin in my regular Gephi installation and also see it listed in the statistics window. I presume based on the warning message and the my experience with the regular installation that there is s

You can find my current plugin implementation here: https://github.com/thorstenhenke/gephi-plugins

I am clearly missing out a minor but important detail...

AnshulV98 commented 3 years ago

I am not sure about it, as I cannot see your code, But is it possible that you may have not created a StatisticsUI class for your module? I believe that might be required for the plugin to show up in the Statistics Tab. https://github.com/gephi/gephi/wiki/Statistics maybe this might help?

AnshulV98 commented 3 years ago

@thorstenhenke I tried this myself and faced a similar issue, but by fiddling around I realized that if one puts all the java files in a package then it simply shows up!!! your

java.lang.ClassNotFoundException: Will not load classes from default package (IOIndexUI)

was a big help for this. Also, don't forget to have appropriate Manifest.mf files and Bundle.properties files for your plugin.

Have a look at https://github.com/carlschroedl/gephi-plugins/tree/minimum-spanning-tree-plugin/modules/MinimumSpanningTree/src/main f

for reference, this helped me make it work as well. Hope this helps

@eduramiba I guess this should be a sufficient solution to close the issue.

mbastian commented 2 years ago

Hi, I'm closing the issue as the problem has been found. To avoid this in the future, I think we could auto-create the package in the generation phase. I added a ticket for that https://github.com/gephi/gephi-maven-plugin/issues/13