Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Barbe2016-11-02 05:12:33 -0400
committerMarvin Mueller2016-11-03 05:14:24 -0400
commite4014d0474cd290dec07a91c66c1e36f2710667b (patch)
tree10a46d2d0d6653f1d2f878e50c4bf154e163f68b
parentb797cfa35129e562bd8e83404f87bdaab4bce4f4 (diff)
downloadorg.eclipse.jubula.core-e4014d0474cd290dec07a91c66c1e36f2710667b.tar.gz
org.eclipse.jubula.core-e4014d0474cd290dec07a91c66c1e36f2710667b.tar.xz
org.eclipse.jubula.core-e4014d0474cd290dec07a91c66c1e36f2710667b.zip
Fixed various exceptions in the test data sets viewv8.3.1.1258.3
Change-Id: Ifd1578d2c128e4c53d47f53beb3ab4169e84632e Signed-off-by: Kevin Barbe <kevin.barbe@bredex.de>
-rw-r--r--org.eclipse.jubula.client.ui.rcp/src/org/eclipse/jubula/client/ui/rcp/views/dataset/AbstractDataSetPage.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/org.eclipse.jubula.client.ui.rcp/src/org/eclipse/jubula/client/ui/rcp/views/dataset/AbstractDataSetPage.java b/org.eclipse.jubula.client.ui.rcp/src/org/eclipse/jubula/client/ui/rcp/views/dataset/AbstractDataSetPage.java
index 303c3ec88..e0c49d763 100644
--- a/org.eclipse.jubula.client.ui.rcp/src/org/eclipse/jubula/client/ui/rcp/views/dataset/AbstractDataSetPage.java
+++ b/org.eclipse.jubula.client.ui.rcp/src/org/eclipse/jubula/client/ui/rcp/views/dataset/AbstractDataSetPage.java
@@ -1084,6 +1084,8 @@ public abstract class AbstractDataSetPage extends Page
};
/** The index of the cell the editor was last activated at */
private int m_currentEditorIndex;
+ /** The current selection index of the shown table items */
+ private int m_currentSelectionIndex;
/**
* @param parent parent
@@ -1151,10 +1153,10 @@ public abstract class AbstractDataSetPage extends Page
private void writeDataSetData(String property, Object value,
AbstractJBEditor edit) {
final int langIndex = getColumnIndexOfProperty(property);
+ getTable().getItem(m_currentSelectionIndex).setText(langIndex,
+ value == null ? StringConstants.EMPTY : (String) value);
setValueToModel(value, edit, m_currentEditorIndex,
m_currentEditorIndex);
- getTable().getItem(m_currentEditorIndex).setText(langIndex,
- value == null ? StringConstants.EMPTY : (String) value);
}
@@ -1280,6 +1282,7 @@ public abstract class AbstractDataSetPage extends Page
// end http://eclip.se/390800
TextControlBP.selectAll(m_editor.getEditor());
m_currentEditorIndex = getSelectedDataSet();
+ m_currentSelectionIndex = getTable().getSelectionIndex();
}
}

Back to the top