Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,12 @@ protected void notifyViewCreationCompleted()
expandNodes();
}

@Override
public void notifyModelUpdated()
{
groupedAccounts.refresh();
}

@Override
public void onModified(Object element, Object newValue, Object oldValue)
{
Expand All @@ -217,7 +223,6 @@ private void addNewButton(ToolBarManager toolBar)
groupedAccounts.setExpandedState(newItem, true);
// select the newly created account
groupedAccounts.setSelection(new StructuredSelection(newItem));

})))));
}

Expand Down Expand Up @@ -468,10 +473,7 @@ private void deleteFilter(ClientFilterMenu.Item filterItem)
String message = MessageFormat.format(Messages.MenuReportingPeriodDeleteConfirm, filterItem.getLabel());
if (MessageDialog.openConfirm(Display.getDefault().getActiveShell(), Messages.MenuReportingPeriodDelete,
message))
{
items.remove(filterItem);
groupedAccounts.refresh();
}
}

private void deleteElementInFilter(Object element, ClientFilterMenu.Item filterItem)
Expand All @@ -482,7 +484,6 @@ private void deleteElementInFilter(Object element, ClientFilterMenu.Item filterI
// important step: update UUIDs because this is basic
// information in settings
filterItem.setUUIDs(ClientFilterMenu.buildUUIDs(filter.getAllElements()));
groupedAccounts.refresh();
}
}

Expand Down Expand Up @@ -528,7 +529,6 @@ public Image getImage(Object element)
// important step: update UUIDs because this is
// basic information in settings
selectedFilterElement.setUUIDs(ClientFilterMenu.buildUUIDs(filter.getAllElements()));
groupedAccounts.refresh();
}
}
}
Expand Down