package org.csstudio.opibuilder.adl2boy.translator;

import org.csstudio.opibuilder.model.AbstractContainerModel;
import org.csstudio.opibuilder.model.AbstractWidgetModel;
import org.csstudio.utility.adlparser.fileParser.ADLWidget;
import org.eclipse.swt.graphics.RGB;

public class Byte2Model extends AbstractADL2Model {

	public Byte2Model(ADLWidget adlWidget, RGB[] colorMap, AbstractContainerModel parentModel) {
		super(adlWidget, colorMap, parentModel);
		// TODO Auto-generated constructor stub
	}

	@Override
	public AbstractWidgetModel getWidgetModel() {
		// TODO Auto-generated method stub
		return null;
	}

}

@@ -189,46 +189,243 @@
 dio.
-utility.adlparser.fileParser.ADLWidget
+opibuilder.widgets.model.ByteMonitorModel;%0Aimport org.csstudio.utility.adlparser.fileParser.ADLWidget;%0Aimport org.csstudio.utility.adlparser.fileParser.widgets.ByteMonitor;%0Aimport org.csstudio.utility.adlparser.fileParser.widgets.Meter
 ;%0Aim
@@ -511,16 +511,70 @@
 2Model %7B
+%0A%09ByteMonitorModel byteModel = new ByteMonitorModel();
 %0A%0A%09publi
@@ -710,47 +710,225 @@
 ;%0A%09%09
-// TODO Auto-generated constructor stub
+parentModel.addChild(byteModel, true);%0A%09%09ByteMonitor byteWidget = new ByteMonitor(adlWidget);%0A%09%09if (byteWidget != null) %7B%0A%09%09%09setADLObjectProps(byteWidget, byteModel);%0A%09%09%09setADLMonitorProps(byteWidget, byteModel);%0A%09%09%7D%0A
 %0A%09%7D%0A
@@ -990,45 +990,8 @@
 ) %7B%0A
-%09%09// TODO Auto-generated method stub%0A
 %09%09re
@@ -995,19 +995,24 @@
 %09return 
-nul
+byteMode
 l;%0A%09%7D%0A%0A%7D

Add translation for byte widget