Project

General

Profile

Revision 8b8b9b2e

ID8b8b9b2e2f1f45bf44b78b2b9ac4bca4a2a3c2ac
Parent d64d755b
Child 88d19c5d

Added by Katja Luther almost 3 years ago

some changes for the admin preferences

View differences:

eu.etaxonomy.taxeditor.store/OSGI-INF/l10n/bundle.properties
191 191
extension-point.name = Cdm Viewer
192 192
extension-point.name.0 = Preference Page
193 193
extension-point.name.1 = Admin Preference Page
194
page.name.45 = Specimen Preferences
194
page.name.45 = Specimen Preferences
195
page.name.46 = Publish Flag Preferences
eu.etaxonomy.taxeditor.store/OSGI-INF/l10n/bundle_de.properties
191 191
extension-point.name = Cdm Viewer
192 192
extension-point.name.0 = Pr?ferenzen
193 193
extension-point.name.1 = Admin Pr?ferenzen
194
page.name.45 = Specimen Pr?ferenzen
194
page.name.45 = Specimen Pr?ferenzen
195
page.name.46 = Publish Flag Pr?ferenzen
196
1
eu.etaxonomy.taxeditor.store/plugin.xml
598 598
   </page>
599 599
   <page
600 600
        
601
         class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.PublishFlagPreference"
601
         class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.GeneralAdminPreferencePage"
602 602
         id="eu.etaxonomy.taxeditor.preferences.general"
603 603
         name="%page.name.42">
604 604
   </page>
605
   
605
    <page
606
        category="eu.etaxonomy.taxeditor.preferences.general"
607
         class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.PublishFlagPreference"
608
         id="eu.etaxonomy.taxeditor.preferences.publishFlagPreference"
609
         name="%page.name.46">
610
   </page>
606 611
   <page
607 612
         category="eu.etaxonomy.taxeditor.preferences.general"
608 613
         class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.NomenclaturalCodePreferences"
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/databaseAdmin/preferencePage/GeneralAdminPreferencePage.java
1
/**
2
* Copyright (C) 2018 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 org.eclipse.swt.SWT;
12
import org.eclipse.swt.layout.GridLayout;
13
import org.eclipse.swt.widgets.Composite;
14
import org.eclipse.swt.widgets.Control;
15

  
16
import eu.etaxonomy.taxeditor.preference.menu.CdmPreferencePage;
17

  
18
/**
19
 * @author k.luther
20
 * @since 29.05.2018
21
 *
22
 */
23
public class GeneralAdminPreferencePage extends CdmPreferencePage implements IE4AdminPreferencePage {
24

  
25
    /**
26
     * {@inheritDoc}
27
     */
28
    @Override
29
    protected Control createContents(Composite parent) {
30
        final Composite composite = new Composite(parent, SWT.NULL);
31

  
32
        GridLayout gridLayout = new GridLayout();
33
        composite.setLayout(gridLayout);
34
        return composite;
35
    }
36

  
37
    @Override
38
    public void createControl(Composite parent){
39
        super.createControl(parent);
40
        getControl().setVisible(false);
41
    }
42

  
43
}
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/databaseAdmin/preferencePage/SpecimenAdminPreferences.java
12 12
import org.eclipse.swt.events.SelectionAdapter;
13 13
import org.eclipse.swt.events.SelectionEvent;
14 14
import org.eclipse.swt.layout.GridData;
15
import org.eclipse.swt.layout.GridLayout;
15 16
import org.eclipse.swt.widgets.Button;
16 17
import org.eclipse.swt.widgets.Composite;
17 18
import org.eclipse.swt.widgets.Control;
......
45 46
    @Override
46 47
    protected Control createContents(Composite parent) {
47 48
        Composite composite = new Composite(parent, SWT.NULL);
48

  
49
        GridLayout gridLayout = new GridLayout();
50
        composite.setLayout(gridLayout);
49 51
        final Button showCollectingAreaInGeneralSectionButton = new Button(composite, SWT.CHECK);
50 52

  
51 53
        showCollectingAreaInGeneralSectionButton.setText(Messages.DatabasePreferncesPage_Show_Collecting_Areas_in_general_section);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)