perspective.name.0 = Polytomous Key\r
perspective.name.1 = Uses\r
perspective.name.2 = Derivatives\r
+perspective.name.3 = Checklist\r
menu.label = General\r
menu.label.0 = Edit\r
menu.label.1 = Window\r
menu.label.2 = Help\r
menu.label.3 = New\r
+menu.label.4 = Admin\r
command.label = Close\r
command.label.0 = Close All\r
command.label.1 = Save\r
command.label.20 = About the EDIT Platform\r
command.label.21 = New\r
command.label.22 = Save\r
+command.label.23 = Database Preferences\r
product.name = EDIT Taxonomic Editor\r
command.name = Parser Help\r
command.name.0 = About the EDIT Platform\r
perspective.name.0 = Polytomer Schlüssel
perspective.name.1 = Nutzung
perspective.name.2 = Derivate
+perspective.name.3 = Checklisten
menu.label = Datei
menu.label.0 = Bearbeiten
menu.label.1 = Extras
menu.label.2 = Hilfe
menu.label.3 = Neu
+menu.label.4 = Admin
command.label = Schlie\u00dfen
command.label.0 = Schlie\u00dfe alle
command.label.1 = Speichern
command.label.20 = \u00dcber die EDIT Platform
command.label.21 = Neu
command.label.22 = Speichern
+command.label.23 = Datenbank Präferenzen
product.name = EDIT Taxonomischer Editor
command.name = Parser Hilfe
command.name.0 = \u00dcber die EDIT Platform
class="eu.etaxonomy.taxeditor.perspective.ChecklistPerspective"
icon="icons/check.png"
id="eu.etaxonomy.taxeditor.perspective.checklistperspective"
- name="Checklist">
+ name="%perspective.name.3">
</perspective>
</extension>
</menu>
<menu
id="org.eclipse.ui.main.menu.admin"
- label="Admin">
+ label="%menu.label.4">
</menu>
</menuContribution>
<menuContribution
locationURI="menu:org.eclipse.ui.main.menu.admin">
<command
commandId="eu.etaxonomy.taxeditor.application.DatabaseSettings"
- label="Database Preferences"
+ label="%command.label.23"
style="push">
+ <visibleWhen
+ checkEnabled="true">
+ <and>
+ <reference
+ definitionId="hasROLE_PROJECT_MANAGER">
+ </reference>
+ <reference
+ definitionId="isCdmStoreConnected">
+ </reference>
+ </and>
+ </visibleWhen>
</command>
</menuContribution>
</extension>
id="eu.etaxonomy.taxeditor.install"
name="%command.label.18">
</command>
- <command
- defaultHandler="eu.etaxonomy.taxeditor.handler.OpenDatabasePreferencesWizardHandler"
- id="eu.etaxonomy.taxeditor.application.DatabaseSettings"
- name="databaseSettings">
-
- </command>
</extension>
public void postWindowOpen() {
PreferencesUtil.checkNomenclaturalCode();
-
-
if(PreferencesUtil.shouldConnectAtStartUp()) {
CdmStore.connect();
}
command.name.13 = delete\r
command.name.14 = delete\r
command.name.15 = Open\r
+command.name.16 = Database Preferences\r
view.name.SESSIONS = Sessions\r
command.label.SESSION = Sessions\r
command.label.CONNECT = Connect\r
command.name.13 = L\u00f6schen
command.name.14 = L\u00f6schen
command.name.15 = \u00d6ffnen
+command.name.16 = Datenbank Präferenzen
+
view.name.SESSIONS = Sessions
command.label.SESSION = Sessions
command.label.CONNECT = Verbinden
ChangeConnectionHandler_ALREADY_CONNECTING=Datenmodell wird erstellt
ChangeConnectionHandler_CURRENTLY_CONNECTING_ALREADY=Es wird schon das Datenmodell für eine Datenquelle erstellt
-ChangeConnectionHandler_DATASOURCE_NOT_AVAILABLE=Gewählte Datenquelle nicht verfügbar
+ChangeConnectionHandler_DATASOURCE_NOT_AVAILABLE=Gewählte Datenquelle ist nicht verfügbar
ChangeConnectionHandler_NOT_AVAILABLE_REASONS=Eventuell ist der Server nicht verfügbar oder erreichbar.\n\nStellen Sie bitte auch sicher, dass sie Netzzugang haben, wenn sie sich zu einer Remote-Datenquelle verbinden.
ChangeConnectionHandler_CREATE_DATAMODEL=Datenmodell erstellen
ChangeConnectionHandler_REALLY_CREATE_DATAMODEL=Wollen sie wirklich das Datenmodell für %s erstellen?\n\nACHTUNG: Existierende Daten werden gelöscht!\n\nHinweis: Die Erstellung kann einige Zeit dauern.
<handler
class="eu.etaxonomy.taxeditor.handler.OpenDatabasePreferencesWizardHandler"
commandId="eu.etaxonomy.taxeditor.store.open.OpenDatabasePreferencesWizardHandler">
+ <activeWhen>
+ <reference
+ definitionId="hasROLE_PROJECT_MANAGER">
+ </reference>
+ </activeWhen>
</handler>
<handler
class="eu.etaxonomy.taxeditor.handler.SwitchUserHandler"
id="eu.etaxonomy.taxeditor.store.open.OpenDistributionEditorWizardHandler"
name="%command.name.11">
</command>
+ <command
+ id="eu.etaxonomy.taxeditor.store.open.OpenDatabasePreferencesWizardHandler"
+ name="%command.name.15">
+ </command>
+
<command
defaultHandler="eu.etaxonomy.taxeditor.view.datasource.handler.ChangeConnectionHandler"
id="eu.etaxonomy.taxeditor.datasource.connect"
typeId="eu.etaxonomy.taxeditor.uuidParameterType">
</commandParameter>
</command>
+ <command
+ defaultHandler="eu.etaxonomy.taxeditor.handler.OpenDatabasePreferencesWizardHandler"
+ id="eu.etaxonomy.taxeditor.application.DatabaseSettings"
+ name="%command.label.23">
+ </command>
</extension>
<extension
point="org.eclipse.ui.commands">
.warningDialog(
"The datasource is not available",
source,
- "The choosen datasource is not available, please contact the administrator.");
+ "The editor is not connected to a datasource. Maybe the datasource is not available.");
}
*
* @return a {@link eu.etaxonomy.taxeditor.store.CdmStore} object.
*/
- protected static CdmStore getDefault() {
+ protected static CdmStore getDefault(boolean connecting){
if (instance != null && instance.isConnected) {
return instance;
} else{// if (instance == null || !instance.isConnected) {
-
- MessagingUtils.dataSourceNotAvailableWarningDialog(instance);
+ if (connecting){
+ MessagingUtils.dataSourceNotAvailableWarningDialog(instance);
+ }else{
+ MessagingUtils.noDataSourceWarningDialog(instance);
+ }
return null;
}
}
+ /**
+ * <p>
+ * getDefault
+ * </p>
+ *
+ * @return a {@link eu.etaxonomy.taxeditor.store.CdmStore} object.
+ */
+ protected static CdmStore getDefault(){
+ return getDefault(false);
+ }
/**
* Initialize the with the last edited datasource
if(isActive()) {
// before we connect we clear the entity caches and the sessions
CdmRemoteCacheManager.removeEntityCaches();
- if(getCurrentSessionManager() != null) {
- getCurrentSessionManager().disposeAll();
+ if(getCurrentSessionManager(true) != null) {
+ getCurrentSessionManager(true).disposeAll();
}
}
MessagingUtils.info("Connecting to datasource: " + cdmSource);
return mockCdmEntitySessionManager;
}
}
-
public static ICdmEntitySessionManager getCurrentSessionManager() {
- if (getDefault() != null) {
- return getDefault().getSessionManager();
+ return getCurrentSessionManager(false);
+ }
+
+
+ public static ICdmEntitySessionManager getCurrentSessionManager(boolean connecting) {
+ if (getDefault(connecting) != null) {
+ return getDefault(connecting).getSessionManager();
}
return null;