Project

General

Profile

« Previous | Next » 

Revision 521ddbfc

Added by Patrick Plitzner over 5 years ago

ref #7502 Refactor column generation

  • move constants and column properties to bulk editor input

View differences:

eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/e4/BulkEditorE4Composite.java
89 89
 */
90 90
public class BulkEditorE4Composite extends Composite {
91 91

  
92
    public static final String TYPE_PROPERTY = Messages.BulkEditorE4_TYPE;
93

  
94
    public static final String ID_PROPERTY = "Id"; //$NON-NLS-1$
95

  
96
    public static final String UUID_PROPERTY = "Uuid"; //$NON-NLS-1$
97

  
98 92
    public static final String LABEL_CANDIDATE = "LABEL_CANDIDATE"; //$NON-NLS-1$
99 93
    public static final String LABEL_CANDIDATE_ICON = "LABEL_CANDIDATE_ICON"; //$NON-NLS-1$
100 94

  
......
145 139
	@SuppressWarnings("unused")
146 140
    public void init(AbstractBulkEditorInput<?> input){
147 141

  
148
        columnList.add(input.getName());
149
        columnList.add(TYPE_PROPERTY);
150
        columnList.add(UUID_PROPERTY);
151
        columnList.add(ID_PROPERTY);
142
        input.getPropertyKeys().forEach(key->columnList.add(key));
152 143

  
153 144
	    new BulkEditorSearchE4(this, topComposite, SWT.NONE);
154 145
	    //layout needed because the search bar is added after @PostConstuct method

Also available in: Unified diff