Revision e380ba33
Added by Niels Hoffmann almost 15 years ago
taxeditor-editor/src/main/java/eu/etaxonomy/taxeditor/propertysheet/CollectionPropertySource.java | ||
---|---|---|
3 | 3 |
import java.util.Collection; |
4 | 4 |
import java.util.Vector; |
5 | 5 |
|
6 |
import org.apache.log4j.Logger; |
|
7 | 6 |
import org.eclipse.ui.views.properties.IPropertyDescriptor; |
8 | 7 |
import org.eclipse.ui.views.properties.IPropertySource; |
9 | 8 |
import org.eclipse.ui.views.properties.PropertyDescriptor; |
... | ... | |
14 | 13 |
* @version 1.0 |
15 | 14 |
*/ |
16 | 15 |
abstract public class CollectionPropertySource implements IPropertySource { |
17 |
private static final Logger logger = Logger |
|
18 |
.getLogger(CollectionPropertySource.class); |
|
19 | 16 |
|
20 | 17 |
protected Vector<PropertyDescriptor> descriptors = new Vector<PropertyDescriptor>(); |
21 |
protected Collection collection; |
|
18 |
protected Collection<?> collection;
|
|
22 | 19 |
private Object collectionOwner; |
23 | 20 |
|
24 |
public CollectionPropertySource(Collection collection) { |
|
21 |
public CollectionPropertySource(Collection<?> collection) {
|
|
25 | 22 |
this.collection = collection; |
26 | 23 |
for (Object item : collection) { |
27 | 24 |
addDescriptor(item); |
28 | 25 |
} |
29 | 26 |
} |
30 | 27 |
|
31 |
public CollectionPropertySource(Collection collection, Object collectionOwner) { |
|
28 |
public CollectionPropertySource(Collection<?> collection, Object collectionOwner) {
|
|
32 | 29 |
this.collection = collection; |
33 | 30 |
this.collectionOwner = collectionOwner; |
34 | 31 |
for (Object item : collection) { |
Also available in: Unified diff
editor now updatable via updateSite