1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fix hyperlink detector for 3.4 M6

This commit is contained in:
Anton Leherbauer 2008-03-31 07:53:16 +00:00
parent 398615b6fa
commit 2f974e0ef5

View file

@ -45,7 +45,7 @@ public class CElementHyperlinkDetector extends AbstractHyperlinkDetector {
public IHyperlink[] detectHyperlinks(ITextViewer textViewer, final IRegion region, boolean canShowMultipleHyperlinks) { public IHyperlink[] detectHyperlinks(ITextViewer textViewer, final IRegion region, boolean canShowMultipleHyperlinks) {
ITextEditor textEditor= (ITextEditor)getAdapter(ITextEditor.class); ITextEditor textEditor= (ITextEditor)getAdapter(ITextEditor.class);
if (region == null || canShowMultipleHyperlinks || !(textEditor instanceof CEditor)) if (region == null || !(textEditor instanceof CEditor))
return null; return null;
final IAction openAction= textEditor.getAction("OpenDeclarations"); //$NON-NLS-1$ final IAction openAction= textEditor.getAction("OpenDeclarations"); //$NON-NLS-1$