Revision ef6a883c
Added by Katja Luther about 7 years ago
eu.etaxonomy.taxeditor.application/OSGI-INF/l10n/plugin.properties | ||
---|---|---|
18 | 18 |
product.name = EDIT Taxonomic Editor |
19 | 19 |
activity.description = Disable unwanted eclipse UI |
20 | 20 |
activity.name = Disable |
21 |
product.name.0 = EDIT Taxonomic Editor |
|
21 |
product.name.0 = EDIT Taxonomic Editor |
|
22 |
command.label.25 = Import Preferences |
eu.etaxonomy.taxeditor.application/OSGI-INF/l10n/plugin_de.properties | ||
---|---|---|
47 | 47 |
command.label.22 = Speichern |
48 | 48 |
command.label.23 = Datenbank Pr?ferenzen |
49 | 49 |
command.label.24 = Datenbank Reparatur Funktionalit?t |
50 |
command.label.25 = Import Pr?ferenzen |
|
50 | 51 |
product.name = EDIT Taxonomischer Editor |
51 | 52 |
command.name = Parser Hilfe |
52 | 53 |
command.name.0 = \u00dcber die EDIT Platform |
eu.etaxonomy.taxeditor.application/fragment.e4xmi | ||
---|---|---|
43 | 43 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_VgPDcB-IEeeIA_2gwq7JKg" elementId="org.eclipse.ui.main.menu.admin.dbrepair" label="%command.label.24" command="_LuEl0B-IEeeIA_2gwq7JKg"> |
44 | 44 |
<visibleWhen xsi:type="ui:CoreExpression" xmi:id="_06_ZIB-TEeeIA_2gwq7JKg" coreExpressionId="hasROLE_PROJECT_MANAGER_AND_isCdmStoreConnected"/> |
45 | 45 |
</children> |
46 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_E80JgCaQEeeO2YpaECSmsg" elementId="org.eclipse.ui.main.menu.admin.import_preferences" label="Import Preferences"/> |
|
46 | 47 |
</children> |
47 | 48 |
<children xsi:type="menu:Menu" xmi:id="_MG8QUB6tEeePLJ5to5QrXQ" elementId="org.eclipse.ui.main.menu.help" label="%menu.label.2"> |
48 | 49 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_6vgg4B6gEeePLJ5to5QrXQ" elementId="id.commandlabel16" label="%command.label.16" command="_ye6jsB6gEeePLJ5to5QrXQ"/> |
... | ... | |
55 | 56 |
<elements xsi:type="commands:Handler" xmi:id="_3wxe4B6gEeePLJ5to5QrXQ" elementId="eu.etaxonomy.taxeditor.OpenExternalParserHelpHandler" contributionURI="bundleclass://eu.etaxonomy.taxeditor.application/eu.etaxonomy.taxeditor.OpenExternalParserHelpHandler" command="_ye6jsB6gEeePLJ5to5QrXQ"/> |
56 | 57 |
<elements xsi:type="commands:Handler" xmi:id="_cwy_oB-LEeeIA_2gwq7JKg" elementId="eu.etaxonomy.taxeditor.handler.OpenDatabaseRepairWizardHandler" contributionURI="bundleclass://eu.etaxonomy.taxeditor.store/eu.etaxonomy.taxeditor.handler.OpenDatabaseRepairWizardHandler" command="_LuEl0B-IEeeIA_2gwq7JKg"/> |
57 | 58 |
<elements xsi:type="commands:Handler" xmi:id="_pZ84gB-LEeeIA_2gwq7JKg" elementId="eu.etaxonomy.taxeditor.handler.OpenDatabasePreferencesWizardHandler" contributionURI="bundleclass://eu.etaxonomy.taxeditor.store/eu.etaxonomy.taxeditor.handler.OpenDatabasePreferencesWizardHandler" command="_JXXNIB-IEeeIA_2gwq7JKg"/> |
59 |
<elements xsi:type="commands:Handler" xmi:id="_fAnCkCaQEeeO2YpaECSmsg" elementId="eu.etaxonomy.taxeditor.handler.OpenImportPreferenceHandler" contributionURI="bundleclass://eu.etaxonomy.taxeditor.store/target.classes.eu.etaxonomy.taxeditor.handler.OpenImportPreferenceHandler" command="_q1JAkCaQEeeO2YpaECSmsg"/> |
|
58 | 60 |
</fragments> |
59 | 61 |
<fragments xsi:type="fragment:StringModelFragment" xmi:id="_1jM6sB4JEeehWtOSgLepjA" featurename="commands" parentElementId="org.eclipse.e4.legacy.ide.application"> |
60 | 62 |
<elements xsi:type="commands:Command" xmi:id="_V9LTcB6eEeePLJ5to5QrXQ" elementId="eu.etaxonomy.taxeditor.application.help.aboutPlatform" commandName="%command.name.0"/> |
... | ... | |
76 | 78 |
<elements xsi:type="commands:Command" xmi:id="_hooiQB7QEeeC-JvycL9ysA" elementId="org.eclipse.ui.newWizard" commandName="%command.label.21"/> |
77 | 79 |
<elements xsi:type="commands:Command" xmi:id="_JXXNIB-IEeeIA_2gwq7JKg" elementId="eu.etaxonomy.taxeditor.application.DatabaseSettings" commandName="%command.label.23"/> |
78 | 80 |
<elements xsi:type="commands:Command" xmi:id="_LuEl0B-IEeeIA_2gwq7JKg" elementId="eu.etaxonomy.taxeditor.application.DatabaseRepairFunctionality" commandName="%command.label.24"/> |
81 |
<elements xsi:type="commands:Command" xmi:id="_q1JAkCaQEeeO2YpaECSmsg" elementId="eu.etaxonomy.taxeditor.application.ImportSettings" commandName="%command.label.25"/> |
|
79 | 82 |
</fragments> |
80 | 83 |
<fragments xsi:type="fragment:StringModelFragment" xmi:id="_nOhPoB9zEeeIA_2gwq7JKg" featurename="trimContributions" parentElementId="org.eclipse.e4.legacy.ide.application"> |
81 | 84 |
<elements xsi:type="menu:TrimContribution" xmi:id="_FIbzwB92EeeIA_2gwq7JKg" elementId="eu.etaxonomy.taxeditor.application.trimcontribution.0" parentId="org.eclipse.ui.main.toolbar" positionInParent="after=additions"> |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/AbcdImportConfiguratorWizardPage.java | ||
---|---|---|
9 | 9 |
|
10 | 10 |
package eu.etaxonomy.taxeditor.io.wizard; |
11 | 11 |
|
12 |
import java.net.URI; |
|
13 |
import java.util.ArrayList; |
|
14 |
import java.util.List; |
|
15 |
|
|
12 | 16 |
import org.eclipse.jface.wizard.WizardPage; |
13 | 17 |
import org.eclipse.swt.SWT; |
14 | 18 |
import org.eclipse.swt.events.SelectionAdapter; |
... | ... | |
18 | 22 |
import org.eclipse.swt.widgets.Composite; |
19 | 23 |
|
20 | 24 |
import eu.etaxonomy.cdm.io.specimen.abcd206.in.Abcd206ImportConfigurator; |
25 |
import eu.etaxonomy.taxeditor.databaseAdmin.wizard.ListComponent; |
|
21 | 26 |
|
22 | 27 |
/** |
23 | 28 |
* |
... | ... | |
30 | 35 |
|
31 | 36 |
private Abcd206ImportConfigurator configurator; |
32 | 37 |
|
38 |
private List<URI> biocaseProvider = new ArrayList<>(); |
|
39 |
|
|
40 |
private boolean isPreferencePage = false; |
|
41 |
|
|
33 | 42 |
protected AbcdImportConfiguratorWizardPage(String title, String description, Abcd206ImportConfigurator configurator) { |
43 |
super(PAGE_NAME); |
|
44 |
this.configurator = configurator; |
|
45 |
setTitle(title); |
|
46 |
setDescription(description); |
|
47 |
} |
|
48 |
|
|
49 |
protected AbcdImportConfiguratorWizardPage(String title, String description, Abcd206ImportConfigurator configurator, boolean isPreferencePage) { |
|
34 | 50 |
super(PAGE_NAME); |
35 | 51 |
this.configurator = configurator; |
36 | 52 |
setTitle(title); |
37 | 53 |
setDescription(description); |
54 |
this.isPreferencePage = isPreferencePage; |
|
38 | 55 |
} |
39 | 56 |
|
40 | 57 |
public static AbcdImportConfiguratorWizardPage createPage(Abcd206ImportConfigurator configurator){ |
... | ... | |
42 | 59 |
"Tooltips will explain parameters in more detail", configurator); |
43 | 60 |
} |
44 | 61 |
|
62 |
public static AbcdImportConfiguratorWizardPage createPreferencePage(Abcd206ImportConfigurator configurator){ |
|
63 |
return new AbcdImportConfiguratorWizardPage("Configure import parameters", |
|
64 |
"Tooltips will explain parameters in more detail", configurator, true); |
|
65 |
} |
|
66 |
|
|
45 | 67 |
|
46 | 68 |
|
47 | 69 |
/** {@inheritDoc} */ |
... | ... | |
51 | 73 |
|
52 | 74 |
GridLayout gridLayout = new GridLayout(); |
53 | 75 |
composite.setLayout(gridLayout); |
76 |
if (isPreferencePage){ |
|
77 |
ListComponent list = new ListComponent(composite, composite.getStyle()); |
|
78 |
} |
|
54 | 79 |
|
55 | 80 |
Button checkBoxMediaSpecimen = new Button(composite, SWT.CHECK); |
56 | 81 |
checkBoxMediaSpecimen.setSelection(configurator.isAddMediaAsMediaSpecimen()); |
eu.etaxonomy.taxeditor.workbench/OSGI-INF/l10n/bundle.properties | ||
---|---|---|
31 | 31 |
command.label.22 = Save |
32 | 32 |
command.label.23 = Database Preferences |
33 | 33 |
command.label.24 = Database Repair Functionality |
34 |
command.label.25 = Import Preferences |
|
34 | 35 |
command.name = Parser Help |
35 | 36 |
command.name.0 = About the EDIT Platform |
eu.etaxonomy.taxeditor.workbench/OSGI-INF/l10n/bundle_de.properties | ||
---|---|---|
30 | 30 |
command.label.22 = Speichern |
31 | 31 |
command.label.23 = Datenbank Pr?ferenzen |
32 | 32 |
command.label.24 = Datenbank Reparatur Funktionalit?t |
33 |
command.label.25 = Import Pr?ferenzen |
|
33 | 34 |
command.name = Parser Hilfe |
34 | 35 |
command.name.0 = \u00dcber die EDIT Platform |
eu.etaxonomy.taxeditor.workbench/fragment.e4xmi | ||
---|---|---|
100 | 100 |
<elements xsi:type="commands:Command" xmi:id="_rSmScCQ8EeeKsvEah5BAoQ" elementId="eu.etaxonomy.taxeditor.update" commandName="%command.label.17"/> |
101 | 101 |
<elements xsi:type="commands:Command" xmi:id="_tmIbUCQ8EeeKsvEah5BAoQ" elementId="org.eclipse.ui.help.aboutAction" commandName="%command.label.19"/> |
102 | 102 |
<elements xsi:type="commands:Command" xmi:id="_koenACRAEeeKsvEah5BAoQ" elementId="eu.etaxonomy.taxeditor.install" commandName="%command.label.18"/> |
103 |
<elements xsi:type="commands:Command" xmi:id="_fdEqUCUKEeeHw5lTgGMs1Q" elementId="eu.etaxonomy.taxeditor.workbench.ImportSettings" commandName="%command.label.25"/> |
|
103 | 104 |
</fragments> |
104 | 105 |
<fragments xsi:type="fragment:StringModelFragment" xmi:id="_WLNcQCQsEeeq76l4saMAFQ" featurename="handlers" parentElementId="org.eclipse.e4.legacy.ide.application"> |
105 | 106 |
<elements xsi:type="commands:Handler" xmi:id="_WLNcQSQsEeeq76l4saMAFQ" elementId="eu.etaxonomy.taxeditor.OpenExternalAboutPlatformHandler" contributionURI="bundleclass://eu.etaxonomy.taxeditor.workbench/eu.etaxonomy.taxeditor.workbench.OpenExternalAboutPlatformHandler" command="_UZ2zYCQsEeeq76l4saMAFQ"/> |
... | ... | |
108 | 109 |
<elements xsi:type="commands:Handler" xmi:id="_WLNcRCQsEeeq76l4saMAFQ" elementId="eu.etaxonomy.taxeditor.handler.OpenDatabasePreferencesWizardHandler" contributionURI="bundleclass://eu.etaxonomy.taxeditor.store/eu.etaxonomy.taxeditor.handler.OpenDatabasePreferencesWizardHandler" command="_VawPsCQsEeeq76l4saMAFQ"/> |
109 | 110 |
<elements xsi:type="commands:Handler" xmi:id="_S6Rf4CRAEeeKsvEah5BAoQ" elementId="eu.etaxonomy.taxeditor.update.InstallNewSoftwareHandler" contributionURI="bundleclass://eu.etaxonomy.taxeditor.workbench/eu.etaxonomy.taxeditor.workbench.update.InstallNewSoftwareHandler" command="_koenACRAEeeKsvEah5BAoQ"/> |
110 | 111 |
<elements xsi:type="commands:Handler" xmi:id="_uzAhUCRAEeeKsvEah5BAoQ" elementId="eu.etaxonomy.taxeditor.update.UpdateHandler" contributionURI="bundleclass://eu.etaxonomy.taxeditor.workbench/eu.etaxonomy.taxeditor.workbench.update.UpdateHandler" command="_rSmScCQ8EeeKsvEah5BAoQ"/> |
112 |
<elements xsi:type="commands:Handler" xmi:id="_nSIiECUKEeeHw5lTgGMs1Q" elementId="eu.etaxonomy.taxeditor.handler.OpenImportPreferenceHandler" command="_fdEqUCUKEeeHw5lTgGMs1Q"/> |
|
111 | 113 |
</fragments> |
112 | 114 |
</fragment:ModelFragments> |
Also available in: Unified diff
try to add a new item to admin menu