@Inject public CustomCommandType( MachineResources resources, IconRegistry iconRegistry, CustomPagePresenter page) { pages = new LinkedList<>(); pages.add(page); iconRegistry.registerIcon(new Icon("command.type." + ID, resources.customCommandType())); }