I downloaded Jetbrains' Datagrip application on Ubuntu 16.04 and started it by running it's datagrip.sh file on the terminal. When I try to select Lock to launcher by right clicking it's icon on the launcher, it does nothing. Can you explain me why it does not support locking the icon to the launcher? while other apps let me to do so.
Use the command described by @JonasCz.
"Tools" > "Create desktop entry / launcher"
Then go to unity, search for DataGrip and drag it to the bar.
I don't know why pinning it doesn't work but the above worked for me. I imagine it has to do with pining the shortcut vs the running java app. The shortcut is probably a wrapper to start the main app.