return new ApplicationWorkbenchWindowAdvisor(configurer);
}
+
/*
* (non-Javadoc)
* @see org.eclipse.ui.application.WorkbenchAdvisor#getInitialWindowPerspectiveId()
// Remembers the user's view layout, window size, window location etc.
// for the next time application is started
- configurer.setSaveAndRestore(true);
+ configurer.setSaveAndRestore(true);
}
-
+/**
+ * see: https://bugs.eclipse.org/bugs/show_bug.cgi?id=234252
+ */
// public void initialize(IWorkbenchConfigurer configurer) {
//
// WorkbenchAdapterBuilder.registerAdapters();
// return workspace.getRoot();
// }
+
+
}
import org.eclipse.ui.application.WorkbenchWindowAdvisor;
import org.springframework.security.BadCredentialsException;
+import eu.etaxonomy.cdm.model.name.NomenclaturalCode;
import eu.etaxonomy.taxeditor.dialogs.LoginDialog;
+import eu.etaxonomy.taxeditor.model.NomenclaturalCodeHelper;
import eu.etaxonomy.taxeditor.preference.InitNomenclaturalCodePrefDialog;
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
// First time Editor is opened, no nomenclatural code has been set
if (PreferencesUtil.getPreferredNomenclaturalCode() == null) {
- logger.debug("No nomencatural code set.");
+ logger.info("No nomencatural code set.");
Shell shell = TaxonomicEditorPlugin.getDefault().getWorkbench()
.getActiveWorkbenchWindow().getShell();
dialog.open();
// Short message confirming user's choice
- String code = PreferencesUtil.getPreferredNomenclaturalCodeAsString();
+ NomenclaturalCode code = PreferencesUtil.getPreferredNomenclaturalCode();
MessageDialog.openInformation(shell, "Nomenclatural code set",
"The following has been set as your preferred nomenclatural code:\n\n\t" +
- code + "\n\nYou can change the nomenclatural code at any time in the \"Preferences\" menu.");
+ NomenclaturalCodeHelper.getDescription(code) + "\n\nYou can change the nomenclatural code at any time in the \"Preferences\" menu.");
}
}