Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorAlexander Kurtakov2011-08-23 19:13:22 +0000
committerAlexander Kurtakov2011-08-23 19:13:22 +0000
commit3597ed1ef8eef1a195ce6eb4606719ae32521b2f (patch)
treeb4e1874a4239ac1b5e8181e2ea7de8044939be85 /man
parent917f3ca600dc2c8421dc4b647448e3585ef39513 (diff)
downloadorg.eclipse.linuxtools-3597ed1ef8eef1a195ce6eb4606719ae32521b2f.tar.gz
org.eclipse.linuxtools-3597ed1ef8eef1a195ce6eb4606719ae32521b2f.tar.xz
org.eclipse.linuxtools-3597ed1ef8eef1a195ce6eb4606719ae32521b2f.zip
Fix invalid extension of TextViewer. #314380
Diffstat (limited to 'man')
-rw-r--r--man/org.eclipse.linuxtools.man/src/org/eclipse/linuxtools/man/views/ManTextViewer.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/man/org.eclipse.linuxtools.man/src/org/eclipse/linuxtools/man/views/ManTextViewer.java b/man/org.eclipse.linuxtools.man/src/org/eclipse/linuxtools/man/views/ManTextViewer.java
index b06ede048f..67c6ffc0f3 100644
--- a/man/org.eclipse.linuxtools.man/src/org/eclipse/linuxtools/man/views/ManTextViewer.java
+++ b/man/org.eclipse.linuxtools.man/src/org/eclipse/linuxtools/man/views/ManTextViewer.java
@@ -11,7 +11,7 @@
package org.eclipse.linuxtools.man.views;
import org.eclipse.jface.text.TextPresentation;
-import org.eclipse.jface.text.TextViewer;
+import org.eclipse.jface.text.source.SourceViewer;
import org.eclipse.linuxtools.man.parser.ManDocument;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.StyleRange;
@@ -21,7 +21,7 @@ import org.eclipse.swt.widgets.Composite;
* Text viewer for a man page.
*
*/
-public class ManTextViewer extends TextViewer {
+public class ManTextViewer extends SourceViewer {
/**
* Creates a resizable text viewer.
@@ -29,7 +29,7 @@ public class ManTextViewer extends TextViewer {
* @param parent
*/
public ManTextViewer(Composite parent) {
- super(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
+ super(parent, null, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
// setEditable(false);
}

Back to the top