if (type.equals("*")) {
List traTypes = jts.getTypes(Transition.class);
for (int i = 0; i < traTypes.size(); i++) {
JaWEType jt = (JaWEType) traTypes.get(i);
JaWEAction ja = new JaWEAction();
ja.setAction(new SetTransitionMode(controller, jt.getTypeId()));
ja.setIcon(jt.getIcon());
ja.setLangDepName(jt.getDisplayName());
JButton b = BarFactory.createToolbarButton(ja, controller);
decorateToolboxButton(b, ja);
toolbar.add(b);
controller.getSettings().addAction(jt.getTypeId(), ja);
}
} else {
JaWEType jt = jts.getType(type);
if (jt == null) {
continue;
}
JaWEAction ja = new JaWEAction();
ja.setAction(new SetTransitionMode(controller, jt.getTypeId()));
ja.setIcon(jt.getIcon());
ja.setLangDepName(jt.getDisplayName());
JButton b = BarFactory.createToolbarButton(ja, controller);
decorateToolboxButton(b, ja);
toolbar.add(b);