Commit 6934842e authored by Matija Obreza's avatar Matija Obreza
Browse files

Log viewer

parent c0ac31ac
package org.genesys2.anno.gui;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.ToolBar;
import org.eclipse.swt.widgets.ToolItem;
import swing2swt.layout.BorderLayout;
public class LogViewer extends Composite {
private Text txtLogtext;
* Create the composite.
* @param parent
* @param style
public LogViewer(Composite parent, int style) {
super(parent, style);
setLayout(new BorderLayout(0, 0));
ToolBar toolBar = new ToolBar(this, SWT.FLAT | SWT.RIGHT);
ToolItem tltmClear = new ToolItem(toolBar, SWT.NONE);
ToolItem tltmSave = new ToolItem(toolBar, SWT.NONE);
txtLogtext = new Text(this, SWT.BORDER | SWT.READ_ONLY | SWT.V_SCROLL | SWT.MULTI);
protected void checkSubclass() {
// Disable the check that prevents subclassing of SWT components
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment