Project

General

Profile

« Previous | Next » 

Revision e41cdd18

Added by Lutz Suhrbier almost 13 years ago

Replaced any Display.getDefault() & Display,getCurrent() by DisplayProxy.getDefault() which is implemented in fragment store.rcp or store.rap respectively

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/taxon/ParsingMessageElement.java
14 14
import org.eclipse.swt.SWT;
15 15
import org.eclipse.swt.graphics.Color;
16 16
import org.eclipse.swt.widgets.Composite;
17
import org.eclipse.swt.widgets.Display;
18 17
import org.eclipse.swt.widgets.Label;
19 18

  
20 19
import eu.etaxonomy.cdm.strategy.parser.ParserProblem;
21 20
import eu.etaxonomy.taxeditor.store.CdmStore;
21
import eu.etaxonomy.taxeditor.store.singlesource.widget.DisplayProxy;
22 22
import eu.etaxonomy.taxeditor.ui.forms.AbstractCdmFormElement;
23 23
import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory;
24 24
import eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement;
......
64 64
	
65 65
	private Color getColor(){
66 66
		if(parserProblem.isError()){
67
			return Display.getCurrent().getSystemColor(SWT.COLOR_RED);
67
			return DisplayProxy.getDefault().getSystemColor(SWT.COLOR_RED);
68 68
		}
69 69
		
70 70
		if(parserProblem.isWarning()){
71
			return Display.getCurrent().getSystemColor(SWT.COLOR_YELLOW);
71
			return DisplayProxy.getDefault().getSystemColor(SWT.COLOR_YELLOW);
72 72
		}
73 73
		// we should never get here
74 74
		return null;

Also available in: Unified diff