Project

General

Profile

« Previous | Next » 

Revision a31abd30

Added by Patrick Plitzner almost 8 years ago

  • added constant Window.OK

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/PreferencesUtil.java
28 28
import org.apache.commons.lang.StringUtils;
29 29
import org.eclipse.equinox.internal.p2.ui.model.MetadataRepositoryElement;
30 30
import org.eclipse.jface.preference.IPreferenceStore;
31
import org.eclipse.jface.window.Window;
31 32
import org.eclipse.swt.widgets.Shell;
32 33
import org.eclipse.ui.PlatformUI;
33 34

  
......
434 435
	    if(PreferencesUtil.getPreferredDefaultLangugae() == null){
435 436
	       Shell shell = StoreUtil.getShell();
436 437
	       int open = new DefaultLanguageDialog(shell).open();
437
	       if(open == 0){//FIXME:window performed ok. Find variable for it
438
	       if(open == Window.OK){
438 439
	           PlatformUI.getWorkbench().restart();
439 440
	       }
440 441
	    }else{

Also available in: Unified diff