ref #3658 remove nomenclatural code from datasources
authorAndreas Müller <a.mueller@bgbm.org>
Thu, 13 Oct 2016 13:31:44 +0000 (15:31 +0200)
committerAndreas Müller <a.mueller@bgbm.org>
Thu, 10 Nov 2016 12:50:45 +0000 (13:50 +0100)
eu.etaxonomy.taxeditor.store/OSGI-INF/l10n/messages.properties
eu.etaxonomy.taxeditor.store/OSGI-INF/l10n/messages_de.properties
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/Messages.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/datasource/CdmDataSourceLabelProvider.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/datasource/CdmDataSourceViewPart.java

index a56ca8310595b00e4eac79fe2a10219778eb9cd3..852c474b78a3ee81bcf1e751317a2fbed37caac9 100644 (file)
@@ -6,7 +6,6 @@ CdmDataSourceViewPart_2=Notes
 CdmDataSourceViewPart_3=Compatible
 CdmDataSourceViewPart_4=CDM Version
 CdmDataSourceViewPart_5=Created
-CdmDataSourceViewPart_6=Nomenclatural Code
 CdmDataSourceViewPart_7=Database
 CdmDataSourceViewPart_8=Type
 CdmDataSourceViewPart_9=Up
index bb3d7468302246978bc47e7f10ac81b521e3eea7..f906aa13bb65c7579b80a5c030dac448cf2c30d1 100644 (file)
@@ -6,7 +6,6 @@ CdmDataSourceViewPart_2=Notizen
 CdmDataSourceViewPart_3=Kompatibel
 CdmDataSourceViewPart_4=CDM Version
 CdmDataSourceViewPart_5=Erstellt
-CdmDataSourceViewPart_6=Nomenklaturcode
 CdmDataSourceViewPart_7=Datenquelle
 CdmDataSourceViewPart_8=Typ
 CdmDataSourceViewPart_9=Verf\u00FCgbar
index 48c0e4e9509ef238bc7d2bf77ff705ed8a7397bd..ed80b87bcf0c80914726c334e105911e9bd083fa 100644 (file)
@@ -40,7 +40,6 @@ public class Messages extends NLS {
     public static String CdmDataSourceViewPart_3;
     public static String CdmDataSourceViewPart_4;
     public static String CdmDataSourceViewPart_5;
-    public static String CdmDataSourceViewPart_6;
     public static String CdmDataSourceViewPart_7;
     public static String CdmDataSourceViewPart_8;
     public static String CdmDataSourceViewPart_9;
index 0a586c2cc84d76c2376d377cc5f23c425f502906..162610f073d59933fe8ea49bf3130c1bebbcb4d4 100644 (file)
@@ -71,17 +71,16 @@ public class CdmDataSourceLabelProvider extends LabelProvider implements ITableL
                                } else {
                                        return DatabaseTypeEnum.MySQL.getName();
                                }
-                       //TODO 6 was nomenclatural code, do we need to change following numbers?
-                       case 7:
+                       case 6:
                                return container.getMetaData(MetaDataPropertyName.DB_CREATE_DATE);
-                       case 8:
+                       case 7:
                                return container.getMetaData(MetaDataPropertyName.DB_SCHEMA_VERSION);
-                       case 9:
+                       case 8:
                                if(container.getMetaDataMap().get(MetaDataPropertyName.DB_SCHEMA_VERSION) != null){
                                        return container.isDataSourceCompatible() ? "Yes" : "No";
                                }
                                break;
-                       case 10:
+                       case 9:
                                return container.getMetaData(MetaDataPropertyName.DB_CREATE_NOTE);
                }
                return CdmMetaDataAwareDataSourceContainer.DEFAULT_ENTRY;
index d82b2eccc6384bae536d569216c48d84b126773f..e806667dfd5239d4cdd6bcea3139186cb85e4749 100644 (file)
@@ -50,7 +50,6 @@ import eu.etaxonomy.taxeditor.store.CdmStore;
  *
  * @author n.hoffmann
  * @created 14.04.2009
- * @version 1.0
  */
 public class CdmDataSourceViewPart extends ViewPart{
 
@@ -208,8 +207,8 @@ public class CdmDataSourceViewPart extends ViewPart{
        // This will create the columns for the table
        private void createColumns(TableViewer viewer) {
                Table table = viewer.getTable();
-               String[] titles = {Messages.CdmDataSourceViewPart_12, Messages.CdmDataSourceViewPart_11, Messages.CdmDataSourceViewPart_10, Messages.CdmDataSourceViewPart_9, Messages.CdmDataSourceViewPart_8, Messages.CdmDataSourceViewPart_7, Messages.CdmDataSourceViewPart_6, Messages.CdmDataSourceViewPart_5, Messages.CdmDataSourceViewPart_4, Messages.CdmDataSourceViewPart_3, Messages.CdmDataSourceViewPart_2};
-               int[] bounds = { 24, 200, 100, 50 , 80, 120, 50, 100, 100, 50, 300};
+               String[] titles = {Messages.CdmDataSourceViewPart_12, Messages.CdmDataSourceViewPart_11, Messages.CdmDataSourceViewPart_10, Messages.CdmDataSourceViewPart_9, Messages.CdmDataSourceViewPart_8, Messages.CdmDataSourceViewPart_7, Messages.CdmDataSourceViewPart_5, Messages.CdmDataSourceViewPart_4, Messages.CdmDataSourceViewPart_3, Messages.CdmDataSourceViewPart_2};
+               int[] bounds = { 24, 200, 100, 50 , 80, 120, 100, 100, 50, 300};
 
                for (int i = 0; i < titles.length; i++) {
                        TableViewerColumn column = new TableViewerColumn(viewer, SWT.NONE);