Skip to content

Commit

Permalink
Merge pull request #20 from KlasJoenssson/loginIcon2
Browse files Browse the repository at this point in the history
Login icon2
  • Loading branch information
jonalv committed Aug 21, 2012
2 parents 37dad63 + bff2a55 commit a277b48
Showing 1 changed file with 8 additions and 4 deletions.
Expand Up @@ -285,6 +285,7 @@ public void widgetSelected(SelectionEvent e) {
}
list.select(pos);
refreshTable();
refreshList();
refreshOnSelectionChanged();
}

Expand Down Expand Up @@ -313,6 +314,8 @@ public void widgetSelected(SelectionEvent e) {
accountsListViewer.getList().select(0);
}
refreshOnSelectionChanged();
refreshTable();
refreshList();
}
});
final FormData formData_7 = new FormData();
Expand Down Expand Up @@ -365,7 +368,8 @@ public void widgetSelected(SelectionEvent e) {
* updating here and not in the dialog */
model.dummyAccounts.get( selectedAccountId ).properties.putAll( dialog.getProperties() );
}

refreshList();
refreshOnSelectionChanged();
refreshTable();
}
});
Expand Down Expand Up @@ -489,7 +493,6 @@ private boolean dialogInputIsComplete() {

private String extractAccountId(String selectedAccountListItem) {
String selectedAccountId = selectedAccountListItem;
// = accountsListViewer.getList().getSelection()[0];
int endIndex = selectedAccountId.indexOf( " {" );
if (endIndex > -1)
selectedAccountId = selectedAccountId.substring( 0, endIndex );
Expand Down Expand Up @@ -639,8 +642,9 @@ public void modify(Object element, String property, Object value) {
break;

case 1:
model.dummyAccounts.get(
accountsListViewer.getList().getSelection()[0] ).
String accountId = extractAccountId(accountsListViewer.getList()
.getSelection()[0]);
model.dummyAccounts.get( accountId ).
properties.put( (String)row.get(0), (String)value);
refreshTable();
break;
Expand Down

0 comments on commit a277b48

Please sign in to comment.