// $Id$
/**
-* Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy
-* http://www.e-taxonomy.eu
-*
-* The contents of this file are subject to the Mozilla Public License Version 1.1
-* See LICENSE.TXT at the top of this package for the full license terms.
-*/
+ * Copyright (C) 2007 EDIT
+ * European Distributed Institute of Taxonomy
+ * http://www.e-taxonomy.eu
+ *
+ * The contents of this file are subject to the Mozilla Public License Version 1.1
+ * See LICENSE.TXT at the top of this package for the full license terms.
+ */
package eu.etaxonomy.taxeditor.ui.selection;
*/
public class UserSelectionElement extends AbstractSelectionElement<User> {
+ public static final int DEFAULT = NOTHING;
+
/**
* @param formFactory
* @param conversation
*/
public UserSelectionElement(CdmFormFactory formFactory,
ConversationHolder conversation, ICdmFormElement parentElement,
- String labelString, User entity, int style) {
+ String labelString, User entity, int mode, int style) {
super(formFactory, conversation, parentElement, labelString, entity,
- false, false, false, style);
+ mode, style);
}
- /* (non-Javadoc)
- * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent)
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt
+ * .events.SelectionEvent)
*/
@Override
public void widgetSelected(SelectionEvent e) {
- User newSelection = UserSelectionDialog.select(getShell(), getConversationHolder(), entity);
+ User newSelection = UserSelectionDialog.select(getShell(),
+ getConversationHolder(), entity);
setSelectionInternal(newSelection);
}
- /* (non-Javadoc)
- * @see eu.etaxonomy.taxeditor.ui.selection.AbstractSelectionElement#getTitle()
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * eu.etaxonomy.taxeditor.ui.selection.AbstractSelectionElement#getTitle()
*/
@Override
protected String getTitle() {