Skip to content

Conversation

@leMaik
Copy link
Member

@leMaik leMaik commented Sep 9, 2023

No description provided.

public Tooltip getTooltip(Registerable item) {
String description = item.getDescription();
if (description != null && !description.isEmpty()) {
return new Tooltip(item.getDescription());
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return new Tooltip(item.getDescription());
return new Tooltip(description);


public static void addImplementationFactory(String name, ImplementationFactory factory) {
factories.put(name, factory);
public static void addImplementationFactory(ImplementationFactory factory) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaking change is bad and we should find a way to work around this (maybe a backward-compatible ImplementationFactory and a new RegisterableImplementationFactory).

* Get all available {@code Renderer}s.
*/
Collection<? extends Registerable> getRenderers();
Collection<Renderer> getRenderers();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would make it impossible for plugins to implement RenderManager and have their own type of swappable renderer that is incompatible with Chunky's renderers. (Which kinda defeats the point of changing the RenderManager implementation).

Copy link
Member Author

@leMaik leMaik Sep 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh… Okay, so a renderer doesn't have to be a Renderer?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, Renderer is just the interface to work with Chunky's DefaultRenderManager.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants