From a31abd3071ef107c7af2a33da95273b843e0d98c Mon Sep 17 00:00:00 2001 From: Patric Plitzner Date: Wed, 10 Dec 2014 09:08:00 +0000 Subject: [PATCH] - added constant Window.OK --- .../eu/etaxonomy/taxeditor/preference/PreferencesUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/PreferencesUtil.java b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/PreferencesUtil.java index b48fde52d..a02e89c4c 100644 --- a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/PreferencesUtil.java +++ b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/PreferencesUtil.java @@ -28,6 +28,7 @@ import java.util.UUID; import org.apache.commons.lang.StringUtils; import org.eclipse.equinox.internal.p2.ui.model.MetadataRepositoryElement; import org.eclipse.jface.preference.IPreferenceStore; +import org.eclipse.jface.window.Window; import org.eclipse.swt.widgets.Shell; import org.eclipse.ui.PlatformUI; @@ -434,7 +435,7 @@ public class PreferencesUtil implements IPreferenceKeys { if(PreferencesUtil.getPreferredDefaultLangugae() == null){ Shell shell = StoreUtil.getShell(); int open = new DefaultLanguageDialog(shell).open(); - if(open == 0){//FIXME:window performed ok. Find variable for it + if(open == Window.OK){ PlatformUI.getWorkbench().restart(); } }else{ -- 2.34.1