Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 222610
Collapse All | Expand All

(-)src/org/eclipse/pde/internal/ui/editor/text/ChangeAwareSourceViewerConfiguration.java (-3 / +15 lines)
Lines 147-155 Link Here
147
	}
147
	}
148
148
149
	public IHyperlinkDetector[] getHyperlinkDetectors(ISourceViewer sourceViewer) {
149
	public IHyperlinkDetector[] getHyperlinkDetectors(ISourceViewer sourceViewer) {
150
		if (fSourcePage != null)
150
		IHyperlinkDetector[] registeredDetectors = super.getHyperlinkDetectors(sourceViewer);
151
			return new IHyperlinkDetector[] {(IHyperlinkDetector) fSourcePage.getAdapter(IHyperlinkDetector.class)};
151
		if (registeredDetectors == null)
152
		return super.getHyperlinkDetectors(sourceViewer);
152
			return null;
153
154
		if (fSourcePage == null)
155
			return registeredDetectors;
156
157
		IHyperlinkDetector additionalDetector = (IHyperlinkDetector) fSourcePage.getAdapter(IHyperlinkDetector.class);
158
		if (additionalDetector == null)
159
			return registeredDetectors;
160
161
		IHyperlinkDetector[] allDetectors = new IHyperlinkDetector[registeredDetectors.length + 1];
162
		System.arraycopy(registeredDetectors, 0, allDetectors, 0, registeredDetectors.length);
163
		allDetectors[registeredDetectors.length] = additionalDetector;
164
		return allDetectors;
153
	}
165
	}
154
166
155
	public abstract boolean affectsTextPresentation(PropertyChangeEvent event);
167
	public abstract boolean affectsTextPresentation(PropertyChangeEvent event);

Return to bug 222610