Extensibility [message #254] |
Thu, 30 March 2017 18:08 ![Go to next message Go to next message](/forum/theme/myThemeWithHFCSS/images/down.png) |
andriy
Messages: 4 Registered: March 2017
|
Junior Member |
|
|
Hello,
is there any option to create a custom addon/plugin for Data Warrior?
My use case is:
1. User clicks a new added menu item "Open research database"
2. User enters login information
3. A list of custom searches is displayed to the user from the 3d party system
4. After selection of the search, a web service is called, which generated an sd-file
5. the generated sd-file is loaded into Data Warrior
Many thanks in advance !
Andriy
|
|
|
Re: Extensibility [message #257 is a reply to message #254] |
Thu, 30 March 2017 21:52 ![Go to previous message Go to previous message](/forum/theme/myThemeWithHFCSS/images/up.png) ![Go to next message Go to next message](/forum/theme/myThemeWithHFCSS/images/down.png) |
thomas
Messages: 693 Registered: June 2014
|
Senior Member |
|
|
Hi Andriy,
I already planned a plugin interface since some time, but because of other priorities didn't find the time yet. Nevertheless, if you would be willing to do some programming, there would be a few options:
- take the DataWarrior source code, add a custom menu item to the database menu, which opens a login dialog to your system and then, similar to the COD-database dialog, opens an own dialog with query options. The query could be sent through a REST or JDBC based connection and retrieves a result table with isomeric SMILES and data or opens an SD-File from a predefined location or network stream. Disadvantage: with every new DataWarrior version you would have to combine DataWarrior source with your custom source and recompile.
- you may create an independent application to define query features and prepare the result, e.g. as a Web application. Instead of retrieving the result the user receives a result URL like //http:someServer/?queryID=12435. The user launches DataWarrior, selects "Database->Retrieve Data From Custom URL..." and retrieves the result. If it includes structures as isomeric SMILES, then they are automatically recognized and shown.
- third option: contribute to a Plugin-API specification and implementation, which would then give you a maximum of flexibility. Even this would be an overseeable effort.
Best wishes, Thomas
|
|
|
|
|
|
Re: Extensibility [message #266 is a reply to message #262] |
Thu, 06 April 2017 09:16 ![Go to previous message Go to previous message](/forum/theme/myThemeWithHFCSS/images/up.png) |
andriy
Messages: 4 Registered: March 2017
|
Junior Member |
|
|
hi Thomas, sorry to bother you again, can you please change my login. I was not aware that it will be displayed in the messages, and actually I do not really want my email to be indexed so easily by google. I could not find a way to change it or how to delete a profile.
Many thanks !
Andriy
|
|
|