Skip to content

Commit

Permalink
Sorts Charms in Combo View alphabetically
Browse files Browse the repository at this point in the history
Fixes #271
  • Loading branch information
UrsKR committed Aug 24, 2012
1 parent 100c1d3 commit 07c7126
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Expand Up @@ -19,6 +19,7 @@
import net.sf.anathema.framework.presenter.view.ContentView;
import net.sf.anathema.framework.presenter.view.SimpleViewContentView;
import net.sf.anathema.framework.view.util.ContentProperties;
import net.sf.anathema.lib.compare.I18nedIdentificateComparator;
import net.sf.anathema.lib.control.IChangeListener;
import net.sf.anathema.lib.gui.action.SmartAction;
import net.sf.anathema.lib.lang.StringUtilities;
Expand Down Expand Up @@ -199,6 +200,7 @@ private String wrapHtml(String text) {
private void updateCharmListsInView(IComboConfigurationView comboView) {
comboView.setComboCharms(comboConfiguration.getEditCombo().getCharms());
ICharm[] learnedCharms = comboModel.getLearnedCharms();
Arrays.sort(learnedCharms, new I18nedIdentificateComparator(resources));
comboView.setAllCharms(learnedCharms);
}

Expand Down
1 change: 1 addition & 0 deletions Development_Documentation/Distribution/English/versions.md
Expand Up @@ -8,6 +8,7 @@ Website: [anathema.github.com](http://anathema.github.com)

### Features
* Anathema has an even more helpful message when a Martial Arts charm does not conform with its expectations.
* Charms in the Combo view are sorted alphabetically.

### Bugfixes
* The Charm Cascades zoom to the pointer, as they used to do.
Expand Down

0 comments on commit 07c7126

Please sign in to comment.