Community
Participate
Working Groups
Build Identifier: Version: 3.5.1 Build id: M20090917-0800 When opening an Internal Browser using the following parameters, support.createBrowser(IWorkbenchBrowserSupport.AS_VIEW, "testBrowser", "testBrowser", "").openURL(new URL(urlString.toString())); The "testBrowser" string does not appear in the tab or as a tooltip as documented. Instead, "Internal Web Browser" is displayed. When AS_VIEW is changed to AS_EDITOR it works as documented. Reproducible: Always Steps to Reproduce: 1. String urlString = "http://eclipse.org"; IWorkbenchBrowserSupport support = PlatformUI.getWorkbench().getBrowserSupport(); support.createBrowser(IWorkbenchBrowserSupport.AS_VIEW, "testBrowser", "testBrowser", "").openURL(new URL(urlString)) 2. Run, tabs and tooltip will display "Internal Web Browser". 3. Change AS_VIEW to AS_EDITOR 4. Run, tabs and tooltip will display "testBrowser".
I think that this is the intended behavior. Multiple Web Browser Editors can be instantiated each with their own name, there is only ever one Web Browser View and it always has the same name, which is the name you would see in the dialog that is launched by Window/Show View.
(In reply to comment #1) > I think that this is the intended behavior. Multiple Web Browser Editors can be > instantiated each with their own name, there is only ever one Web Browser View > and it always has the same name, which is the name you would see in the dialog > that is launched by Window/Show View. I don't think this is correct. By providing a null for the browserId parameter, or by providing unique name, a new view instance is created each time.
I see what you mean, I'll take a look at the bug.
Created attachment 179392 [details] Patch
Patch applied to HEAD, Fixed
(In reply to comment #5) > Patch applied to HEAD, Fixed Thank you.