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/translation/TranslationMetaDataWizardPage.java
14 14
import org.eclipse.swt.SWT;
15 15
import org.eclipse.swt.custom.SashForm;
16 16
import org.eclipse.swt.widgets.Composite;
17
import org.eclipse.swt.widgets.Display;
18 17

  
18
import eu.etaxonomy.taxeditor.store.singlesource.widget.DisplayProxy;
19 19
import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory;
20 20

  
21 21
/**
......
36 36
		super("TranslationMetaDataWizardPage");
37 37
		setTitle("See information about existing translations");
38 38
				
39
		formFactory = new CdmFormFactory(Display.getCurrent());
39
		formFactory = new CdmFormFactory(DisplayProxy.getDefault());
40 40
	}
41 41
	
42 42
	/* (non-Javadoc)
......
46 46
	@Override
47 47
	public void createControl(Composite parent) {
48 48
		Composite control = formFactory.createComposite(parent);
49
//		control.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_GREEN));
49
//		control.setBackground(DisplayProxy.getDefault().getSystemColor(SWT.COLOR_GREEN));
50 50
		control.setLayout(CdmFormFactory.LAYOUT(1, false));
51 51
		SashForm sash = new SashForm(control, SWT.HORIZONTAL);
52 52
		sash.setLayoutData(CdmFormFactory.FILL());

Also available in: Unified diff