]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.views.swt.client/src/org/simantics/views/swt/client/impl/SWTLabel.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.views.swt.client / src / org / simantics / views / swt / client / impl / SWTLabel.java
1 package org.simantics.views.swt.client.impl;
2
3 import org.eclipse.swt.widgets.Composite;
4 import org.eclipse.swt.widgets.Label;
5 import org.simantics.views.swt.client.base.SingleSWTViewNode;
6
7 public class SWTLabel extends SingleSWTViewNode<Label> {
8         
9         private static final long serialVersionUID = 7932335224632082902L;
10         
11         @Override
12         public void createControls(Composite parent) {
13                 
14                 control = new Label(parent, style);
15                 
16                 setProperties();
17                 
18         }
19         
20         @Override
21         public void synchronizeText(String text) {
22                 if(text != null) control.setText(text);
23         }
24         
25 }