File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
core/ui/src/main/java/org/phoebus/ui/help Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 77 *******************************************************************************/
88package org .phoebus .ui .help ;
99
10- import org .phoebus .framework .workbench .ApplicationService ;
1110import org .phoebus .ui .application .Messages ;
1211import org .phoebus .ui .javafx .ImageCache ;
1312import org .phoebus .ui .spi .MenuEntry ;
1413
1514import javafx .scene .image .Image ;
15+ import org .phoebus .ui .web .WebBrowserApplication ;
16+
17+ import java .net .URI ;
18+ import java .net .URISyntaxException ;
1619
1720/** Menu entry to open help
1821 * @author Kay Kasemir
@@ -41,7 +44,13 @@ public Image getIcon()
4144 @ Override
4245 public Void call ()
4346 {
44- ApplicationService .createInstance (HelpApplication .NAME );
47+ try {
48+ URI helpLocationURI = new URI (HelpBrowser .determineHelpLocation ());
49+ WebBrowserApplication webBrowserApplication = new WebBrowserApplication ();
50+ webBrowserApplication .create (helpLocationURI );
51+ } catch (URISyntaxException uriSyntaxException ) {
52+ throw new RuntimeException (uriSyntaxException );
53+ }
4554 return null ;
4655 }
4756}
You can’t perform that action at this time.
0 commit comments