We are working with PDS 11.4 and I am experimenting with the customization editor. I have added a menu+button for my DataDigger but it does not seem to show up in the toolbar, although it really is there:
When I press it, it works. However, I don't see the icon. I have tried different filetypes and sizes. A .ico file does not seem to work, nor does a 16x16 gif image.
Second problem is that I have 4 'ghost' buttons at the left of my invisible DataDigger button. These were created during earlier attempts to add the button. In the customization editor I can only see one entry:
Is this a bug or am I doing something wrong?
Update: I found out that images /can/ be shown, as long as they are in the icons subfolder of the openedge extensibility plugin.
I've not seen the issues with icons before, but frequently ran into your second issue when using OE 11.4. In the end I took to editing plugin.xml in to get rid of the erroneous entries.
C:\[dlc11_4]\oeide\eclipse\plugins\com.openedge.pdt.extensibility.user_1.0.0
There's also an icons folder in that directory, no idea if it'd help to manually add your .gif to that folder...worth a go I suspect.
I'm yet to see the issue in 11.5, but that could be a coincidence...
I've not seen the issues with icons before, but frequently ran into your second issue when using OE 11.4. In the end I took to editing plugin.xml in to get rid of the erroneous entries.
C:\[dlc11_4]\oeide\eclipse\plugins\com.openedge.pdt.extensibility.user_1.0.0
There's also an icons folder in that directory, no idea if it'd help to manually add your .gif to that folder...worth a go I suspect.
I'm yet to see the issue in 11.5, but that could be a coincidence...
Flag this post as spam/abuse.
Thanks for the tips about the icons folder. That one seems to work now.
I manually cleaned the plugin.xml file and that got rid of the extra entries.
After starting PDS -clean the ghost icons are gone now. Great!
Now I would like to take it a bit further by defining editor context menu. I can start a progress program from the editor context menu and I can send the filenamem of the current selection, but I would like to know in my program what text was selected by the user. Is that possible?
Thanks for the tips about the icons folder. That one seems to work now.
I manually cleaned the plugin.xml file and that got rid of the extra entries.
After starting PDS -clean the ghost icons are gone now. Great!
Now I would like to take it a bit further by defining editor context menu. I can start a progress program from the editor context menu and I can send the filenamem of the current selection, but I would like to know in my program what text was selected by the user. Is that possible?
Flag this post as spam/abuse.
I could use this for the DataDigger; select the table name, enter context menu, choose "DataDigger" and it will open the DataDigger for that table.
Second use case: select name of an include / external program, enter context menu, choose "Open via propath"
For your second use: hold ctrl and click the element.
Wow, great! Learn new things every hour!
As an extra use case: this could open the door for a lot of refactoring options. Select a part of the text and do something with it, like generating small pieces of code.
If you're not afraid of writing a bit of java code, or could con someone into doing it for you, you might be able to learn something from the KSVPlugin which does this second item.
Adding stuff to eclipse isn't hard, and there are lots and lots of tutorials on the web if you want to get your hands dirty.
Where to?
to get datadigger... once ago I tried it, but now, if you could attach to pdsoe, it makes double interesting...
www.oehive.org/.../DataDigger Always try OE Hive!
As Thomas mentioned, get DataDigger from the Hive and add it to PDS via OpenEdge > Tools > Customization Editor
Copy the file DataDigger.ico from the images folder of DataDigger to
D:\dlc114\oeide\eclipse\plugins\com.openedge.pdt.extensibility.user_1.0.0\icons
Then fill in the Action details:
And start Diggin'