Project

General

Profile

Revision 0950feec

ID0950feeca604134177affd0c6a9e237fa6898132
Parent 6a2d7a17
Child 772c1018

Added by Katja Luther almost 3 years ago

smaller changes in preferences

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/NameDetailsConfigurator.java
221 221
      return result.toString();
222 222
    }
223 223

  
224
    /**
225
     * @return
226
     */
227
    public Object isHybridActivated() {
228

  
229
        return isHybridActivated;
230
    }
231

  
232
    public void setHybridActivated(boolean isHybrid) {
233

  
234
        this.isHybridActivated= isHybrid;
235
    }
224
    
236 225

  
237 226
    /**
238 227
     * @return the isAuthorCacheActivated
......
248 237
        this.isAuthorCacheActivated = isAuthorCacheActivated;
249 238
    }
250 239

  
240
	public boolean isHybridActivated() {
241
		return isHybridActivated;
242
	}
243

  
244
	public void setHybridActivated(boolean isHybridActivated) {
245
		this.isHybridActivated = isHybridActivated;
246
	}
247

  
251 248

  
252 249
}
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/NameDetailsViewConfiguration.java
54 54
         }
55 55
         });
56 56

  
57
        child  = new Composite(composite, SWT.NULL);
57
        child  = new Composite(composite, SWT.H_SCROLL);
58 58
        child.setLayout(new GridLayout());
59 59
        child.setVisible(isSimpleDetailsViewActivated);
60 60

  
......
211 211
                 PreferencesUtil.getPreferenceStore().setValue(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NAME_RELATIONSHIP, isShowNameRelationship);
212 212
              }
213 213
         });
214
        
215
        final Button showHybrid = new Button(child, SWT.CHECK);
216
        boolean isShowHybrid = PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_HYBRID);
217
        showHybrid.setText("Show hybrid section");
218
        showHybrid.setSelection(isShowHybrid);
219
        showHybrid.addSelectionListener(new SelectionAdapter(){
220
             @Override
221
             public void widgetSelected(SelectionEvent e) {
222
                 boolean isShowHybrid = showHybrid.getSelection();
223
                 PreferencesUtil.getPreferenceStore().setValue(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_HYBRID, isShowHybrid);
224
              }
225
         });
226
        
227
        
214 228

  
215 229
        if(isSimpleDetailsViewActivated){
216 230
            child.setEnabled(true);
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/TemplatePreferencePage.java
1
/**
2
* Copyright (C) 2014 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.taxeditor.preference;
10

  
11
import org.eclipse.jface.preference.FieldEditorPreferencePage;
12
import org.eclipse.ui.IWorkbench;
13
import org.eclipse.ui.IWorkbenchPreferencePage;
14

  
15
/**
16
 * @author a.oppermann
17
 * @date 13.08.2014
18
 *
19
 */
20
public class TemplatePreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
21

  
22
    @Override
23
    public void init(IWorkbench workbench) {
24
        setPreferenceStore(PreferencesUtil.getPreferenceStore());
25
    }
26

  
27
    /* (non-Javadoc)
28
     * @see org.eclipse.jface.preference.FieldEditorPreferencePage#createFieldEditors()
29
     */
30
    @Override
31
    protected void createFieldEditors() {
32
      //  addField(new BooleanFieldEditor(IPreferenceKeys.IS_RL, "Rote Liste 2020",  getFieldEditorParent()));
33
    }
34

  
35
}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)