Lines 12-18
Link Here
|
12 |
|
12 |
|
13 |
import org.eclipse.jface.preference.IPreferenceStore; |
13 |
import org.eclipse.jface.preference.IPreferenceStore; |
14 |
import org.eclipse.jface.text.*; |
14 |
import org.eclipse.jface.text.*; |
15 |
import org.eclipse.jface.text.hyperlink.IHyperlinkDetector; |
|
|
16 |
import org.eclipse.jface.text.information.*; |
15 |
import org.eclipse.jface.text.information.*; |
17 |
import org.eclipse.jface.text.reconciler.IReconciler; |
16 |
import org.eclipse.jface.text.reconciler.IReconciler; |
18 |
import org.eclipse.jface.text.reconciler.MonoReconciler; |
17 |
import org.eclipse.jface.text.reconciler.MonoReconciler; |
Lines 146-169
Link Here
|
146 |
}; |
145 |
}; |
147 |
} |
146 |
} |
148 |
|
147 |
|
149 |
public IHyperlinkDetector[] getHyperlinkDetectors(ISourceViewer sourceViewer) { |
|
|
150 |
IHyperlinkDetector[] registeredDetectors = super.getHyperlinkDetectors(sourceViewer); |
151 |
if (registeredDetectors == null) |
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; |
165 |
} |
166 |
|
167 |
public abstract boolean affectsTextPresentation(PropertyChangeEvent event); |
148 |
public abstract boolean affectsTextPresentation(PropertyChangeEvent event); |
168 |
|
149 |
|
169 |
public abstract boolean affectsColorPresentation(PropertyChangeEvent event); |
150 |
public abstract boolean affectsColorPresentation(PropertyChangeEvent event); |