Package org.eclipse.ui.help

Examples of org.eclipse.ui.help.IWorkbenchHelpSystem.resolve()


      IHelpResource resource = relatedTopics[0];
      if (resource != null) {
        String helpUrl = resource.getHref();
        IWorkbenchHelpSystem helpSystem = PlatformUI.getWorkbench()
            .getHelpSystem();
        URL url = helpSystem.resolve(helpUrl, true);
        return browser.setUrl(url.toExternalForm());
      }
    }
    Activator.getLogger().warning(
        "Could not find resource in context: " + contextName);
View Full Code Here


    browser = new Browser(sbody, SWT.NONE);
    GridData data = new GridData(GridData.FILL_BOTH);
    browser.setLayoutData(data);
    IWorkbenchHelpSystem helpSystem = PlatformUI.getWorkbench()
        .getHelpSystem();
    URL url = helpSystem
        .resolve("org.fusesource.ide.help/index.html", true);
    browser.setUrl(url.toExternalForm());
    browser.addLocationListener(locationListener);

    // section.pack();
View Full Code Here

      }

      // convert any jar urls to a usable eclipse url
      Matcher jarMatcher = JAR_URL.matcher(url.toExternalForm());
      if (jarMatcher.matches()){
        url = helpSystem.resolve(url.toExternalForm(), true);
      }

      results.add(url.toString());
    }
    return results;
View Full Code Here

    if (req == null) {
      URL url = null;
      if (JExerciseViewHelpLocation != null) {
        IWorkbenchHelpSystem help = PlatformUI.getWorkbench().getHelpSystem();
        String helpPath = "/" + JexUiPlugin.getPlugin().getBundle().getSymbolicName() + JExerciseViewHelpLocation;
        url = help.resolve(helpPath, true);
      }
      if (url != null) {
        setRightControl(exerciseDetailsView);
        exerciseDetailsView.setUrl(url.toString());
      } else {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.