Examples of HyperlinkDetectorRegistry


Examples of org.eclipse.ui.texteditor.HyperlinkDetectorRegistry

   * @return the hyperlink detector registry
   * @since 3.3
   */
  public synchronized HyperlinkDetectorRegistry getHyperlinkDetectorRegistry() {
    if (fHyperlinkDetectorRegistry == null)
      fHyperlinkDetectorRegistry= new HyperlinkDetectorRegistry(getPreferenceStore());
    return fHyperlinkDetectorRegistry;
  }
View Full Code Here

Examples of org.eclipse.ui.texteditor.HyperlinkDetectorRegistry

   * @param sourceViewer the source viewer to be configured by this configuration
   * @return an array with hyperlink detectors or <code>null</code> if no hyperlink detectors are registered
   * @since 3.3
   */
  protected final IHyperlinkDetector[] getRegisteredHyperlinkDetectors(ISourceViewer sourceViewer) {
    HyperlinkDetectorRegistry registry= EditorsUI.getHyperlinkDetectorRegistry();

    Map targets= getHyperlinkDetectorTargets(sourceViewer);
    Assert.isNotNull(targets);
   
    IHyperlinkDetector[] result= null;
    Iterator iter= targets.entrySet().iterator();
    while (iter.hasNext()) {
      Entry target= (Entry)iter.next();
      String targetId= (String)target.getKey();
      IAdaptable context= (IAdaptable)target.getValue();
      result= merge(result, registry.createHyperlinkDetectors(targetId, context));
    }
    return result;
  }
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.