Project

General

Profile

Download (906 Bytes) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2017 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.taxeditor.workbench;
10

    
11
import javax.annotation.PostConstruct;
12

    
13
import org.eclipse.swt.SWT;
14
import org.eclipse.swt.widgets.Composite;
15
import org.eclipse.swt.widgets.Label;
16

    
17
/**
18
 * @author pplitzner
19
 * @since Nov 6, 2017
20
 *
21
 */
22
public class StatusBar {
23

    
24
    private static Label statusLabel;
25

    
26
    @PostConstruct
27
    public void create(Composite parent){
28
        statusLabel = new Label(parent, SWT.NONE);
29
    }
30

    
31
    public static void setStatus(String status){
32
        statusLabel.setText(status);
33
        statusLabel.getParent().layout();
34
    }
35

    
36
    public static void clearStatus(){
37
        statusLabel.setText("");
38
    }
39
}
(7-7/8)