Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2000, 2009 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2010 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 8-14
Link Here
|
8 |
* Contributors: |
8 |
* Contributors: |
9 |
* IBM Corporation - initial API and implementation |
9 |
* IBM Corporation - initial API and implementation |
10 |
* Tom Eicher (Avaloq Evolution AG) - block selection mode |
10 |
* Tom Eicher (Avaloq Evolution AG) - block selection mode |
11 |
* Tom Hofmann (Perspectix AG) - bug 297572 |
11 |
* Tom Hofmann (Perspectix AG) - bug 297572 |
12 |
*******************************************************************************/ |
12 |
*******************************************************************************/ |
13 |
package org.eclipse.jface.text.source; |
13 |
package org.eclipse.jface.text.source; |
14 |
|
14 |
|
Lines 80-86
Link Here
|
80 |
* <p> |
80 |
* <p> |
81 |
* Clients may subclass this class but should expect some breakage by future releases.</p> |
81 |
* Clients may subclass this class but should expect some breakage by future releases.</p> |
82 |
*/ |
82 |
*/ |
83 |
public class SourceViewer extends TextViewer implements ISourceViewer, ISourceViewerExtension, ISourceViewerExtension2, ISourceViewerExtension3, ISourceViewerExtension4 { |
83 |
public class SourceViewer extends TextViewer implements ISourceViewer, ISourceViewerExtension, ISourceViewerExtension2, ISourceViewerExtension3, ISourceViewerExtension4, ISourceViewerExtension5 { |
84 |
|
84 |
|
85 |
|
85 |
|
86 |
/** |
86 |
/** |
Lines 186-192
Link Here
|
186 |
} else if (fScrollArrowHeights != null) { |
186 |
} else if (fScrollArrowHeights != null) { |
187 |
return fScrollArrowHeights; |
187 |
return fScrollArrowHeights; |
188 |
} else { |
188 |
} else { |
189 |
// No arrow heights available. Enlarge textWidget and tweak scroll bar to get reasonable values. |
189 |
// No arrow heights available. Enlarge textWidget and tweak scroll bar to get reasonable values. |
190 |
Point originalSize= textWidget.getSize(); |
190 |
Point originalSize= textWidget.getSize(); |
191 |
try { |
191 |
try { |
192 |
int fakeHeight= 1000; |
192 |
int fakeHeight= 1000; |
Lines 1181-1193
Link Here
|
1181 |
} |
1181 |
} |
1182 |
} |
1182 |
} |
1183 |
|
1183 |
|
1184 |
/* |
1184 |
/* |
1185 |
* @see org.eclipse.jface.text.source.ISourceViewer#getCurrentAnnotationHover() |
1185 |
* @see org.eclipse.jface.text.source.ISourceViewerExtension3#getCurrentAnnotationHover() |
1186 |
* @since 3.2 |
1186 |
* @since 3.2 |
1187 |
*/ |
1187 |
*/ |
1188 |
public IAnnotationHover getCurrentAnnotationHover() { |
1188 |
public IAnnotationHover getCurrentAnnotationHover() { |
1189 |
if (fVerticalRulerHoveringController == null) |
1189 |
if (fVerticalRulerHoveringController == null) |
1190 |
return null; |
1190 |
return null; |
1191 |
return fVerticalRulerHoveringController.getCurrentAnnotationHover(); |
1191 |
return fVerticalRulerHoveringController.getCurrentAnnotationHover(); |
1192 |
} |
1192 |
} |
|
|
1193 |
|
1194 |
/** |
1195 |
* @see org.eclipse.jface.text.source.ISourceViewerExtension5#showAnnotationHoverForKeyboardAction() |
1196 |
* @since 3.6 |
1197 |
*/ |
1198 |
public void showAnnotationHoverForKeyboardAction() { |
1199 |
if (fVerticalRulerHoveringController == null) |
1200 |
return; |
1201 |
fVerticalRulerHoveringController.showAnnotationHoverForKeyboardAction(); |
1202 |
} |
1193 |
} |
1203 |
} |