Skip to content
Snippets Groups Projects
Commit b8b0b037 authored by Sylvain Mainguy's avatar Sylvain Mainguy
Browse files

avisto: migrate from comete V1 to V2

parent cb406977
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,6 @@ import fr.soleil.comete.awt.util.ColorTool; ...@@ -27,7 +27,6 @@ import fr.soleil.comete.awt.util.ColorTool;
import fr.soleil.comete.definition.widget.util.CometeColor; import fr.soleil.comete.definition.widget.util.CometeColor;
import fr.soleil.comete.tango.data.adapter.StateAdapter; import fr.soleil.comete.tango.data.adapter.StateAdapter;
public class StateViewer extends JLabel { public class StateViewer extends JLabel {
private static final long serialVersionUID = 7753625163588396224L; private static final long serialVersionUID = 7753625163588396224L;
...@@ -37,11 +36,11 @@ public class StateViewer extends JLabel { ...@@ -37,11 +36,11 @@ public class StateViewer extends JLabel {
this.setText(TangoConst.Tango_DevStateName[stateCode]); this.setText(TangoConst.Tango_DevStateName[stateCode]);
this.setToolTipText(this.getText()); this.setToolTipText(this.getText());
Color color = null; Color color = null;
CometeColor cometeColor = null;
// XXX en attendant correction dans TangoDAO // XXX en attendant correction dans TangoDAO
// TODO avisto // TODO avisto
MyStateAdapter stateAdapter = new MyStateAdapter(); MyStateAdapter stateAdapter = new MyStateAdapter();
cometeColor = stateAdapter.getColor(this.getText()); CometeColor cometeColor = stateAdapter.getColor(this.getText());
if (cometeColor != null) { if (cometeColor != null) {
color = ColorTool.getColor(cometeColor); color = ColorTool.getColor(cometeColor);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment