Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Eclipse Plug-in Developer Guide
Previous Page Home Next Page

SWT standalone example - Java Syntax Viewer

This example shows how to implement a user-defined line styler for the StyledText widget. The example provides a typical editor interface. To see the effect of the line styler, open a *.java file, and when the contents of the file are displayed in the editor area, notice that the keywords have been highlighted.

Running the example

Follow the SWT standalone examples setup instructions to install and run the example from your workspace.

The "Main" class is org.eclipse.swt.examples.javaviewer.JavaViewer.

This example can also be run using the Example Launcher. Select the Java Syntax Viewer item from the Standalone category and click Run.

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire