1
|
/**
|
2
|
* Copyright (C) 2020 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.databaseAdmin.preferencePage;
|
10
|
|
11
|
import eu.etaxonomy.cdm.model.metadata.PreferencePredicate;
|
12
|
import eu.etaxonomy.cdm.model.term.TermType;
|
13
|
import eu.etaxonomy.taxeditor.preference.menu.ExtensionTypeMenuPreferences;
|
14
|
|
15
|
/**
|
16
|
* @author k.luther
|
17
|
* @since Feb 13, 2020
|
18
|
*/
|
19
|
public class ExtensionTypeMenuAdminPreferences extends ExtensionTypeMenuPreferences {
|
20
|
|
21
|
public ExtensionTypeMenuAdminPreferences() {
|
22
|
super();
|
23
|
isAdminPreference = true;
|
24
|
setPredicate(PreferencePredicate.ExtensionTypes);
|
25
|
type = TermType.ExtensionType;
|
26
|
}
|
27
|
|
28
|
@Override
|
29
|
public boolean performOk() {
|
30
|
if (!isApply()){
|
31
|
return true;
|
32
|
}
|
33
|
return performOkAdmin();
|
34
|
}
|
35
|
|
36
|
}
|