<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java_by_API%2Forg.eclipse.jface.viewers%2FTextViewer</id>
		<title>Java by API/org.eclipse.jface.viewers/TextViewer - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java_by_API%2Forg.eclipse.jface.viewers%2FTextViewer"/>
		<link rel="alternate" type="text/html" href="http://jexp.ru/index.php?title=Java_by_API/org.eclipse.jface.viewers/TextViewer&amp;action=history"/>
		<updated>2026-04-23T15:32:06Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://jexp.ru/index.php?title=Java_by_API/org.eclipse.jface.viewers/TextViewer&amp;diff=1067&amp;oldid=prev</id>
		<title> в 17:43, 31 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://jexp.ru/index.php?title=Java_by_API/org.eclipse.jface.viewers/TextViewer&amp;diff=1067&amp;oldid=prev"/>
				<updated>2010-05-31T17:43:48Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 17:43, 31 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://jexp.ru/index.php?title=Java_by_API/org.eclipse.jface.viewers/TextViewer&amp;diff=1068&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://jexp.ru/index.php?title=Java_by_API/org.eclipse.jface.viewers/TextViewer&amp;diff=1068&amp;oldid=prev"/>
				<updated>2010-05-31T14:23:26Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== TextViewer: getTextWidget() ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
import org.eclipse.jface.text.Document;&lt;br /&gt;
import org.eclipse.jface.text.TextViewer;&lt;br /&gt;
import org.eclipse.jface.window.ApplicationWindow;&lt;br /&gt;
import org.eclipse.swt.SWT;&lt;br /&gt;
import org.eclipse.swt.custom.StyledText;&lt;br /&gt;
import org.eclipse.swt.events.KeyAdapter;&lt;br /&gt;
import org.eclipse.swt.events.KeyEvent;&lt;br /&gt;
import org.eclipse.swt.widgets.ruposite;&lt;br /&gt;
import org.eclipse.swt.widgets.Control;&lt;br /&gt;
import org.eclipse.swt.widgets.Display;&lt;br /&gt;
import org.eclipse.swt.widgets.Shell;&lt;br /&gt;
public class MainClass extends ApplicationWindow {&lt;br /&gt;
  public MainClass() {&lt;br /&gt;
    super(null);&lt;br /&gt;
  }&lt;br /&gt;
  public void run() {&lt;br /&gt;
    setBlockOnOpen(true);&lt;br /&gt;
    open();&lt;br /&gt;
    Display.getCurrent().dispose();&lt;br /&gt;
  }&lt;br /&gt;
  protected void configureShell(Shell shell) {&lt;br /&gt;
    super.configureShell(shell);&lt;br /&gt;
    shell.setText(&amp;quot;Text Editor 2&amp;quot;);&lt;br /&gt;
    shell.setSize(600, 400);&lt;br /&gt;
  }&lt;br /&gt;
  protected Control createContents(Composite parent) {&lt;br /&gt;
    TextViewer viewer = new TextViewer(parent, SWT.V_SCROLL);&lt;br /&gt;
    final StyledText styledText = viewer.getTextWidget();&lt;br /&gt;
    styledText.setWordWrap(true);&lt;br /&gt;
    styledText.addKeyListener(new KeyAdapter() {&lt;br /&gt;
      public void keyReleased(KeyEvent event) {&lt;br /&gt;
        if (event.keyCode == &amp;quot;p&amp;quot; &amp;amp;&amp;amp; (event.stateMask &amp;amp; SWT.CTRL) != 0) {&lt;br /&gt;
          styledText.print();&lt;br /&gt;
        }&lt;br /&gt;
      }&lt;br /&gt;
    });&lt;br /&gt;
    viewer.setDocument(new Document());&lt;br /&gt;
    return styledText;&lt;br /&gt;
  }&lt;br /&gt;
  public static void main(String[] args) {&lt;br /&gt;
    new MainClass().run();&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== TextViewer: setDocument(IDocument idoc) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
import org.eclipse.jface.text.Document;&lt;br /&gt;
import org.eclipse.jface.text.TextViewer;&lt;br /&gt;
import org.eclipse.jface.window.ApplicationWindow;&lt;br /&gt;
import org.eclipse.swt.SWT;&lt;br /&gt;
import org.eclipse.swt.widgets.ruposite;&lt;br /&gt;
import org.eclipse.swt.widgets.Control;&lt;br /&gt;
import org.eclipse.swt.widgets.Display;&lt;br /&gt;
import org.eclipse.swt.widgets.Shell;&lt;br /&gt;
public class MainClass extends ApplicationWindow {&lt;br /&gt;
  public MainClass() {&lt;br /&gt;
    super(null);&lt;br /&gt;
  }&lt;br /&gt;
  public void run() {&lt;br /&gt;
    setBlockOnOpen(true);&lt;br /&gt;
    open();&lt;br /&gt;
    Display.getCurrent().dispose();&lt;br /&gt;
  }&lt;br /&gt;
  protected void configureShell(Shell shell) {&lt;br /&gt;
    super.configureShell(shell);&lt;br /&gt;
    shell.setText(&amp;quot;Text Editor&amp;quot;);&lt;br /&gt;
    shell.setSize(600, 400);&lt;br /&gt;
  }&lt;br /&gt;
  protected Control createContents(Composite parent) {&lt;br /&gt;
    TextViewer viewer = new TextViewer(parent, SWT.NONE);&lt;br /&gt;
    viewer.setDocument(new Document());&lt;br /&gt;
    return viewer.getTextWidget();&lt;br /&gt;
  }&lt;br /&gt;
  public static void main(String[] args) {&lt;br /&gt;
    new MainClass().run();&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>