}
}
}
private KongaButton createButton(InterchangeView view, EntityType type) {
InterchangeActionFactory actionFactory = InterchangeActionFactory.getNewEntityFactory(type);
Action action = actionFactory.get(view);
KongaButton button = new KongaButton(action);
button.setUseMediumActionIcon(true);
button.setHorizontalAlignment(SwingConstants.LEADING);
String name = (String) action.getValue(Action.NAME);
if (name.startsWith("New ")) {