3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
11 package eu
.etaxonomy
.taxeditor
.account
.group
.view
;
13 import java
.util
.Collection
;
15 import org
.eclipse
.jface
.viewers
.IBaseLabelProvider
;
16 import org
.eclipse
.jface
.viewers
.TableViewer
;
18 import eu
.etaxonomy
.cdm
.api
.service
.IUserService
;
19 import eu
.etaxonomy
.cdm
.model
.common
.Group
;
20 import eu
.etaxonomy
.taxeditor
.account
.AbstractAccountView
;
21 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
25 * @created Feb 16, 2011
28 public class GroupView
extends AbstractAccountView
<Group
>{
30 public static String ID
= "eu.etaxonomy.taxeditor.store.groupView";
33 * @see eu.etaxonomy.taxeditor.account.AbstractAccountView#getInput()
36 public Collection
<String
> getInput() {
37 return CdmStore
.getService(IUserService
.class).findAllGroups();
41 * @see eu.etaxonomy.taxeditor.account.AbstractAccountView#getLabelProvider()
44 protected IBaseLabelProvider
getLabelProvider() {
45 return new GroupLabelProvider();
49 * @see eu.etaxonomy.taxeditor.account.AbstractAccountView#createColumns(org.eclipse.jface.viewers.TableViewer)
52 protected void createColumns(TableViewer viewer
) {