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:
parent
398615b6fa
commit
2f974e0ef5
1 changed files with 1 additions and 1 deletions
|
@ -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$
|
||||||
|
|
Loading…
Add table
Reference in a new issue