Revision e41cdd18
Added by Lutz Suhrbier almost 13 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/forms/ISelectable.java | ||
---|---|---|
12 | 12 |
|
13 | 13 |
import org.eclipse.swt.SWT; |
14 | 14 |
import org.eclipse.swt.graphics.Color; |
15 |
import org.eclipse.swt.widgets.Display; |
|
15 |
|
|
16 |
import eu.etaxonomy.taxeditor.store.singlesource.widget.DisplayProxy; |
|
16 | 17 |
|
17 | 18 |
|
18 | 19 |
/** |
... | ... | |
25 | 26 |
public interface ISelectable{ |
26 | 27 |
|
27 | 28 |
/** Constant <code>SELECTED</code> */ |
28 |
public static Color SELECTED = Display.getCurrent().getSystemColor(SWT.COLOR_LIST_SELECTION);
|
|
29 |
public static Color SELECTED = DisplayProxy.getDefault().getSystemColor(SWT.COLOR_LIST_SELECTION);
|
|
29 | 30 |
/** Constant <code>NOT_SELECTED</code> */ |
30 |
public static Color NOT_SELECTED = Display.getCurrent().getSystemColor(SWT.COLOR_WHITE);
|
|
31 |
public static Color NOT_SELECTED = DisplayProxy.getDefault().getSystemColor(SWT.COLOR_WHITE);
|
|
31 | 32 |
|
32 | 33 |
/** |
33 | 34 |
* <p>setSelected</p> |
Also available in: Unified diff
Replaced any Display.getDefault() & Display,getCurrent() by DisplayProxy.getDefault() which is implemented in fragment store.rcp or store.rap respectively