The development kit example does not work
Hi guys,
our company purchased Geneious 6.1.6 and I am currently looking at the Geneious plugin develoment. when I tried to run the examples in the development kit, some of them just does not work. For example, I can't find the plugin anywhere.
The example I tried:
ExampleAlignmentOperation: can not find this plugin anywhere. In the code, it should add an item under the Tools.
Source code:
public GeneiousActionOptions getActionOptions() {
return new GeneiousActionOptions("My Action").setMainMenuLocation(GeneiousActionOptions.MainMenu.Tools).setInMainToolbar(true).setInPopupMenu(true);
}
ExampleWorkflow: Does not allow me to run this example.
Is there anyone can help? Thanks in advance.
-
Alignment operations have special treatment in Geneious. They always appear as a tab in the options for the general alignment operation and you can't change that. So for ExampleAlignmentOperation go to "Align/Assemble -> Pairwise/Multiple Align" and there will be a tab called "Padding Alignment". Are you able to see that?
If you want to write a more general purpose operation, the ExampleWorkflow is a good one to start from. It already implements getActionOptions so you can tweak that. What goes wrong when you try to run it? What operating system and IDE are you using?
0 -
Thanks for your quick reply.
Yes, thanks to your kind help I found the plugin under the "Pairwise/Multiple Align".
For the dev, I am using Windows 7 + Eclipse(Build id: 20130614-0229), followed by the setup.html in the dev kit. This is how I tried to run it:
Go to Eclipse Run -> Run Configurations, most of the examples can be found under Java Application, but can't find the ExampleWorkflow one, even I tried to import this project but failed. Error: Project ExampleWorkflowPlugin does not exist. I check the location, it does sit there.
Thanks again!
0 -
Right, I see what you mean. I've been testing with IntelliJ. Our Eclipse project file is misconfigured for that plugin. I've fixed it for our next release. To fix it yourself, open the file examples/ExampleWorkflowPlugin/.project in a text editor. Change the text inside it that says "ExampleWorkflow" to "ExampleWorkflowPlugin".
Thanks for letting us know about the problem. I hope your plugin development goes well. Let us know if you have any other questions.
0 -
appreciate your help!
0 -
I tried your way, but still have the same problem. Error: Project ExampleWorkflowPlugin does not exist
0 -
I am not really familiar with how eclipse projects work (I use intellij), but I found the change I suggested worked if I started with a completely fresh eclipse workspace after changing that file. 0 -
I create a new project using the build.xml from the other example project. Did not change anything. Now it works.
0
Please sign in to leave a comment.
Comments
7 comments