Revision: 5078
          http://sourceforge.net/p/jump-pilot/code/5078
Author:   michaudm
Date:     2016-10-15 13:21:21 +0000 (Sat, 15 Oct 2016)
Log Message:
-----------
Internationalization of selection synchronization option

Modified Paths:
--------------
    core/trunk/src/com/vividsolutions/jump/workbench/ui/AttributeTablePanel.java
    core/trunk/src/language/jump.properties
    core/trunk/src/language/jump_cz.properties
    core/trunk/src/language/jump_de.properties
    core/trunk/src/language/jump_es.properties
    core/trunk/src/language/jump_fi.properties
    core/trunk/src/language/jump_fr.properties
    core/trunk/src/language/jump_hu.properties
    core/trunk/src/language/jump_it.properties
    core/trunk/src/language/jump_ja_JP.properties
    core/trunk/src/language/jump_ml.properties
    core/trunk/src/language/jump_pt.properties
    core/trunk/src/language/jump_pt_BR.properties
    core/trunk/src/language/jump_ta_IN.properties
    core/trunk/src/language/jump_te.properties
    core/trunk/src/language/jump_zh_CN.properties
    core/trunk/src/language/jump_zh_HK.properties
    core/trunk/src/org/openjump/core/ui/plugin/view/ViewOptionsPlugIn.java

Modified: 
core/trunk/src/com/vividsolutions/jump/workbench/ui/AttributeTablePanel.java
===================================================================
--- 
core/trunk/src/com/vividsolutions/jump/workbench/ui/AttributeTablePanel.java    
    2016-10-15 11:18:13 UTC (rev 5077)
+++ 
core/trunk/src/com/vividsolutions/jump/workbench/ui/AttributeTablePanel.java    
    2016-10-15 13:21:21 UTC (rev 5078)
@@ -74,7 +74,7 @@
         */
        private static final String ATTRIBUTE_COLUMNS_WIDTH_MAP = 
"AttributeColumnsWidthMap";
     private static final String DATE_FORMAT_KEY = 
ViewOptionsPlugIn.DATE_FORMAT_KEY;
-    private static final String SELECTION_SYNC_KEY = 
ViewOptionsPlugIn.SELECTION_SYNCHRONIZATION_KEY;
+    private static final String SELECTION_SYNC_KEY = 
ViewOptionsPlugIn.SELECTION_SYNC_KEY;
 
     private static SimpleDateFormat DEFAULT_DATE_FORMAT = new 
SimpleDateFormat("yyyy-MM-dd HH:mm:ss.sss");
 
@@ -833,8 +833,8 @@
       }
       // loop over table cols and restore if entry found
       for (int i = 0; i < columnModel.getColumnCount(); i++) {
-        Integer savedWidth = (Integer) 
columnsWidthMap.get(columnModel.getColumn(
-            i).getHeaderValue());
+        Integer savedWidth = columnsWidthMap.get(columnModel.getColumn(i)
+                .getHeaderValue());
         Integer curWidth = columnModel.getColumn(i).getWidth();
         // get or add new entry, override signal user resizes
         if (savedWidth != null && !override)
@@ -989,9 +989,8 @@
         if (getModel().getRowCount() == 0) {
                return selectedFeatures;
         }
-        int[] selectedRows = table.getSelectedRows();
-        for (int i = 0; i < selectedRows.length; i++) {
-            selectedFeatures.add(getModel().getFeature(selectedRows[i]));
+        for (int index : table.getSelectedRows()) {
+            selectedFeatures.add(getModel().getFeature(index));
         }
         return selectedFeatures;
     }
@@ -1015,7 +1014,6 @@
         boolean sync = syncObject != null && 
Boolean.parseBoolean(syncObject.toString());
         if (!sync) return;
 
-        int[] selectedRows = table.getSelectedRows();
         // After selectedRows have been memorized, clear the layer selection,
         // other wise OpenJUMP will add the selectedRows to the already 
selected features
         
//PersistentBlackboardPlugIn.get(workbenchContext).put(SELECTION_SYNC_KEY, 
false);
@@ -1023,8 +1021,8 @@
         
//PersistentBlackboardPlugIn.get(workbenchContext).put(SELECTION_SYNC_KEY, 
sync);
 
         Map<Feature,List<Geometry>> map = new HashMap<>();
-        for (int j = 0; j < selectedRows.length; j++) {
-            Feature feature = getModel().getFeature(selectedRows[j]);
+        for (int index : table.getSelectedRows()) {
+            Feature feature = getModel().getFeature(index);
             map.put(feature, Collections.singletonList(feature.getGeometry()));
         }
         workbenchContext
@@ -1084,7 +1082,7 @@
                 //selectionModel.setFireSelectionReplaced(false);
 
                 PersistentBlackboardPlugIn.get(workbenchContext)
-                        .put(ViewOptionsPlugIn.SELECTION_SYNCHRONIZATION_KEY, 
false);
+                        .put(ViewOptionsPlugIn.SELECTION_SYNC_KEY, false);
                 attributeTablePanel.table.clearSelection();
                 //if (selection.size() == 0) {
                 //    selectionModel.setFireSelectionReplaced(sync);
@@ -1144,7 +1142,7 @@
             } finally {
                 //selectionModel.setFireSelectionReplaced(sync);
                 PersistentBlackboardPlugIn.get(workbenchContext)
-                        .put(ViewOptionsPlugIn.SELECTION_SYNCHRONIZATION_KEY, 
sync);
+                        .put(ViewOptionsPlugIn.SELECTION_SYNC_KEY, sync);
             }
         }
 

Modified: core/trunk/src/language/jump.properties
===================================================================
--- core/trunk/src/language/jump.properties     2016-10-15 11:18:13 UTC (rev 
5077)
+++ core/trunk/src/language/jump.properties     2016-10-15 13:21:21 UTC (rev 
5078)
@@ -1684,7 +1684,10 @@
 org.openjump.core.ui.plugin.view.ShowFullPathPlugIn.NumberSelected = Number 
Selected\:
 org.openjump.core.ui.plugin.view.ShowScalePlugIn = Scale Display
 org.openjump.core.ui.plugin.view.ViewOptionsPlugIn = View Options
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Attributes-format-in-attribute-table
 = Attributes Format in Attribute Table
 org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Date-format = Date format
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Selection-synchronization = 
Synchronization of Selection between the Attribute Table and the Map
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Synchronize = Synchronize
 
org.openjump.core.ui.plugin.view.ZoomToScalePlugIn.actual-scale-in-horizontal-direction
 = Actual Scale in Horizontal Direction
 org.openjump.core.ui.plugin.view.ZoomToScalePlugIn.scale = scale
 org.openjump.core.ui.plugin.view.ZoomToScalePlugIn.set-new-scale-to-zoom = Set 
New Scale to Zoom

Modified: core/trunk/src/language/jump_cz.properties
===================================================================
--- core/trunk/src/language/jump_cz.properties  2016-10-15 11:18:13 UTC (rev 
5077)
+++ core/trunk/src/language/jump_cz.properties  2016-10-15 13:21:21 UTC (rev 
5078)
@@ -2716,4 +2716,7 @@
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.make-read-only-layer-editable=#T:Make
 a read-only layer editable
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.detach-layer-from-source-1=#T:Layer
 {0} has a non-writable datasource.
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.detach-layer-from-source-2=#T:Detach
 the source from the layer to make the later editable.
-ui.EditOptionsPanel.single-editable-layer=#T:Limited to a single editable layer
\ No newline at end of file
+ui.EditOptionsPanel.single-editable-layer=#T:Limited to a single editable layer
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Attributes-format-in-attribute-table=#T:Attributes
 Format in Attribute Table
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Selection-synchronization=#T:Synchronization
 of Selection between the Attribute Table and the Map
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Synchronize=#T:Synchronize
\ No newline at end of file

Modified: core/trunk/src/language/jump_de.properties
===================================================================
--- core/trunk/src/language/jump_de.properties  2016-10-15 11:18:13 UTC (rev 
5077)
+++ core/trunk/src/language/jump_de.properties  2016-10-15 13:21:21 UTC (rev 
5078)
@@ -2712,4 +2712,7 @@
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.make-read-only-layer-editable=#T:Make
 a read-only layer editable
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.detach-layer-from-source-1=#T:Layer
 {0} has a non-writable datasource.
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.detach-layer-from-source-2=#T:Detach
 the source from the layer to make the later editable.
-ui.EditOptionsPanel.single-editable-layer=#T:Limited to a single editable layer
\ No newline at end of file
+ui.EditOptionsPanel.single-editable-layer=#T:Limited to a single editable layer
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Attributes-format-in-attribute-table=#T:Attributes
 Format in Attribute Table
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Selection-synchronization=#T:Synchronization
 of Selection between the Attribute Table and the Map
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Synchronize=#T:Synchronize
\ No newline at end of file

Modified: core/trunk/src/language/jump_es.properties
===================================================================
--- core/trunk/src/language/jump_es.properties  2016-10-15 11:18:13 UTC (rev 
5077)
+++ core/trunk/src/language/jump_es.properties  2016-10-15 13:21:21 UTC (rev 
5078)
@@ -2695,4 +2695,7 @@
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.make-read-only-layer-editable=#T:Make
 a read-only layer editable
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.detach-layer-from-source-1=#T:Layer
 {0} has a non-writable datasource.
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.detach-layer-from-source-2=#T:Detach
 the source from the layer to make the later editable.
-ui.EditOptionsPanel.single-editable-layer=#T:Limited to a single editable layer
\ No newline at end of file
+ui.EditOptionsPanel.single-editable-layer=#T:Limited to a single editable layer
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Attributes-format-in-attribute-table=#T:Attributes
 Format in Attribute Table
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Selection-synchronization=#T:Synchronization
 of Selection between the Attribute Table and the Map
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Synchronize=#T:Synchronize
\ No newline at end of file

Modified: core/trunk/src/language/jump_fi.properties
===================================================================
--- core/trunk/src/language/jump_fi.properties  2016-10-15 11:18:13 UTC (rev 
5077)
+++ core/trunk/src/language/jump_fi.properties  2016-10-15 13:21:21 UTC (rev 
5078)
@@ -2689,4 +2689,7 @@
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.make-read-only-layer-editable=#T:Make
 a read-only layer editable
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.detach-layer-from-source-1=#T:Layer
 {0} has a non-writable datasource.
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.detach-layer-from-source-2=#T:Detach
 the source from the layer to make the later editable.
-ui.EditOptionsPanel.single-editable-layer=#T:Limited to a single editable layer
\ No newline at end of file
+ui.EditOptionsPanel.single-editable-layer=#T:Limited to a single editable layer
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Attributes-format-in-attribute-table=#T:Attributes
 Format in Attribute Table
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Selection-synchronization=#T:Synchronization
 of Selection between the Attribute Table and the Map
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Synchronize=#T:Synchronize
\ No newline at end of file

Modified: core/trunk/src/language/jump_fr.properties
===================================================================
--- core/trunk/src/language/jump_fr.properties  2016-10-15 11:18:13 UTC (rev 
5077)
+++ core/trunk/src/language/jump_fr.properties  2016-10-15 13:21:21 UTC (rev 
5078)
@@ -1497,6 +1497,7 @@
 org.openjump.core.ui.plugin.view.ShowScalePlugIn = \u00c9chelle d'affichage
 org.openjump.core.ui.plugin.view.ViewOptionsPlugIn = Affichage
 org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Date-format = Format des 
dates
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Selection-synchronization = 
Synchronisation de la s\xE9lection entre la table attributaire et la carte
 
org.openjump.core.ui.plugin.view.ZoomToScalePlugIn.actual-scale-in-horizontal-direction
 = Echelle horizontale courante
 org.openjump.core.ui.plugin.view.ZoomToScalePlugIn.scale = \u00e9chelle
 org.openjump.core.ui.plugin.view.ZoomToScalePlugIn.set-new-scale-to-zoom = 
Entrer la nouvelle \u00e9chelle
@@ -2719,4 +2720,6 @@
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.make-read-only-layer-editable=Rendre
 une couche en lecture seule modifiable
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.detach-layer-from-source-1=La
 source de la couche {0} est en lecture seule.
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.detach-layer-from-source-2=D\xE9tacher
 la source de la couche pour rendre cette derni\xE8re modifiable.
-ui.EditOptionsPanel.single-editable-layer=Limiter \xE0 une seule couche 
modifiable
\ No newline at end of file
+ui.EditOptionsPanel.single-editable-layer=Limiter \xE0 une seule couche 
modifiable
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Attributes-format-in-attribute-table=Format
 des attributs dans la table attributaire
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Synchronize=Synchroniser
\ No newline at end of file

Modified: core/trunk/src/language/jump_hu.properties
===================================================================
--- core/trunk/src/language/jump_hu.properties  2016-10-15 11:18:13 UTC (rev 
5077)
+++ core/trunk/src/language/jump_hu.properties  2016-10-15 13:21:21 UTC (rev 
5078)
@@ -2712,4 +2712,7 @@
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.make-read-only-layer-editable=#T:Make
 a read-only layer editable
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.detach-layer-from-source-1=#T:Layer
 {0} has a non-writable datasource.
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.detach-layer-from-source-2=#T:Detach
 the source from the layer to make the later editable.
-ui.EditOptionsPanel.single-editable-layer=#T:Limited to a single editable layer
\ No newline at end of file
+ui.EditOptionsPanel.single-editable-layer=#T:Limited to a single editable layer
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Attributes-format-in-attribute-table=#T:Attributes
 Format in Attribute Table
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Selection-synchronization=#T:Synchronization
 of Selection between the Attribute Table and the Map
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Synchronize=#T:Synchronize
\ No newline at end of file

Modified: core/trunk/src/language/jump_it.properties
===================================================================
--- core/trunk/src/language/jump_it.properties  2016-10-15 11:18:13 UTC (rev 
5077)
+++ core/trunk/src/language/jump_it.properties  2016-10-15 13:21:21 UTC (rev 
5078)
@@ -2696,3 +2696,6 @@
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.detach-layer-from-source-1=Il
 livello {0} ha dati origine no riscrivibili.
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.detach-layer-from-source-2=Sgancia
 l'origine dal livello per rendere quest'ultimo modificabile.
 ui.EditOptionsPanel.single-editable-layer=Limita edizione ad un livello singolo
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Attributes-format-in-attribute-table=#T:Attributes
 Format in Attribute Table
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Selection-synchronization=#T:Synchronization
 of Selection between the Attribute Table and the Map
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Synchronize=#T:Synchronize

Modified: core/trunk/src/language/jump_ja_JP.properties
===================================================================
--- core/trunk/src/language/jump_ja_JP.properties       2016-10-15 11:18:13 UTC 
(rev 5077)
+++ core/trunk/src/language/jump_ja_JP.properties       2016-10-15 13:21:21 UTC 
(rev 5078)
@@ -2714,4 +2714,7 @@
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.make-read-only-layer-editable=#T:Make
 a read-only layer editable
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.detach-layer-from-source-1=#T:Layer
 {0} has a non-writable datasource.
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.detach-layer-from-source-2=#T:Detach
 the source from the layer to make the later editable.
-ui.EditOptionsPanel.single-editable-layer=#T:Limited to a single editable layer
\ No newline at end of file
+ui.EditOptionsPanel.single-editable-layer=#T:Limited to a single editable layer
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Attributes-format-in-attribute-table=#T:Attributes
 Format in Attribute Table
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Selection-synchronization=#T:Synchronization
 of Selection between the Attribute Table and the Map
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Synchronize=#T:Synchronize
\ No newline at end of file

Modified: core/trunk/src/language/jump_ml.properties
===================================================================
--- core/trunk/src/language/jump_ml.properties  2016-10-15 11:18:13 UTC (rev 
5077)
+++ core/trunk/src/language/jump_ml.properties  2016-10-15 13:21:21 UTC (rev 
5078)
@@ -3985,4 +3985,7 @@
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.make-read-only-layer-editable=#T:Make
 a read-only layer editable
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.detach-layer-from-source-1=#T:Layer
 {0} has a non-writable datasource.
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.detach-layer-from-source-2=#T:Detach
 the source from the layer to make the later editable.
-ui.EditOptionsPanel.single-editable-layer=#T:Limited to a single editable layer
\ No newline at end of file
+ui.EditOptionsPanel.single-editable-layer=#T:Limited to a single editable layer
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Attributes-format-in-attribute-table=#T:Attributes
 Format in Attribute Table
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Selection-synchronization=#T:Synchronization
 of Selection between the Attribute Table and the Map
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Synchronize=#T:Synchronize
\ No newline at end of file

Modified: core/trunk/src/language/jump_pt.properties
===================================================================
--- core/trunk/src/language/jump_pt.properties  2016-10-15 11:18:13 UTC (rev 
5077)
+++ core/trunk/src/language/jump_pt.properties  2016-10-15 13:21:21 UTC (rev 
5078)
@@ -2710,4 +2710,7 @@
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.make-read-only-layer-editable=#T:Make
 a read-only layer editable
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.detach-layer-from-source-1=#T:Layer
 {0} has a non-writable datasource.
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.detach-layer-from-source-2=#T:Detach
 the source from the layer to make the later editable.
-ui.EditOptionsPanel.single-editable-layer=#T:Limited to a single editable layer
\ No newline at end of file
+ui.EditOptionsPanel.single-editable-layer=#T:Limited to a single editable layer
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Attributes-format-in-attribute-table=#T:Attributes
 Format in Attribute Table
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Selection-synchronization=#T:Synchronization
 of Selection between the Attribute Table and the Map
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Synchronize=#T:Synchronize
\ No newline at end of file

Modified: core/trunk/src/language/jump_pt_BR.properties
===================================================================
--- core/trunk/src/language/jump_pt_BR.properties       2016-10-15 11:18:13 UTC 
(rev 5077)
+++ core/trunk/src/language/jump_pt_BR.properties       2016-10-15 13:21:21 UTC 
(rev 5078)
@@ -2711,4 +2711,7 @@
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.make-read-only-layer-editable=#T:Make
 a read-only layer editable
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.detach-layer-from-source-1=#T:Layer
 {0} has a non-writable datasource.
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.detach-layer-from-source-2=#T:Detach
 the source from the layer to make the later editable.
-ui.EditOptionsPanel.single-editable-layer=#T:Limited to a single editable layer
\ No newline at end of file
+ui.EditOptionsPanel.single-editable-layer=#T:Limited to a single editable layer
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Attributes-format-in-attribute-table=#T:Attributes
 Format in Attribute Table
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Selection-synchronization=#T:Synchronization
 of Selection between the Attribute Table and the Map
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Synchronize=#T:Synchronize
\ No newline at end of file

Modified: core/trunk/src/language/jump_ta_IN.properties
===================================================================
--- core/trunk/src/language/jump_ta_IN.properties       2016-10-15 11:18:13 UTC 
(rev 5077)
+++ core/trunk/src/language/jump_ta_IN.properties       2016-10-15 13:21:21 UTC 
(rev 5078)
@@ -2713,4 +2713,7 @@
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.make-read-only-layer-editable=#T:Make
 a read-only layer editable
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.detach-layer-from-source-1=#T:Layer
 {0} has a non-writable datasource.
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.detach-layer-from-source-2=#T:Detach
 the source from the layer to make the later editable.
-ui.EditOptionsPanel.single-editable-layer=#T:Limited to a single editable layer
\ No newline at end of file
+ui.EditOptionsPanel.single-editable-layer=#T:Limited to a single editable layer
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Attributes-format-in-attribute-table=#T:Attributes
 Format in Attribute Table
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Selection-synchronization=#T:Synchronization
 of Selection between the Attribute Table and the Map
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Synchronize=#T:Synchronize
\ No newline at end of file

Modified: core/trunk/src/language/jump_te.properties
===================================================================
--- core/trunk/src/language/jump_te.properties  2016-10-15 11:18:13 UTC (rev 
5077)
+++ core/trunk/src/language/jump_te.properties  2016-10-15 13:21:21 UTC (rev 
5078)
@@ -3219,4 +3219,7 @@
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.make-read-only-layer-editable=#T:Make
 a read-only layer editable
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.detach-layer-from-source-1=#T:Layer
 {0} has a non-writable datasource.
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.detach-layer-from-source-2=#T:Detach
 the source from the layer to make the later editable.
-ui.EditOptionsPanel.single-editable-layer=#T:Limited to a single editable layer
\ No newline at end of file
+ui.EditOptionsPanel.single-editable-layer=#T:Limited to a single editable layer
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Attributes-format-in-attribute-table=#T:Attributes
 Format in Attribute Table
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Selection-synchronization=#T:Synchronization
 of Selection between the Attribute Table and the Map
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Synchronize=#T:Synchronize
\ No newline at end of file

Modified: core/trunk/src/language/jump_zh_CN.properties
===================================================================
--- core/trunk/src/language/jump_zh_CN.properties       2016-10-15 11:18:13 UTC 
(rev 5077)
+++ core/trunk/src/language/jump_zh_CN.properties       2016-10-15 13:21:21 UTC 
(rev 5078)
@@ -2874,4 +2874,7 @@
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.make-read-only-layer-editable=#T:Make
 a read-only layer editable
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.detach-layer-from-source-1=#T:Layer
 {0} has a non-writable datasource.
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.detach-layer-from-source-2=#T:Detach
 the source from the layer to make the later editable.
-ui.EditOptionsPanel.single-editable-layer=#T:Limited to a single editable layer
\ No newline at end of file
+ui.EditOptionsPanel.single-editable-layer=#T:Limited to a single editable layer
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Attributes-format-in-attribute-table=#T:Attributes
 Format in Attribute Table
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Selection-synchronization=#T:Synchronization
 of Selection between the Attribute Table and the Map
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Synchronize=#T:Synchronize
\ No newline at end of file

Modified: core/trunk/src/language/jump_zh_HK.properties
===================================================================
--- core/trunk/src/language/jump_zh_HK.properties       2016-10-15 11:18:13 UTC 
(rev 5077)
+++ core/trunk/src/language/jump_zh_HK.properties       2016-10-15 13:21:21 UTC 
(rev 5078)
@@ -1602,7 +1602,7 @@
 org.openjump.core.ui.plugin.view.ShowFullPathPlugIn.NumberSelected = 
\u865f\u78bc\u9078\u64c7\uff1a
 org.openjump.core.ui.plugin.view.ShowScalePlugIn = \u5c55\u6703\u898f\u6a21
 org.openjump.core.ui.plugin.view.ViewOptionsPlugIn = \#T\:View Options
-org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Date-format = \#T\:Date 
format
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Date-format = #T:Date format
 
org.openjump.core.ui.plugin.view.ZoomToScalePlugIn.actual-scale-in-horizontal-direction
 = \u5728\u6c34\u5e73\u65b9\u5411\u7684\u5be6\u969b\u898f\u6a21
 org.openjump.core.ui.plugin.view.ZoomToScalePlugIn.scale = \u898f\u6a21
 org.openjump.core.ui.plugin.view.ZoomToScalePlugIn.set-new-scale-to-zoom = 
\u8a2d\u7f6e\u65b0\u7684\u898f\u6a21\u653e\u5927
@@ -2875,4 +2875,7 @@
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.make-read-only-layer-editable=#T:Make
 a read-only layer editable
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.detach-layer-from-source-1=#T:Layer
 {0} has a non-writable datasource.
 
com.vividsolutions.jump.workbench.ui.plugin.EditablePlugIn.detach-layer-from-source-2=
-ui.EditOptionsPanel.single-editable-layer=#T:Limited to a single editable layer
\ No newline at end of file
+ui.EditOptionsPanel.single-editable-layer=#T:Limited to a single editable layer
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Attributes-format-in-attribute-table=#T:Attributes
 Format in Attribute Table
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Selection-synchronization=#T:Synchronization
 of Selection between the Attribute Table and the Map
+org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Synchronize=#T:Synchronize
\ No newline at end of file

Modified: core/trunk/src/org/openjump/core/ui/plugin/view/ViewOptionsPlugIn.java
===================================================================
--- core/trunk/src/org/openjump/core/ui/plugin/view/ViewOptionsPlugIn.java      
2016-10-15 11:18:13 UTC (rev 5077)
+++ core/trunk/src/org/openjump/core/ui/plugin/view/ViewOptionsPlugIn.java      
2016-10-15 13:21:21 UTC (rev 5078)
@@ -20,15 +20,20 @@
  */
 public class ViewOptionsPlugIn extends AbstractPlugIn {
 
-    private static String VIEW_OPTIONS = 
I18N.get("org.openjump.core.ui.plugin.view.ViewOptionsPlugIn");
 
+
     public static final String DATE_FORMAT_KEY = 
ViewOptionsPlugIn.class.getName() + " - DATE_FORMAT_KEY";
 
-    public static final String SELECTION_SYNCHRONIZATION_KEY = 
ViewOptionsPlugIn.class.getName() + " - SELECTION_SYNCHRONIZATION";
+    public static final String SELECTION_SYNC_KEY = 
ViewOptionsPlugIn.class.getName() + " - SELECTION_SYNCHRONIZATION";
 
+    private static final String VIEW_OPTIONS = 
I18N.get("org.openjump.core.ui.plugin.view.ViewOptionsPlugIn");
+
+    private static final String ATTRIBUTES_FORMAT = 
I18N.get("org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Attributes-format-in-attribute-table");
     private static final String DATE_FORMAT = 
I18N.get("org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Date-format");
     private JComboBox dateFormatChooser;
-    private static final String SELECTION_SYNC = 
I18N.get("org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Selection-syncronization");
+
+    private static final String SELECTION_SYNCHRONIZATION = 
I18N.get("org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Selection-synchronization");
+    private static final String SYNC = 
I18N.get("org.openjump.core.ui.plugin.view.ViewOptionsPlugIn.Synchronize");
     private JCheckBox synchronizationCheckBox;
 
     private Blackboard blackBoard;
@@ -58,24 +63,50 @@
         c.gridx = 0;
         c.gridy = 0;
         c.ipadx = 10;
+        c.ipady = 10;
         c.weighty = 0;
 
+        c.gridx = 0;
+        c.gridwidth = 2;
+        viewOptionsPanel.add(new JPanel(), c);
+        c.gridy++;
+
+        c.gridwidth = 2;
+        c.anchor = GridBagConstants.WEST;
+        viewOptionsPanel.add(new JLabel(ATTRIBUTES_FORMAT), c);
+        c.gridy++;
+
+        c.gridx = 0;
+        c.gridwidth = 1;
         c.anchor = GridBagConstants.EAST;
+        viewOptionsPanel.add(new JLabel(DATE_FORMAT), c);
 
-        viewOptionsPanel.add(new JLabel(DATE_FORMAT), c);
         c.gridx = 1;
         c.anchor = GridBagConstants.WEST;
         viewOptionsPanel.add(dateFormatChooser, c);
+        c.gridy++;
 
         c.gridx = 0;
-        c.gridy = 1;
+        c.gridwidth = 2;
+        viewOptionsPanel.add(new JPanel(), c);
+        c.gridy++;
+
+        c.gridx = 0;
+        c.gridwidth = 2;
+        c.anchor = GridBagConstants.WEST;
+        viewOptionsPanel.add(new JLabel(SELECTION_SYNCHRONIZATION), c);
+        c.gridy++;
+
+        c.gridx = 0;
+        c.gridwidth = 1;
         c.anchor = GridBagConstants.EAST;
-        viewOptionsPanel.add(new JLabel(SELECTION_SYNC), c);
+        viewOptionsPanel.add(new JLabel(SYNC), c);
         c.gridx = 1;
         c.anchor = GridBagConstants.WEST;
         viewOptionsPanel.add(synchronizationCheckBox, c);
+        c.gridy++;
 
-        c.gridy = 2;
+        c.gridx = 0;
         c.weighty = 1;
         c.fill = GridBagConstants.VERTICAL;
         viewOptionsPanel.add(new JPanel(), c);
@@ -111,7 +142,7 @@
                     frame.repaint();
                 }
             }
-            blackBoard.put(SELECTION_SYNCHRONIZATION_KEY, 
synchronizationCheckBox.isSelected());
+            blackBoard.put(SELECTION_SYNC_KEY, 
synchronizationCheckBox.isSelected());
         }
 
         public void init() {
@@ -125,7 +156,7 @@
             } else {
                 dateFormatChooser.setSelectedIndex(0);
             }
-            Object sync = blackBoard.get(SELECTION_SYNCHRONIZATION_KEY);
+            Object sync = blackBoard.get(SELECTION_SYNC_KEY);
             if (sync != null) {
                 synchronizationCheckBox.setSelected(
                         Boolean.parseBoolean(sync.toString()));


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to