I am working on developing an eclipse plugin. He needs to start the system browser and open the link. In Swing / SWT, I can do it like this:
java.net.URI uri = new java.net.URI("http://www.google.com"); java.awt.Desktop.getDesktop().browse(uri);
And in fact, this code also works in the Eclipse plug-in. But I am wondering if eclipse has its own way of doing this? Using AWT in eclipse seems weird ...
source share